summaryrefslogtreecommitdiff
path: root/sv.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove sv_setpviv{_,mg}; regen perlapi.Jarkko Hietaniemi2002-05-011-38/+0
| | | p4raw-id: //depot/perl@16290
* remove macroized bincompat functions Dave Mitchell2002-05-011-132/+0
| | | | | Message-ID: <20020430235543.A27796@fdgroup.com> p4raw-id: //depot/perl@16289
* More VC5-induced casting found by Nikola Knezevic.Jarkko Hietaniemi2002-04-271-1/+1
| | | p4raw-id: //depot/perl@16232
* fix typo that caused pseudo-fork() crashes on win64 (we were onlyGurusamy Sarathy2002-04-261-1/+1
| | | | | allocating half of the retstack!) p4raw-id: //depot/perl@16181
* -Wformat cleanups from Robin Barker.Jarkko Hietaniemi2002-04-251-1/+1
| | | p4raw-id: //depot/perl@16156
* fixes for all the warnings reported by Visual C (most of thisGurusamy Sarathy2002-04-211-17/+19
| | | | | | change is from change#12026) p4raw-link: @12026 on //depot/maint-5.6/perl: ff42b73b40f5a895aef4bed81c794f468e0609bc p4raw-id: //depot/perl@16048
* Windows 64-bit support:Gurusamy Sarathy2002-04-211-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | * support for building it in the regular makefiles * large files support via the _*i64() functions (this should be portable to the 32-bit universe too, but quite untested and and binary-incompatible, therefore not enabled there) * three additional test failures in addition to the t/end.t one (see README.win32) * sprintf() on Windows gets %I{32,64,}[xoud] format that parallel the ones available from the CRT (needed because Perl uses the UVxf macros in both sprintf() *and* in sv_catpvf() et al.) * add a few 64-bit notes to README.win32 The following general problems were also fixed: * s/struct stat/Stat_t/g * Data::Dumper had some naughty 'long' typecasts * Errno_pm.PL didn't work safe when winsock.h was not in the same directory as errno.h * various tell/seek things were incorrectly prototyped * squelch ugly looking noise when running tests * Embed.t wasn't linking in all the libraries * perl57.dll is now perl58.dll (anticipating 5.8.0-RC1) * re-enable all the disabled warnings (additional fixes may be needed for the warnings uncovered by this) p4raw-id: //depot/perl@16033
* my $utf8here, our $utf8here, and package variable $utf8here.Jarkko Hietaniemi2002-04-161-0/+2
| | | | | | | | | | | | | | | The actual minimal fix is in utf8.c and from NI-S, the rest are the tests (in fresh_perl since I couldn't get them easily to work elsewhere) and a slight behaviour change: previously UTF-8 identifiers had to start with an alphabetic character. No more so, now they can start with an (Unicode) ID_Continue character (which however is not a (Unicode) digit). (Limiting the first character to ID_Start would be rather restrictive, since ID_Start allows only alphabetic letters.) TODO: use vars qw($utf8here). This I don't find to be a showstopper. p4raw-id: //depot/perl@15943
* Fully qualify in warning message the name of a subroutine redefinedRafael Garcia-Suarez2002-04-071-2/+3
| | | | | via glob assignment p4raw-id: //depot/perl@15789
* Re: [ID 20020324.003] fairly major problem with qr/.../x (with test PATCH)Jeffrey Friedl2002-03-281-0/+35
| | | | | Message-Id: <200203281012.g2SAC3K93291@ventrue.corp.yahoo.com> p4raw-id: //depot/perl@15580
* In the spirit of #15464.Jarkko Hietaniemi2002-03-241-4/+2
| | | p4raw-id: //depot/perl@15465
* tidy sv.[ch] after CRIPPLED_CC removalDave Mitchell2002-03-231-21/+40
| | | | | Message-ID: <20020323222724.A19425@fdgroup.com> p4raw-id: //depot/perl@15452
* Purify: Unitialized memory read. Too many code pathsJarkko Hietaniemi2002-03-231-1/+1
| | | | | to keep track of, I guess. p4raw-id: //depot/perl@15436
* Fix for "UTF-8 bug with s///" from Hugo.Jarkko Hietaniemi2002-03-201-0/+1
| | | p4raw-id: //depot/perl@15356
* For DEBUGGING threaded builds.Jarkko Hietaniemi2002-03-181-0/+6
| | | p4raw-id: //depot/perl@15306
* Avoid overwrite of un-allocated memory when SvCUR > SvLENNick Ing-Simmons2002-03-171-5/+7
| | | p4raw-id: //depot/perlio@15273
* HP-UX gcc 3 warnings found by Sarathy.Jarkko Hietaniemi2002-03-161-11/+11
| | | p4raw-id: //depot/perl@15255
* 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