summaryrefslogtreecommitdiff
path: root/sv.c
Commit message (Collapse)AuthorAgeFilesLines
* Re: PATCH 5.7.1Mark-Jason Dominus2001-04-231-0/+1
| | | | | Message-ID: <20010423143021.17335.qmail@plover.com> p4raw-id: //depot/perl@9792
* Re: [ID 20010422.003] Core dump in overloaded bool while using 'Simon Cozens2001-04-221-5/+5
| | | | | Message-ID: <20010422184725.A14411@netthink.co.uk> p4raw-id: //depot/perl@9782
* Thinko in manual patch applying.Jarkko Hietaniemi2001-04-091-1/+1
| | | p4raw-id: //depot/perl@9661
* Re: [PATCH perl@9424] isn't numeric warning Robin Barker2001-04-091-1/+1
| | | | | | | | | Message-Id: <200104091358.OAA24811@tempest.npl.co.uk> (This corrects the case where the "isn't numeric" string contains \0s and is longer than the temporary buffer, and contains \0 at the point the string would be truncated by "...".) p4raw-id: //depot/perl@9660
* isn't numeric warningRobin Barker2001-04-071-2/+6
| | | | | Message-Id: <200104061708.SAA06783@tempest.npl.co.uk> p4raw-id: //depot/perl@9613
* Integrate changes #9584,9587 from maintperl into mainline.Jarkko Hietaniemi2001-04-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | keep eval"" CVs alive until the end of the statement in which they're called add README.macos (from Chris Nandor) tyop in change#9555 p4raw-link: @9587 on //depot/maint-5.6/perl: d72c2fc956b5cb46ede17d06f89a463c78f1cf5f p4raw-link: @9584 on //depot/maint-5.6/perl: e6fbcc36a54a8afd8dbcdcb9a8d8e178df530b97 p4raw-link: @9555 on //depot/perl: 6a0af2f17bcde4767b90a72eff7083c5effff21d p4raw-id: //depot/perl@9588 p4raw-branched: from //depot/maint-5.6/perl@9583 'branch in' README.macos p4raw-integrated: from //depot/maint-5.6/perl@9583 'copy in' pod/perlfaq9.pod (@9585..) 'merge in' scope.h (@8568..) pod/perl.pod (@8986..) MANIFEST (@9227..) win32/Makefile (@9286..) pp_ctl.c scope.c (@9288..) global.sym (@9289..) embed.h embed.pl objXSUB.h perlapi.c proto.h (@9292..) pod/buildtoc.PL (@9312..) win32/makefile.mk (@9495..) sv.c (@9496..) pod/perlguts.pod (@9514..)
* Integrate changes #9493,9494,9495,9496 from maintperlJarkko Hietaniemi2001-04-011-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | into mainline. fix a broken workaround for Borland compiler in change#4739 (caused weird "short reads" on DATA, which caused op/misc.t to fail) nits spotted by Borland compiler avoid redefinition warnings under Borland 5.02 various nits identified by the Borland 5.5 compiler; remove suppression of a few warnings p4raw-link: @9496 on //depot/maint-5.6/perl: 9d05ad52b0aa7d1f7d147da0c4dbc14de5fe4a37 p4raw-link: @9495 on //depot/maint-5.6/perl: 759997f1e719f33541bed70dd7f79bfa26a930b3 p4raw-link: @9494 on //depot/maint-5.6/perl: 01b59bde1cb7ff62776f3b83c0f2575c79a950a6 p4raw-link: @9493 on //depot/maint-5.6/perl: eea7051a8d4ef81c032143ab3193bc1240ab2e8f p4raw-link: @4739 on //depot/perl: c39cd00800303e8967294e98aa4c427a1872a251 p4raw-id: //depot/perl@9497 p4raw-integrated: from //depot/maint-5.6/perl@9492 'merge in' sv.c utf8.h (@9288..) toke.c (@9292..) ext/File/Glob/bsd_glob.c (@9415..) win32/makefile.mk (@9426..) win32/win32.h (@9494..)
* Noticed that two tests were skipped as perlio:: packageNick Ing-Simmons2001-03-291-2/+6
| | | | | | | isn't there any more. Changed the skip condition. Avoid core-dump if sv_utf8_upgrade() called on something that does not become SvPOK after SvPV() (e.g. a ref). p4raw-id: //depot/perlio@9429
* Re: perl@9359 breaks HTML::ParserGisle Aas2001-03-271-10/+14
| | | | | | | | Message-ID: <lrr8zjxb5b.fsf@caliper.ActiveState.com> Clarify the UTF-8 issues of the API docs. (Slightly reworded and expanded.) p4raw-id: //depot/perl@9386
* sv_catpvf(sv, "%c", 128) should not UTF-8-ify the sv,Jarkko Hietaniemi2001-03-271-1/+3
| | | | | noted by Gisle and fixed by NI-S. p4raw-id: //depot/perl@9375
* More EBCDIC stuff:Nick Ing-Simmons2001-03-201-2/+3
| | | | | | | | | | | | | | - Loose the extra level of function on ASCII. - spotted a chr(0) issue in sv.c - re-work of UTF-X tr/// ranges to work in Unicode space. Still issues with the "0xff is illegal UTF-8" hack. - Yet another ad. hoc. utf8 'upgrade' in op.c recoded (why do it once when you can do it all over the place :-( - Enable HINTS_UTF8 on EBCDIC - then ignore it in toke.c, need utf8.pm for swashes. - Simplified and commented scan_const() in toke.c Still something wrong regexp and tr (swashes?). p4raw-id: //depot/perlio@9267
* Integrate mainline.Nick Ing-Simmons2001-03-191-7/+13
|\ | | | | p4raw-id: //depot/perlio@9249
| * Integrate change #9233 from maintperl into mainline.Jarkko Hietaniemi2001-03-191-4/+4
| | | | | | | | | | | | | | | | | | some refcounts were incorrect in perl_clone() p4raw-link: @9233 on //depot/maint-5.6/perl: dca1bc40364bec892edf18517ed5e3c914edecc6 p4raw-id: //depot/perl@9240 p4raw-integrated: from //depot/maint-5.6/perl@9233 'merge in' sv.c (@9197..)
| * Integrate change #9197 from maintperl to mainline.Jarkko Hietaniemi2001-03-181-4/+10
| | | | | | | | | | | | | | | | | | | | more thorough cleaning of arenas. p4raw-link: @9197 on //depot/maint-5.6/perl: ec3d44d040803cac937295d8f4740e6a36ba30fb p4raw-id: //depot/perl@9201 p4raw-integrated: from //depot/maint-5.6/perl@9200 'merge in' t/op/sort.t (@7895..) perl.c (@9064..) sv.c (@9108..) embed.pl proto.h (@9154..)
* | More EBCDIC fixes.Nick Ing-Simmons2001-03-191-9/+5
|/ | | p4raw-id: //depot/perlio@9246
* Prefer !UTF8_IS_INVARIANT() over UTF8_IS_CONTINUED() when thatNick Ing-Simmons2001-03-181-8/+8
| | | | | | is the sense of the test being done. Avoid some magical 127 and 128 values by using macros. p4raw-id: //depot/perlio@9199
* EBCDIC Fixes.Nick Ing-Simmons2001-03-161-22/+28
| | | p4raw-id: //depot/perlio@9180
* Integrate mainline.Nick Ing-Simmons2001-03-121-1/+4
|\ | | | | p4raw-id: //depot/perlio@9111
| * Integrate change #9108 from maintperl to mainline.Jarkko Hietaniemi2001-03-121-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix memory leak in C<sub X { sub {} }> arising from a refcount loop between the outer sub and the inner prototype anonsub this also enables closures returned by subroutines that subsequently get redefined to work without generating coredumps :) completely removed the free_closures() hack--it shouldn't be needed anymore p4raw-link: @9108 on //depot/maint-5.6/perl: 1cf1f64f42eb50a67f2427ff9d6d24023a2b9997 p4raw-id: //depot/perl@9109 p4raw-branched: from //depot/maint-5.6/perl@9107 'branch in' t/op/anonsub.t p4raw-integrated: from //depot/maint-5.6/perl@9107 'merge in' sv.c (@8871..) embed.h (@8886..) pod/perlapi.pod proto.h (@8993..) embed.pl (@8995..) MANIFEST (@9030..) op.c op.h (@9055..) pp_ctl.c (@9076..)
* | #ifdef'ed out code for 'USE_BYTES_DOWNGRADES' case.Nick Ing-Simmons2001-03-121-3/+25
|/ | | p4raw-id: //depot/perlio@9110
* Put utf8_downgrade in CRIPPLED_CC versions of SvPVbyte* before I forget.Nick Ing-Simmons2001-03-111-2/+4
| | | p4raw-id: //depot/perlio@9104
* EBCDIC sanity - phase INick Ing-Simmons2001-03-101-9/+5
| | | | | | | | | | | | | | - rename utf8/uv functions to indicate what sort of uv they provide (uvuni/uvchr) - use utf8n_xxxx (c.f. pvn) for forms which take length. - back out vN.N and $^V exceptions to e2a/a2e - make "locale" isxxx macros be uvchr (may be redundant?) Not clear yet that toUPPER_uni et. al. return being handled correctly. The tr// and rexexp stuff still needs an audit, assumption is they are working in Unicode space. Need to provide v5.6 names for XS modules (decide is uni or chr ?). p4raw-id: //depot/perlio@9096
* Re: [ PATCH perl@8956 ] new debug option -DR shows ref countsDave Mitchell2001-03-091-2/+2
| | | | | Message-Id: <200103081206.MAA06281@tiree.fdgroup.co.uk> p4raw-id: //depot/perl@9084
* Re: Unicode/EBCDICPeter Prymmer2001-03-091-0/+4
| | | | | Message-ID: <Pine.OSF.4.10.10103081617390.377472-100000@aspara.forte.com> p4raw-id: //depot/perl@9082
* Long-standing "defined but not used" SvPVbyte*() are about to get usedNick Ing-Simmons2001-03-051-1/+2
| | | | | | | | | for auto-downgrade hooks in gethostbyaddr() etc. (as per Camel-III). Make SvPVbyte*() symmetric with respect to SvPVutf8*() in that: - it does a sv_utf8_downgrade (c.f. SvPVutf8's sv_utf8_upgrade()) - uses SvPV() rather than sv_2pv() in case it isn't a string. p4raw-id: //depot/perlio@9037
* Re: sync sync sync: have I missed any patches?Tim Jenness2001-02-281-1/+1
| | | | | | | | In-Reply-To: <20010227140737.Y10633@chaos.wustl.edu> Message-ID: <Pine.LNX.4.30.0102271322070.8623-100000@lapaki.jach.hawaii.edu> Replace djSP with dSP. p4raw-id: //depot/perl@8963
* Encode API documentation nd tidy up.Nick Ing-Simmons2001-02-241-7/+32
| | | | | | | Minor additions to test. Tweaks sv_utf8_upgrade() to force SvPV, and always SvUTF8_on and return length. Adds STRLEN to standard typemap. p4raw-id: //depot/perlio@8923
* Integrate change #8868 from pureperl to mainline.Jarkko Hietaniemi2001-02-211-2/+12
| | | | | | | | | Fixed reference count loop caused by sv_magic. p4raw-link: @8868 on //depot/maint-5.6/pureperl: 1ccf3d77864c3a3bec62b1f24e34a456f495c987 p4raw-id: //depot/perl@8872 p4raw-integrated: from //depot/maint-5.6/pureperl@8870 'merge in' sv.c (@8842..)
* Put back the #8840, it was innocent.Jarkko Hietaniemi2001-02-211-0/+19
| | | p4raw-id: //depot/perl@8870
* Don't do casting between pointers pointing to differently sizedJarkko Hietaniemi2001-02-201-2/+6
| | | | | integers. p4raw-id: //depot/perl@8862
* Retract the #8838 and #8840 for now because ofJarkko Hietaniemi2001-02-201-19/+0
| | | | | the DB_File tie problem. p4raw-id: //depot/perl@8846
* [patch] add sv_setref_uvDoug MacEachern2001-02-191-0/+19
| | | | | Message-ID: <Pine.LNX.4.21.0102181448290.10021-100000@mako.covalent.net> p4raw-id: //depot/perl@8840
* UTF-8 tweaks.Jarkko Hietaniemi2001-02-181-8/+6
| | | p4raw-id: //depot/perl@8827
* [patch] -WallDoug MacEachern2001-02-171-8/+9
| | | | | Message-ID: <Pine.LNX.4.21.0102161519500.30352-100000@mako.covalent.net> p4raw-id: //depot/perl@8815
* [patch] GvSHAREDDoug MacEachern2001-02-101-0/+80
| | | | | Message-ID: <Pine.LNX.4.21.0102101047320.15298-100000@mako.covalent.net> p4raw-id: //depot/perl@8760
* [ID 20010206.010] S_ functions not declared STATICNicholas Clark2001-02-081-1/+1
| | | | | Message-Id: <20010207002747.B63724@plum.flirble.org> p4raw-id: //depot/perl@8714
* Re: [patch] Re: PL_ptr_tableDoug MacEachern2001-02-081-1/+51
| | | | | Message-Id: <Pine.LNX.4.21.0102071916270.29229-100000@mako.covalent.net> p4raw-id: //depot/perl@8713
* Integrate changes #8641,8644,8649,8654,8662,8663,8664,8665,8667,8669Jarkko Hietaniemi2001-02-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from maintperl. Upgrade to Getopt::Long 2.25, from Johan Vromans. more files need to be writable in the source distribution perl_clone() wants to clone PL_numeric_radix_sv (fix for change#8626) Solaris 2.7 i386 #defines SP in /usr/include/sys/reg.h Subject: Re: [PATCH perl5.6.1-TRIAL2] long C<=item>s in perlmodlib.pod Allow the float to be fuzzier. need to use INT2PTR instead of a straight cast or ia64 fails Subject: Re: [ID 20010201.006] bad pointer from perlfunc to perlmod add ppaddr as one of the compatibility symbols under -DPERL_POLLUTE p4raw-link: @8662 on //depot/maint-5.6/perl: 4fd7b88664e5220d434e86a4171b6501199a0df5 p4raw-link: @8654 on //depot/maint-5.6/perl: 570327f99599d50e7689d7f8e58ce0062abb9bfd p4raw-link: @8649 on //depot/maint-5.6/perl: e077e268546d6372b301e6674cc72c8d19727a93 p4raw-link: @8644 on //depot/maint-5.6/perl: 0a4931cb101d4c4c7af706ed2960bc1b4935992e p4raw-link: @8641 on //depot/maint-5.6/perl: c266a57ee93b609f48ccb9173c2a3073a28cd0db p4raw-link: @8626 on //depot/maint-5.6/perl: e77a7f40d76565c12d43428402884505d5496c8f p4raw-id: //depot/perl@8670 p4raw-integrated: from //depot/maint-5.6/perl@8650 'copy in' Porting/makerel (@7298..) lib/Getopt/Long.pm (@7895..) pod/perlmodlib.PL (@8175..) 'ignore' pod/perlmodlib.pod (@8640..) 'merge in' t/lib/peek.t (@8151..) ext/POSIX/POSIX.xs (@8177..) embed.pl pp.h (@8620..) embedvar.h (@8626..) pod/perlfunc.pod (@8630..) p4raw-integrated: from //depot/maint-5.6/perl@8649 'merge in' sv.c (@8634..)
* All the uses of PL_numeric_radix must be protected byOlaf Flebbe2001-01-311-0/+6
| | | | | | | | USE_LOCALE_NUMERIC, noticed by Olaf Flebbe in Subject: [perl-5-6-1-trial2] patches for EPOC Message-ID: <Pine.LNX.4.02.10101312314470.5682-100000@milkyway.science-computing.de> p4raw-id: //depot/perl@8648
* Fix for the fa_IR locale failure. The reason for the failureJarkko Hietaniemi2001-01-301-4/+11
| | | | | | | | | was that Perl was assuming the decimal separator aka the radix separator is one character. The Farsi-Iranian locale crushed that bad assumption since there the separator is 'Momayyez', glyphwise looking somewhat like a slash, and in Unicode UTF-8 encoded in two bytes, 0xd9 0xab. p4raw-id: //depot/perl@8625
* Signedness nit.Jarkko Hietaniemi2001-01-301-2/+2
| | | p4raw-id: //depot/perl@8596
* Patch from Inaba Hiroto:Jarkko Hietaniemi2001-01-281-18/+14
| | | | | | | | | | | | | | | | | | | | | | | - canonical UTF-8 hash keys: if a key string for a hash is UTF8-on, try downgrade the string and use it if unicode::distinct is not in effect. For the task, I added a function bytes_from_utf8() to utf8.c. It might resemble utf8_to_bytes() but it is not convenient to the task. Made a test for it and added to t/op/each.t - Changed do_print in doio.c to apply sv_utf8_(downgrade|upgrade) to the mortal copy of the argument SV. And changed t/io/utf8.t test 18 which expects print() to upgrade its argument. - re-implement sv_eq with bytes_from_utf8() - some bug fixes - tr/// does not handle UTF8 range (\x{}-\x{}) - \ before raw UTF8 character produced "Malformed UTF-8 character" warning. - "\x{100}\N{CENT SIGN}" is Malformed. Added tests for these 3. - and one silly bug (by me) with qu operator. p4raw-id: //depot/perl@8583
* No point in checking the length before we know whether the pointerJarkko Hietaniemi2001-01-271-5/+6
| | | | | is bogus or not, fixes Abigail's odbm failures in Linux. p4raw-id: //depot/perl@8555
* Add sv_force_normal() to sv_utf8_downgrade() as suggestedJarkko Hietaniemi2001-01-221-3/+7
| | | | | by Inaba Hiroto. p4raw-id: //depot/perl@8517
* Integrate perlio:Jarkko Hietaniemi2001-01-211-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ 8498] Encode cleanup. Add command line control over "compile" so that Makefile.PL needs can be combined with other uses. Use command line options in Makefile.PL. Fix multi-byte parsing in .ucm files. [ 8497] Warn and set errno when open(...,":encoding(xxxxx)",...) cannot find xxxxx. [ 8496] Fixup after integrate: missed the .sym files that are changed by regen_headers sv.c and proto.h disagreed about pTHX_ ness of EXPECT_NUMBER. [ 8484] Infrastructure to allow: open($fh,"|-",@array); to be implemented i.e. mark pp_open as needing a stack mark, and make pp_open process its args in that style (and pass them _all_ to tied handles OPEN). Invent do_openn() which takes SV ** at allow it to see multiple args. Note this does not _do_ anything yet. p4raw-link: @8498 on //depot/perlio: afdae191a418d1363d2ddc3dcefffb0785c0a155 p4raw-link: @8497 on //depot/perlio: 52744f63cab71e4f408a2490707f42c331bb389e p4raw-link: @8496 on //depot/perlio: 9dd79c3f9b66ee5059b4277b6f15d5bfcd846510 p4raw-link: @8484 on //depot/perlio: a567e93b903bc9849952c06533059c2f2e2fb226 p4raw-id: //depot/perl@8500
| * Fixup after integrate:Nick Ing-Simmons2001-01-211-4/+4
| | | | | | | | | | | | missed the .sym files that are changed by regen_headers sv.c and proto.h disagreed about pTHX_ ness of EXPECT_NUMBER. p4raw-id: //depot/perlio@8496
* | Re: 8482 busted for $^V sprintf()s on OS/390 Hugo van der Sanden2001-01-211-7/+5
|/ | | | | | | Message-Id: <200101211334.NAA18121@crypt.compulink.co.uk> In sprintf UTF8ize only if necessary. p4raw-id: //depot/perl@8499
* Signedness nit plus few memcpy/Copy nits.Jarkko Hietaniemi2001-01-201-4/+4
| | | p4raw-id: //depot/perl@8491
* Re: new feature: s?printf parameter reordering Hugo van der Sanden2001-01-191-102/+111
| | | | | | | | | | | | | | | | | | | | | | | | Message-Id: <200101111709.RAA23756@crypt.compulink.co.uk> - support reordering for all parameters: %, *v, *, .* - lay down that the reordering specification must immediately follow that parameter: %3$, *v3$, *3$, .*3$ - fix vectorisation of a zero-length string - factor out the code choosing the argument to format Possibly unwanted side-effects: - the special format specifiers ' +-0' must now precede any vectorisation specifier. Tests in op/sprintf and op/ver have been changed to reflect this. - sprintf.t test #214 changed its expectations because in many cases, the next parameter has already been consumed when an invalid type letter is detected. Probably wanted side-effects: - attempts to format a non-existent parameter will warn as if C<undef> - attempt to write to non-existent parameter with '%n' will complain of "attempt to modify read-only value" instead of being silent p4raw-id: //depot/perl@8481
* Win32 "safe signals" co-existance fix.Nick Ing-Simmons2001-01-181-2/+9
| | | | | | Fix SIG_SIZE value. Clear PL_sig_pending when cloning (fork). p4raw-id: //depot/perlio@8475