summaryrefslogtreecommitdiff
path: root/sv.c
Commit message (Collapse)AuthorAgeFilesLines
* Undocument the use of .*utf8.*{upgrade,downgrade,encode,decode}Jarkko Hietaniemi2002-03-111-0/+9
| | | | | | as general purpose encoding transformation interfaces since that's not what they are. p4raw-id: //depot/perl@15169
* more warnings tidyupPaul Marquess2002-03-111-14/+14
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLMEEGDPAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15155
* Renaming tweaks, and split off the reentrant "superbuffer"Jarkko Hietaniemi2002-03-101-2/+1
| | | | | init routine. p4raw-id: //depot/perl@15139
* Re[2]: [ID 20020307.006] [BUG][use encoding] use encoding 'greek'; print ↵Anton Tagunov2002-03-081-44/+29
| | | | | | | | | "not" unless pack("U*", 0x3af) eq pack("C*", 0xdf) prints "not"! Message-ID: <13946506773.20020308043144@newmail.ru> (one test changed) p4raw-id: //depot/perl@15088
* As suggested by Anton Tagunov, eq and cmp now obey theJarkko Hietaniemi2002-03-071-29/+82
| | | | | | | | | encoding pragma (by remapping their byte argument if the other argument is in Unicode). Also fix a bug found by Anton where ord undef under the encoding pragma would barf. ([ID 20020307.009] A null pointer dereference with 'use encoding') Finally, use the nicer form of sv_recode_to_utf8. p4raw-id: //depot/perl@15085
* Retract #14985, #14899, and #14990, following the principlesJarkko Hietaniemi2002-03-071-22/+59
| | | | | | | | | | | | "Do no harm." and "If it ain't broke, don't fix it." Firstly, the #14985 broke badly on UTF-EBCDIC, #14990 fixed some, but still broken, and I do not have the extra brain cells for the EBCDIC backport. Secondly, the old version worked both in EBCDIC and non-. Thirdly, the old version may be more amenable for the behaviour suggsted by Anton Tagunov regarding the encoding pragma. p4raw-id: //depot/perl@15084
* sv_cmp and friendsIlya Zakharevich2002-03-041-59/+22
| | | | | | Message-Id: <20020304023103.A14140@math.ohio-state.edu> p4raw-link: @14577 on //depot/perl: 0ad5258ff3f3328f321188cbb4fcd6a74b365431 p4raw-id: //depot/perl@14985
* Re: [PATCH] Re: Copying PV only with possible UTF-8 charactersJohn Peacock2002-02-251-1/+3
| | | | | Message-ID: <3C79AAAC.6060903@rowman.com> p4raw-id: //depot/perl@14859
* SvSetSV() is not returnable, but that's okay sinceJarkko Hietaniemi2002-02-251-3/+3
| | | | | sv_copypv() returns void. p4raw-id: //depot/perl@14858
* Re: Copying PV only with possible UTF-8 charactersJohn Peacock2002-02-241-0/+37
| | | | | Message-ID: <3C795DB7.40105@rowman.com> p4raw-id: //depot/perl@14857
* Re: Prototype checking on assignment of coderef to typeglobRafael Garcia-Suarez2002-02-221-2/+3
| | | | | Message-Id: <20020222230107.A15069@rafael> p4raw-id: //depot/perl@14837
* Fix SvGROW on an SV with SvLEN == 0 - copy in any existing data.Nick Ing-Simmons2002-02-031-0/+3
| | | | | (Mis-feature discovered by Encode.) p4raw-id: //depot/perlio@14526
* Integrate mainlineNick Ing-Simmons2002-01-251-23/+1
| | | | | All but ../lib/Unicode/UCD.t pass. p4raw-id: //depot/perlio@14412
* Nearly-working threads re-structuring. Do not integrate,Nick Ing-Simmons2002-01-191-17/+20
| | | | | submit-ing to get to Win32, and as "off site" backup. p4raw-id: //depot/perlio@14352
* Split out core of sv_magic() into sv_magicext().Nick Ing-Simmons2002-01-181-69/+113
| | | | | | | | | | | | | | | | sv_magic provides the extra restictions (no READONLY, only one of each type, canned set of vtables), and sv_magicext() does the actual data twiddling. Also enhances semantics of ->mg_ptr setting via name/namlen to allow either an uncopied ptr (namlen == 0), or a Newz()ed scratch area (namlen > 0 && name == NULL). sv_magicext also returns the MAGIC * it added. sv_magicext is intended mainly for PERL_MAGIC_ext (~) magic. To come sv_unmagicext() - which will remove just one magic of particular type, and additionaly match against ->mg_ptr, or the MAGIC * (need to experiment as to which is more natural). p4raw-id: //depot/perlio@14335
* Integrate rest of mainlineNick Ing-Simmons2002-01-151-14/+16
|\ | | | | p4raw-id: //depot/perlio@14270
| * Move the UTF-8 conversion code earlier so thatJarkko Hietaniemi2002-01-131-14/+16
| | | | | | | | | | op/ver is happy. p4raw-id: //depot/perl@14246
| * Grow the buffer in case Unicode caused size changesJarkko Hietaniemi2002-01-131-3/+3
| | | | | | | | | | (and it very probably did). p4raw-id: //depot/perl@14243
* | Use PerlMemShared for CopSTASHPV and CopFILE. MUCH harder than it sounds!Nick Ing-Simmons2002-01-141-5/+18
|/ | | | | | | | | | | | Need to use CopXXXXX macros everywhere and add CopSTASH_free Add new scope type and add support for it to scope.c and scope stack dup-er in sv.c. Add savesharedpv(). Also zealous version of Win32's vmem.h to catch all the abuses. With this t/op/fork.t passes even with zealous checking and checker is point a finger at various threads/shared issues. PL_curcop->cop_io is still an issue. p4raw-id: //depot/perlio@14259
* Integrate perlio:Jarkko Hietaniemi2002-01-121-71/+44
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ 14214] Win32-ize socketpair test - Win32 can fork even though $Config{d_fork} is undef - SOCK_DGRAM does not work - skip those tests. [ 14213] Abstract out the cloning of SvPVX and handle shared pv in a safe (if suboptimal) manner. Does not fix op/fork.t :-( p4raw-link: @14214 on //depot/perlio: 26bf1728b5f258bdc26021f9eb583c46488b8859 p4raw-link: @14213 on //depot/perlio: 83841fad1c8ce4928a4239052849bad556adb3d3 p4raw-id: //depot/perl@14218
| * Abstract out the cloning of SvPVX and handle shared pv in a Nick Ing-Simmons2002-01-121-71/+44
| | | | | | | | | | safe (if suboptimal) manner. Does not fix op/fork.t :-( p4raw-id: //depot/perlio@14213
* | Fix forAndreas König2002-01-111-13/+35
|/ | | | | | | | | | Subject: UTF-8 sprintf bug in bleadperl Message-ID: <m3vge99c7g.fsf@anima.de> I have tests, have just to figure out where to put them since op/sprintf looks a bit unfriendly for tests of somewhat freer form. p4raw-id: //depot/perl@14194
* malloc() things must be free()d, not Safefree()d (bug in change#11280Gurusamy Sarathy2002-01-111-3/+4
| | | | | | | | | | revealed by -D_USE_MSVCRT_MEM_ALLOC -D_USE_LINKED_LIST) turns out even the malloc() was never really needed to begin with, so get rid of it p4raw-link: @11280 on //depot/perl: dc507217b3331807446df6e7f16977ee2fdc418e p4raw-id: //depot/perl@14177
* PL_debug_pad wasn't initialized to zeroes which brokeJarkko Hietaniemi2002-01-061-1/+2
| | | | | ithreads + DEBUGGING. p4raw-id: //depot/perl@14108
* Missed the =head1 additions.Jarkko Hietaniemi2002-01-031-0/+4
| | | p4raw-id: //depot/perl@14041
* Avoid un-init perl_debug_pad in clonesNick Ing-Simmons2002-01-021-0/+1
| | | p4raw-id: //depot/perlio@14017
* Correct checking code which Ilya spotted was tripped by CR at EOF.Nick Ing-Simmons2001-12-221-1/+5
| | | | | Also tone down perl -DP tracing of sv_gets. p4raw-id: //depot/perlio@13847
* Re: [ID 20011213.001] Segfault with overload and TestHugo van der Sanden2001-12-191-1/+1
| | | | | Message-Id: <200112190145.fBJ1jNt23668@crypt.compulink.co.uk> p4raw-id: //depot/perl@13786
* %g -> NVgf cleanup, based on Schwern's RedHat 7.1/AlphaJarkko Hietaniemi2001-12-181-9/+9
| | | | | | findings -- some of the warnings I can't explain except by NVgf being detected wrong, though. p4raw-id: //depot/perl@13764
* Tidied version of Jeffrey Friedl's <jfriedl@yahoo.com> restricted hashesNick Ing-Simmons2001-12-181-2/+2
| | | | | | - added delete of READONLY value inhibit & test for same - re-tabbed p4raw-id: //depot/perlio@13760
* Silence compiler worries found by Schwern/Digital cc.Jarkko Hietaniemi2001-12-141-2/+2
| | | p4raw-id: //depot/perl@13691
* Fix odd language in an sv.c commentcoral@eekeek.org2001-12-081-3/+3
| | | | | Message-Id: <200112081719.fB8HJdZ14747@eekeek.org> p4raw-id: //depot/perl@13536
* Retract #11156 since Sarathy has found that it breaks code:Jarkko Hietaniemi2001-12-081-3/+3
| | | | | | http://bugs.ActiveState.com/show_bug.cgi?id=18457 http://bugs.ActiveState.com/show_bug.cgi?id=18858 p4raw-id: //depot/perl@13533
* shared hash keys and ++/--Nicholas Clark2001-12-031-0/+4
| | | | | Message-ID: <20011203163716.C21702@plum.flirble.org> p4raw-id: //depot/perl@13442
* Really define do_report_used() only if DEBUGGING.Jarkko Hietaniemi2001-11-201-2/+3
| | | p4raw-id: //depot/perl@13139
* Protect sv_dump() from being included unless DEBUGGING,Jarkko Hietaniemi2001-11-191-0/+4
| | | | | as noticed by Ilya. p4raw-id: //depot/perl@13098
* Allow dup'ing of PerlIO::Scalar etc.Nick Ing-Simmons2001-11-181-4/+4
| | | p4raw-id: //depot/perlio@13072
* a few typo fixes Jeffrey Friedl2001-11-121-3/+3
| | | | | | | | | | | Message-Id: <200111120515.fAC5FIc74795@ventrue.corp.yahoo.com> Patching README.foo instead of pod/perlfoo.pod, not patching Math::BigInt (Tels will take care of that), dropping broken hv.c and sv.h patches, patching libnetcfg.PL and perldoc.PL instead of libnetcfg and perldoc, patching ext/Digest/MD5/t/files.t since MD5.pm was changed. p4raw-id: //depot/perl@12954
* A potential recursion breaker.Jarkko Hietaniemi2001-11-101-1/+1
| | | p4raw-id: //depot/perl@12931
* Tweak for Cray-friendliness from Nicholas Clark.Jarkko Hietaniemi2001-11-071-1/+1
| | | p4raw-id: //depot/perl@12892
* Ugly bandaid to stop C<package;> from segfaulting (remember toAbhijit Menon-Sen2001-11-031-4/+15
| | | | | | remove this later). Based on a patch from Robert Spier in <15330.61459.14452.795263@rls.cx>. p4raw-id: //depot/perl@12827
* Unicode: add ToFold mapping. Not used yet; but basicallyJarkko Hietaniemi2001-11-021-0/+1
| | | | | | | | | | a more useful mapping for caseless aka case-ignoring than doing either lc($a) eq lc($b) or uc($a) eq uc($b); the full algorithm for creating the foldings uses equivalence classes, see http://www.unicode.org/unicode/reports/tr21/ Hopefully this feature will be used in //i. (The folding tables were introduced by #12689.) p4raw-id: //depot/perl@12807
* Extend the effect of the encoding pragma to chr() and ord().Jarkko Hietaniemi2001-10-311-1/+1
| | | | | | TODO: regex literals, reentrancy problems with the utf8 and charnames pragmas. p4raw-id: //depot/perl@12790
* More documentation for the encode pragma.Jarkko Hietaniemi2001-10-311-1/+2
| | | p4raw-id: //depot/perl@12785
* Thinko in #12783.Jarkko Hietaniemi2001-10-311-1/+1
| | | p4raw-id: //depot/perl@12784
* Make sv_recode_to_utf8() a real API: the encodingJarkko Hietaniemi2001-10-311-35/+40
| | | | | | is a parameter, instead of a global. Document the PERL_ENCODING. p4raw-id: //depot/perl@12783
* Enable -Mencoding=foobar also for string literals.Jarkko Hietaniemi2001-10-311-28/+48
| | | p4raw-id: //depot/perl@12782
* Add the encoding pragma to control the "upgrade"Jarkko Hietaniemi2001-10-281-21/+49
| | | | | | | from the native eight bit data to Unicode. TODO: \x.. and \0... literals. \N{}. chr()? ord()? p4raw-id: //depot/perl@12750
* Make the "isn't numeric" warning to show Unicode as Unicode.Jarkko Hietaniemi2001-10-231-49/+58
| | | p4raw-id: //depot/perl@12613
* Change #12607 introduced a bug, seems like some MAGICAL SVsArtur Bergman2001-10-231-1/+5
| | | | | | don't call themselves READONLY but still die with modification attempt. We only call bless for ext and umagic. p4raw-id: //depot/perl@12610