summaryrefslogtreecommitdiff
path: root/pad.c
Commit message (Collapse)AuthorAgeFilesLines
* assert() that every NN argument is not NULL. Otherwise we have theNicholas Clark2008-02-121-0/+30
| | | | | | | | | | | | ability to create landmines that will explode under someone in the future when they upgrade their compiler to one with better optimisation. We've already done this at least twice. (Yes, some of the assertions are after code that would already have SEGVd because it already deferences a pointer, but they are put in to make it easier to automate checking that each and every case is covered.) Add a tool, checkARGS_ASSERT.pl, to check that every case is covered. p4raw-id: //depot/perl@33291
* [perl #49522] state variable not availableDave Mitchell2008-01-191-4/+9
| | | | | | Svf_PADSTALE means something different for state vars. Make sure we always handle it correctly p4raw-id: //depot/perl@33009
* change #31447 was wrong. Really handle cloning a stale lexical varDave Mitchell2008-01-091-5/+5
| | | | | p4raw-link: @31447 on //depot/perl: efa785391fea9e6aff4c999b27ad62b7d8f9ea99 p4raw-id: //depot/perl@32906
* when anon subs are cloned, the 'assign once only' flag should beDave Mitchell2007-09-101-0/+3
| | | | | | set for all state vars in the pad. (Nicholas worked up the same fix - spooky action at a distance!) p4raw-id: //depot/perl@31835
* [perl #43425] local $[: fix scoping during parser error handling.Dave Mitchell2007-07-161-2/+2
| | | | | | | | | Change 22306# inadvertently made 'local $[' statement-scoped rather than block-scoped; so revert that change and add a different fix. The problem was to ensure that the savestack got popped correctly while popping errored tokens. We how record the current value of PL_savestack_ix with each pushed parser state. p4raw-id: //depot/perl@31615
* safely handle cloning a stale lexical varDave Mitchell2007-06-221-2/+2
| | | | | | | This code: my $x if ...; sub { $x} could attempt to clone $x even if $x is stale. p4raw-id: //depot/perl@31447
* move PL_in_my and PL_in_my_stash into the PL_parser structDave Mitchell2007-05-121-1/+1
| | | p4raw-id: //depot/perl@31203
* Various variables in intrpvar.h and thrdvar.h are considerably largerNicholas Clark2007-04-211-1/+1
| | | | | than they need to be. p4raw-id: //depot/perl@31017
* Like fake scalars, state variables shouldn't get new pad entriesRafael Garcia-Suarez2007-03-121-1/+4
| | | | | at each recursion, in order to be truly stateful. (bug #41789) p4raw-id: //depot/perl@30548
* Add a new API function newSV_type, to replace the idiom:Nicholas Clark2007-02-181-7/+4
| | | | | | sv = newSV(0); sv_upgrade(sv, type); p4raw-id: //depot/perl@30347
* Update copyright years in .c filesRafael Garcia-Suarez2007-01-051-1/+1
| | | p4raw-id: //depot/perl@29696
* 4th patch from: Marcus Holland-Moritz2007-01-041-1/+1
| | | | | | | | | Subject: [PATCH] Cleanup SVf arguments (2nd try) Message-ID: <20070101201613.4120d9ef@r2d2> Introduce an SVfARG() macro for %SVf (%-p here) arguments to perl's printf p4raw-id: //depot/perl@29687
* Rename OURSTASH to SvOURSTASH and OURSTASH_set to SvOURSTASH_set.Nicholas Clark2007-01-031-5/+5
| | | p4raw-id: //depot/perl@29679
* With xlow and xhigh as U32, PAD_MAX shouldn't be IV_MAX, as on a 64 bitNicholas Clark2006-12-291-1/+1
| | | | | system this can't be stored. p4raw-id: //depot/perl@29639
* Move PAD_COMPNAME_GEN from SvCUR to SvUVX.Nicholas Clark2006-12-281-3/+1
| | | p4raw-id: //depot/perl@29632
* Move PAD_FAKELEX_ANON and PAD_FAKELEX_MULTI to pad.h, export them viaNicholas Clark2006-12-281-5/+0
| | | | | B.pm, so that B::Concise doesn't need to hard code magic numbers. p4raw-id: //depot/perl@29631
* Move the low/high cop sequences from NVX/IVX to a two U32 structureNicholas Clark2006-12-281-14/+18
| | | | | | in the xnv union. This frees up IVX for the PL_generation code, which in turn will allow SvCUR to return to its real purpose. p4raw-id: //depot/perl@29630
* Abstract the pad code's overloaded use of SvNVX and SvIVX intoNicholas Clark2006-12-281-34/+43
| | | | | | 4 macros COP_SEQ_RANGE_LOW, COP_SEQ_RANGE_HIGH, PARENT_PAD_INDEX and PARENT_FAKELEX_FLAGS p4raw-id: //depot/perl@29629
* Change PAD_MAX to something a bit less FORTRAN-ish than 999999999.Nicholas Clark2006-12-281-1/+1
| | | p4raw-id: //depot/perl@29628
* pads haven't actually contained any PVGVs since change 27313.Nicholas Clark2006-12-121-1/+2
| | | | | So correct the docs and assert this in the code. p4raw-id: //depot/perl@29535
* Introduce a new keyword, state, for state variables.Rafael Garcia-Suarez2006-05-031-3/+8
| | | p4raw-id: //depot/perl@28086
* reduce gcc -ansi -pedantic noise plus a suggestionJarkko Hietaniemi2006-04-281-1/+2
| | | | | Message-ID: <44527402.8000506@gmail.com> p4raw-id: //depot/perl@28008
* use NOOP macroAndy Lester2006-04-251-1/+1
| | | | | Message-ID: <20060424184451.GA1479@petdance.com> p4raw-id: //depot/perl@27958
* A couple of casts to PADOFFSET.Marcus Holland-Moritz2006-04-241-5/+5
| | | | | | | 2nd patch from : Subject: Re: [PATCH] cleanup 212 warnings emitted by gcc-4.2 Message-ID: <20060423044704.6a383ee8@r2d2> p4raw-id: //depot/perl@27945
* SvREFCNT_inc tweaksAndy Lester2006-04-031-5/+5
| | | | | Message-ID: <20060401080130.GA19372@petdance.com> p4raw-id: //depot/perl@27701
* Add MAD changes to pad code (new function Perl_pad_peg)Nicholas Clark2006-03-081-1/+9
| | | p4raw-id: //depot/perl@27419
* Speedups and shrinkages of SvREFCNT_incAndy Lester2006-02-271-22/+17
| | | | | Message-ID: <20060224205434.GA17867@petdance.com> p4raw-id: //depot/perl@27334
* Use PVMGs rather than PVGVs to store the names of our variables in theNicholas Clark2006-02-241-5/+5
| | | | | pad. p4raw-id: //depot/perl@27313
* Store the stash for our in the magic slot. This will allow us to useNicholas Clark2006-02-241-1/+1
| | | | | | PVMGs in pad names where previously PVGVs were used. In turn, this gives much greater flexibility for the layout of PVGVs. p4raw-id: //depot/perl@27312
* Replace usage of GvSTASH for storing the stash of C<our> withNicholas Clark2006-02-241-5/+4
| | | | | OURSTASH. Set the stash with OURSTASH_SET. p4raw-id: //depot/perl@27306
* Replace direct flags tests & manipulations for SVpad_TYPED andNicholas Clark2006-02-231-10/+10
| | | | | | SVpad_OUR with macros SvPAD_TYPED(), SvPAD_OUR() etc, to abstract away the flags bits acutally used to store this information. p4raw-id: //depot/perl@27294
* Add a new CvISXSUB() macro, for abstracting the test as to whether aNicholas Clark2006-02-201-2/+2
| | | | | PVCV is perl or XS. p4raw-id: //depot/perl@27241
* More NullXXX macro removal from Andy LesterRafael Garcia-Suarez2006-02-201-5/+5
| | | p4raw-id: //depot/perl@27238
* Sun Studio lint patchesAndy Lester2006-02-141-1/+1
| | | | | Message-ID: <20060214054617.GA8824@petdance.com> p4raw-id: //depot/perl@27177
* Handle unused argsAndy Lester2006-02-081-0/+2
| | | | | Message-ID: <20060207223656.GA5177@petdance.com> p4raw-id: //depot/perl@27129
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-13/+13
| | | | | | Message-ID: <20060203152449.GI12591@accognoscere.homeunix.org> Date: Fri, 3 Feb 2006 16:24:49 +0100 p4raw-id: //depot/perl@27065
* s/Nullcv/NULL/gSteven Schubiger2006-02-031-1/+1
| | | | | | Message-ID: <20060202150241.GF12591@accognoscere.homeunix.org> Date: Thu, 2 Feb 2006 16:02:41 +0100 p4raw-id: //depot/perl@27060
* Re: [PATCH] s/Null(av|ch)/NULL/gSteven Schubiger2006-02-021-1/+1
| | | | | Message-ID: <20060202093849.GD12591@accognoscere.homeunix.org> p4raw-id: //depot/perl@27054
* Change all NEWSV() to newSV() in the core and non-dual-lived modules.Steve Hay2006-01-181-8/+8
| | | | | | | | Keep NEWSV() itself for backwards-compatibility outside of the core, but don't advertise it any more. (cf. change #25101). p4raw-link: @25101 on //depot/perl: a02a5408b2f199007c4dcb74559cc79066307ada p4raw-id: //depot/perl@26901
* It's the Barbie bus patchAndy Lester2006-01-101-0/+1
| | | | | Message-ID: <20060110054243.GA26165@petdance.com> p4raw-id: //depot/perl@26764
* Update copyright years (including some years where we made changes butNicholas Clark2006-01-081-1/+1
| | | | | did not update) p4raw-id: //depot/perl@26732
* sprinkle dVARJarkko Hietaniemi2006-01-061-0/+22
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* s/Nullhv/NULL/g;Nicholas Clark2005-12-161-3/+3
| | | | | # Although I see that Robin is proposing to add some :-) p4raw-id: //depot/perl@26381
* s/Nullav/NULL/gNicholas Clark2005-12-161-1/+1
| | | p4raw-id: //depot/perl@26380
* Excluding pad funcs when not debuggingAndy Lester2005-12-101-2/+2
| | | | | Message-ID: <20051208035805.GA23007@petdance.com> p4raw-id: //depot/perl@26316
* Mark all places where perl needs to look at a possibly-freed scalarNicholas Clark2005-11-141-1/+1
| | | | | with a macro SvIS_FREED(sv) p4raw-id: //depot/perl@26132
* Add a comment about possible future refactoring of the pad code.Nicholas Clark2005-11-091-1/+7
| | | p4raw-id: //depot/perl@26060
* Stas' croak patch and then someAndy Lester2005-10-131-11/+11
| | | | | Message-ID: <20051013214212.GA1122@petdance.com> p4raw-id: //depot/perl@25754
* Re: [PATCH] Random constings and printf cleanupAndy Lester2005-10-051-4/+4
| | | | | Message-ID: <20051004201605.GA31682@petdance.com> p4raw-id: //depot/perl@25693
* undup Jarkko Hietaniemi2005-08-071-1/+1
| | | | | Message-ID: <42F5E243.80500@gmail.com> p4raw-id: //depot/perl@25274