summaryrefslogtreecommitdiff
path: root/sv.c
Commit message (Collapse)AuthorAgeFilesLines
* Set the IV values for PL_sv_yes and PL_sv_no at initialisation time.Nicholas Clark2004-10-311-2/+6
| | | p4raw-id: //depot/perl@23445
* [perl #31851] Threading crash with closuresDave Mitchell2004-10-291-0/+4
| | | | | various OpREFCNT_inc() operations weren't doing locking p4raw-id: //depot/perl@23433
* Document sv_magic() changes brought about by sv_magicext()Steve Hay2004-10-291-9/+12
| | | | | | | | | | Change 14335 made sv_magic() a wrapper to a new sv_magicext(), but didn't update the documentation for sv_magic() to reflect the changed handling of the name/namlen arguments. Also correct a couple of typos, and mention sv_magicext() in perlguts. p4raw-id: //depot/perl@23432
* Implement sv_svset _nosteal variants by passing a flag intoNicholas Clark2004-10-151-2/+5
| | | | | | sv_set_flags rather than messing with the SvTEMP() flag on either side of the call. p4raw-id: //depot/perl@23373
* Document sv_vcatpvf, sv_vsetpvf, sv_vcatpvf_mg and sv_vsetpvf_mg.Steve Hay2004-10-151-12/+45
| | | | | | | These are already in the API supported by Devel::PPPort, and are often more useful than sv_vcatpvfn and sv_vsetpvfn which were already documented. p4raw-id: //depot/perl@23368
* Perl_sv_recode_to_utf8 shouldn't be returning SvPVX(sv) withoutNicholas Clark2004-10-021-1/+2
| | | | | any check on whether it's valid. p4raw-id: //depot/perl@23344
* [perl #30066] Memory leak in nested shared data structures in 5.8.4Dave Mitchell2004-09-121-1/+2
| | | | | | | A pop of an item from a shared array ref causes a leak due to AVf_REAL not having been set after an sv_upgrade(sv, SVt_PVAV). Make sv_upgrade() set always this flag. p4raw-id: //depot/perl@23320
* SvO?OK_off()'s return valueMarcus Holland-Moritz2004-09-081-5/+6
| | | | | | | Message-Id: <20040801124648.7f9b3cee@r2d2> Move (void) casts into SvOOK_off macro. p4raw-id: //depot/perl@23277
* signedness nit in #23190Craig A. Berry2004-08-061-1/+1
| | | | | | From: "Craig A. Berry" <craigberry@mac.com> Message-ID: <4112782F.7040302@mac.com> p4raw-id: //depot/perl@23197
* Remove compilation warnings about uninitialized variables.Rafael Garcia-Suarez2004-08-041-3/+3
| | | p4raw-id: //depot/perl@23193
* Remove the "Newline in left-justified string" warning.Rafael Garcia-Suarez2004-08-041-8/+1
| | | p4raw-id: //depot/perl@23192
* Final version object core patch?John Peacock2004-08-041-0/+12
| | | | | Message-ID: <411048BD.3080700@rowman.com> p4raw-id: //depot/perl@23190
* remove the return stack PL_retstack, and store return ops in the CXDave Mitchell2004-07-231-10/+3
| | | | | structure directly instead p4raw-id: //depot/perl@23156
* Encourage compilers to tail call optimise in sv_savepv, sv_savepvnNicholas Clark2004-07-161-2/+1
| | | | | | and sv_savesharedpv. Need to create non-void returning versions of Copy and Zero, as the existing macros deliberately cast to (void) p4raw-id: //depot/perl@23126
* Bodge to make Tk work - like the UTF8 flag, the READONLY flag has tooNicholas Clark2004-07-121-1/+7
| | | | | many meanings. const const vs mutable in this case. p4raw-id: //depot/perl@23085
* NI-S: IMHO utf8_upgrade is just changing representation not the valueNick Ing-Simmons2004-07-121-52/+50
| | | | | so it has no business calling SvSETMAGIC. p4raw-id: //depot/perl@23084
* Make Perl_sv_utf8_upgrade_flags tolerate PL_sv_undefRafael Garcia-Suarez2004-07-071-0/+2
| | | | | as an argument. p4raw-id: //depot/perl@23063
* Assert that we aren't leaking memory.Nicholas Clark2004-06-301-0/+1
| | | p4raw-id: //depot/perl@23018
* Note that sv_2mortal isn't just "increase reference count by 1, andNicholas Clark2004-06-291-1/+3
| | | | | mark that it needs a deferred recount" p4raw-id: //depot/perl@23011
* [perl #30509] use encoding and "eq" cause memory leakDave Mitchell2004-06-281-1/+3
| | | | | Perl_sv_eq() was creating a temp and not always freeing it p4raw-id: //depot/perl@23006
* As 2/3rds (or 3/4s) of the SV head structure is rewritten, it doesn'tNicholas Clark2004-06-171-1/+1
| | | | | seem that memzero() of everything is the most efficient idea. p4raw-id: //depot/perl@22945
* Assert that SV type has magic member when reading/writing.Nicholas Clark2004-06-141-2/+3
| | | | | Will catch buggy code. p4raw-id: //depot/perl@22934
* Re: newSVpvn(NULL, 0); doesn't work as advertisedMarcus Holland-Moritz2004-06-081-2/+3
| | | | | Message-Id: <20040604162944.4011f1c6@r2d2> p4raw-id: //depot/perl@22905
* Re: [PATCH] [perl #29841] utf8::decode doesn't work under -T SADAHIRO Tomoyuki2004-06-061-13/+14
| | | | | Message-Id: <20040606003344.57B2.BQW10602@nifty.com> p4raw-id: //depot/perl@22902
* Re: utf-8 and taint don't work togetherSADAHIRO Tomoyuki2004-05-241-7/+5
| | | | | | | | | Date: Sat, 22 May 2004 21:38:33 +0900 Message-Id: <20040522212704.C068.BQW10602@nifty.com> Date: Sun, 23 May 2004 09:56:15 +0900 Message-Id: <20040523095609.E404.BQW10602@nifty.com> p4raw-id: //depot/perl@22842
* improve hashing algorithm for ptr tables in perl_clone:Dave Mitchell2004-05-191-3/+9
| | | | | the bottom few bits of a pointer are usually zero p4raw-id: //depot/perl@22831
* [perl #29637] Thread creation time is hypersensitiveDave Mitchell2004-05-191-3/+3
| | | | | | Due to a logic error, the dup ptr table sometimes wans't being grown, leading to extremely slow cloning. p4raw-id: //depot/perl@22830
* [perl #29527] Perl 5.8.4 build problems on LynxOS Olli Savia2004-05-121-0/+5
| | | | | | From: Olli Savia (via RT) <perlbug-followup@perl.org> Message-ID: <rt-3.0.9-29527-87290.17.3367022021997@perl.org> p4raw-id: //depot/perl@22817
* symbolic references like ${"foo$index"}*3 would incorrectly warnDave Mitchell2004-05-071-0/+1
| | | | | that $index was the uninitialized value, when in fact it was $foo1 p4raw-id: //depot/perl@22802
* Fix 29149 - another UTF8 cache bug hit by substr.SADAHIRO Tomoyuki2004-04-291-2/+9
| | | | | | | | | Regression test from: Subject: Re: [perl #29149] substr/UTF8 related problem with perl 5.8.3 on linux Message-Id: <20040429103926.5BA6.BQW10602@nifty.com> Date: Thu, 29 Apr 2004 10:53:17 +0900 p4raw-id: //depot/perl@22755
* fix 64-bit casting error in change 22741 (uninit var warnings)Dave Mitchell2004-04-241-1/+1
| | | p4raw-id: //depot/perl@22742
* Include variable names in "Use of uninitialized value" warningsDave Mitchell2004-04-231-16/+477
| | | p4raw-id: //depot/perl@22741
* [patch] log the interpreter id in warningsStas Bekman2004-04-211-6/+6
| | | | | Message-ID: <40847869.1000906@stason.org> p4raw-id: //depot/perl@22721
* Stop PL_comppad pointing to a freed pad during global destructionDave Mitchell2004-04-111-0/+4
| | | p4raw-id: //depot/perl@22688
* Make global cleanup fractionally faster by giving S_visit()Dave Mitchell2004-04-111-7/+11
| | | | | flags/mask to compare SVs against. p4raw-id: //depot/perl@22687
* C<undef> doesn't look like a number. See also:Marcus Holland-Moritz2004-04-051-1/+1
| | | | | | Subject: Re: [perl #27606] undef "looks like" a number Message-Id: <20040315221626.48061c67@r2d2> p4raw-id: //depot/perl@22662
* sv_pvutf8n_force and sv_pvbyten_forceSADAHIRO Tomoyuki2004-04-051-2/+6
| | | | | Message-Id: <20040324001126.098F.BQW10602@nifty.com> p4raw-id: //depot/perl@22652
* [perl #27268] Blessed reference to anonymous globDave Mitchell2004-03-261-0/+1
| | | | | Stop *$$x=$x giving "Attempt to free unreferenced scalar" warning p4raw-id: //depot/perl@22591
* Silence a gcc warning.Rafael Garcia-Suarez2004-03-211-1/+1
| | | p4raw-id: //depot/perl@22546
* Re: [perl #27803] perl crashes when utf8::upgrade($offsetOK_scalar) SADAHIRO Tomoyuki2004-03-211-1/+2
| | | | | Message-Id: <20040321151828.DAC6.BQW10602@nifty.com> p4raw-id: //depot/perl@22545
* Update copyright noticesRafael Garcia-Suarez2004-03-161-1/+1
| | | p4raw-id: //depot/perl@22509
* Fix a bug in the cloning of regexpsHugo van der Sanden2004-03-121-2/+2
| | | | | | | Subject: Re: [perl #27530] Regex qr// interpolation fails when chr(0) is used in a thread Message-Id: <200403111621.i2BGLoi20225@zen.crypt.org> (plus another similar fix) p4raw-id: //depot/perl@22490
* croaking for readonly SVs in Perl_sv_utf8_upgrade_flags was a mistakeNicholas Clark2004-03-101-4/+0
| | | | | back this out until we have a tangible policy p4raw-id: //depot/perl@22483
* Fix Dave's original shared hash key corruption bugNicholas Clark2004-03-071-0/+6
| | | p4raw-id: //depot/perl@22465
* Add a readonly check to Perl_sv_utf8_upgrade_flags, a regresion testNicholas Clark2004-03-071-2/+6
| | | | | in utf8.t, and fix 3 bugs it exposed in utfhash.t p4raw-id: //depot/perl@22463
* silence some compiler warningsDave Mitchell2004-03-051-2/+2
| | | p4raw-id: //depot/perl@22440
* ensure utf8::encode() normalises its argDave Mitchell2004-03-041-3/+3
| | | p4raw-id: //depot/perl@22439
* Re: op_seq (was: Freeing code)Paul Johnson2004-02-211-1/+0
| | | | | | | | | | Message-ID: <20040221013147.GB6953@pjcj.net> Rework the OP structure to use less space. Remove op_seq (and simulate it in dump.c), replace it by op_opt and op_static, shrink op_type, remove PL_op_seqmax. p4raw-id: //depot/perl@22353
* Slight update to #22315 ($lval=*FOO); optimise the hot tests,Dave Mitchell2004-02-171-7/+8
| | | | | and fix some incorrect indentation p4raw-id: //depot/perl@22316
* Re: [PATCH] GLOB to LVALUE assignment fixTassilo von Parseval2004-02-171-1/+7
| | | | | | | Message-Id: <20040217163216.GA6805@ethan> Make PVLV a superset of PVGV, so that $lvalue = *FOO works p4raw-id: //depot/perl@22315