summaryrefslogtreecommitdiff
path: root/gv.c
Commit message (Collapse)AuthorAgeFilesLines
* GvUNIQUE* have been defined as 0 since 2005/06/30 - high time to remove them.Nicholas Clark2009-04-131-5/+0
|
* Fall back to "" overload for -X.Ben Morrow2009-03-251-0/+1
|
* In amagic_call(), offset should be strictly lesser than the SV len to be ↵Vincent Pit2009-01-021-1/+1
| | | | allowed to access the corresponding string buffer byte
* Fix overload index mismatch in overloading logic.Vincent Pit2009-01-021-1/+1
| | | | In amagic_call(), the 'method' arg comes the overload enum in overload.h, but is expected to match the bit set from %overloading::numbers::names. It values wrongly start at 1, differing by 1 from the enum indexes. This didn't appear in the tests because 'method' was reduced modulo 7 instead of 8.
* Bump copyright year after previous change d15cd8313063e574Rafael Garcia-Suarez2009-01-021-1/+1
|
* Move variable declaration without initialisation at the topRafael Garcia-Suarez2009-01-021-1/+2
| | | | Plus a comment by Nicholas
* 'overloading' pragmaYuval Kogman2009-01-021-0/+20
|
* Merge S_is_gv_magical() into Perl_is_gv_magical_sv().Nicholas Clark2008-11-261-23/+6
| | | p4raw-id: //depot/perl@34931
* is_gv_magical() is only called from within gv.c.Nicholas Clark2008-11-261-1/+1
| | | p4raw-id: //depot/perl@34926
* Hard-coded Perl_pp_entersub and Perl_pp_entereval should use PL_ppaddrTim Bunce2008-11-201-1/+1
| | | | | | | Message-ID: <20081120131719.GA32120@timac.local> [tweaked for blead because of change 27941] p4raw-id: //depot/perl@34896
* [perl #948] [PATCH] Allow tied $,Chip Salzenberg2008-11-141-2/+0
| | | | | Message-ID: <20081114084436.GJ5779@tytlal.topaz.cx> p4raw-id: //depot/perl@34831
* Fix DBM module handling broken by #34653.Marcus Holland-Moritz2008-11-031-11/+10
| | | p4raw-id: //depot/perl@34710
* Re: @{"_<$filename"} is unreasonably tied to use of DB::DB ($^P & 0x2)Tim Bunce2008-11-031-1/+1
| | | | | | Message-ID: <20081103160130.GA45762@timac.local> Date: Mon, 3 Nov 2008 16:01:31 +0000 p4raw-id: //depot/perl@34705
* PATCH: Large omnibus patch to clean up the JRRT quotesTom Christiansen2008-11-021-1/+3
| | | | | | Message-ID: <25940.1225611819@chthon> Date: Sun, 02 Nov 2008 01:43:39 -0600 p4raw-id: //depot/perl@34698
* Add MUTABLE_GV(), and eliminate (V *) casts in *.c.Nicholas Clark2008-10-311-8/+9
| | | | | | Can't easily do gv.h, as GvGP() (at least) needs to split into two macros - one const for reading, one non-const for writing. p4raw-id: //depot/perl@34679
* Eliminate (SV *) casts from the rest of *.c, picking up one (further)Nicholas Clark2008-10-301-26/+27
| | | | | erroneous const in dump.c. p4raw-id: //depot/perl@34675
* Add MUTABLE_IO(), and eliminate (IO *) casts in *.c.Nicholas Clark2008-10-291-1/+1
| | | p4raw-id: //depot/perl@34654
* Use pvs macros instead of pvn where possible.Marcus Holland-Moritz2008-10-291-8/+8
| | | p4raw-id: //depot/perl@34653
* Add MUTABLE_CV(), and eliminate (CV *) casts in *.c.Nicholas Clark2008-10-291-2/+2
| | | p4raw-id: //depot/perl@34647
* Every remaining (HV *) cast in *.cNicholas Clark2008-10-281-2/+2
| | | p4raw-id: //depot/perl@34629
* Update copyright years.Nicholas Clark2008-10-251-2/+2
| | | p4raw-id: //depot/perl@34585
* Run Porting/checkARGS_ASSERT.pl and fix what it picks up. (Which,Nicholas Clark2008-05-101-1/+3
| | | | | coincidentally were both from changes I made) p4raw-id: //depot/perl@33814
* Remove a dead case from the error reporting inNicholas Clark2008-04-171-5/+5
| | | | | Perl_gv_fetchmethod_flags() p4raw-id: //depot/perl@33707
* Perl_gv_fetchmethod{,_autoload,_flags} are actually never* called withNicholas Clark2008-04-171-1/+1
| | | | | | a non-NULL stash. So change the parameter to NN. * Fixed the one really obscure hitherto untested case. p4raw-id: //depot/perl@33706
* %.*s mandates an "int", says the C standardRafael Garcia-Suarez2008-04-171-1/+1
| | | p4raw-id: //depot/perl@33704
* Fix warning with int size in printf formatRafael Garcia-Suarez2008-04-171-1/+1
| | | p4raw-id: //depot/perl@33703
* /* This code tries to figure out just what went wrong withNicholas Clark2008-04-171-11/+41
| | | | | | | | | | | gv_fetchmethod. It therefore needs to duplicate a lot of the internals of that function. "Duplicate". <snigger>. You said a naughty word. Now sanitised. [All tests pass, but I'm not 100% confident that this code is equivalent in all reachable corner cases, and it may be possible to simplify the error reporting logic now in gv_fetchmethod_flags] p4raw-id: //depot/perl@33702
* Avoid forwards and then backwards on the :: splitting logic inNicholas Clark2008-04-161-7/+8
| | | | | Perl_gv_fetchmethod_autoload() p4raw-id: //depot/perl@33701
* Using memEQ() rather than strnEQ() when the length is known feelsNicholas Clark2008-04-161-3/+3
| | | | | cleaner. p4raw-id: //depot/perl@33696
* is_gv_magical correctly check "ISA"Gerard Goossen2008-04-111-1/+1
| | | | | Message-ID: <20080409101244.GA11209@ostwald> p4raw-id: //depot/perl@33665
* use svtypeRobin Barker2008-02-141-4/+4
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <46A0F33545E63740BC7563DE59CA9C6D093A35@exchsvr2.npl.ad.local> p4raw-id: //depot/perl@33304
* assert() that every NN argument is not NULL. Otherwise we have theNicholas Clark2008-02-121-1/+64
| | | | | | | | | | | | 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
* Extend newSVpvn_flags() to also call sv_2mortal() if SVs_TEMP is set inNicholas Clark2008-01-031-2/+2
| | | | | | the flags. Move its implementation just ahead of sv_2mortal()'s for CPU cache locality. Refactor all code that can be to use this. p4raw-id: //depot/perl@32818
* Eliminating the duplicate logic in S_method_common() andNicholas Clark2007-11-241-0/+11
| | | | | | | | | Perl_gv_fetchmethod_autoload() is clearly TODO. Move the paragraph "strcat(), strcpy(), strncat(), strncpy(), sprintf(), vsprintf()" to the section "Tasks that need a little C knowledge" as it doesn't need any XS knowledge. p4raw-id: //depot/perl@32478
* SQL::Translator triggered a subtle piece of wrongness, whereby itNicholas Clark2007-10-221-2/+10
| | | | | | | | | managed to cause a proxy constant subroutine in the symbol table to be upgraded to a GV at precisely the point where it was being considered as a possible IO handle name. The core's user-space visible behaviour certainly was buggy - I believe this patch to be the correct fix. However, it seems to be very hard to write a test for it. p4raw-id: //depot/perl@32172
* Change 32136 introduced an error - passing a const char * toNicholas Clark2007-10-181-1/+1
| | | | | sv_usepvn_flags(). Fixed. p4raw-id: //depot/perl@32139
* Eliminate some uses of sv_setpv() where we already know the length.Nicholas Clark2007-10-181-2/+3
| | | | | | Donate the prototype buffer to the CV in Perl_gv_init(), rather than setting a copy, and immediately free()ing the original. p4raw-id: //depot/perl@32136
* In Perl_amagic_call(), construct the SV with newSVpvn(), as we now knowNicholas Clark2007-10-181-1/+2
| | | | | the length. (Not sure why I didn't spot this one during change 32124.) p4raw-id: //depot/perl@32132
* No need to call strlen() on the result of CopSTASHPV() when unthreaded,Nicholas Clark2007-10-181-0/+5
| | | | | | | as the length is already known. Hence conditionally compile out the logic related to the call to strlen() from S_method_common(), and use newSVhek in S_gv_get_super_pkg(). p4raw-id: //depot/perl@32130
* Don't call strlen() on CopFILE() for the unthreaded case, because theNicholas Clark2007-10-181-2/+16
| | | | | length can be obtained via CopFILESV(). p4raw-id: //depot/perl@32129
* Where possible, change gv_fetchfile() to gv_fetchfile_flags(),Nicholas Clark2007-10-181-1/+2
| | | | | | | | | | | gv_stashpv() to gv_stashpvn() and gv_fetchpv() to gv_fetchpvn_flags(). Change the len parameter of S_find_in_my_stash() from I32 to STRLEN, as a pointer the variable needs to be passed onwards, and size matters on 64 bit platforms. Fix the temporary scribbling of a buffer in Perl_yylex() by using gv_fetchpvn_flags(), and remove the XXX comment added in change 27641. Brought to you by the Campaign for the Elimination of strlen(). p4raw-id: //depot/perl@32127
* Storing the length of all the overloading names saves a strlen() in aNicholas Clark2007-10-171-1/+1
| | | | | | loop in Perl_Gv_AMupdate(). Brought to you by the Campaign for the Elimination of strlen(). p4raw-id: //depot/perl@32124
* PL_AMG_names is only used by gv.c (as far as Google code search canNicholas Clark2007-10-161-0/+1
| | | | | | | see), so it can easily be a static variable inside gv.c. This allows the implementation to be changed in future Perls within the 5.10.x series. p4raw-id: //depot/perl@32116
* Re: [perl #46217] (resent) Typeglobs vs. SUPER:: (Hook::LexWrap failure)Brandon Black2007-10-081-2/+28
| | | | | | From: "Brandon Black" <blblack@gmail.com> Message-ID: <84621a60710072036l60c29016tba8a32b8021b5b24@mail.gmail.com> p4raw-id: //depot/perl@32065
* Silence a load of "value computed is not used" warningsRafael Garcia-Suarez2007-09-211-1/+1
| | | p4raw-id: //depot/perl@31936
* Turn the "$# / $* is no longer supported" warnings intoRafael Garcia-Suarez2007-07-111-1/+1
| | | | | severe warnings (as suggested by Audrey Tang) p4raw-id: //depot/perl@31589
* First patch from:Brandon Black2007-06-261-2/+5
| | | | | | | | | | Subject: Re: [perl #43357] *DESTROY = sub {} at runtime From: "Brandon Black" <blblack@gmail.com> Message-ID: <84621a60706260905x2da6eaf1x4bd7d5223951e52@mail.gmail.com> Fix problem recently introduced with loosing a DESTROY when redefined at runtime. p4raw-id: //depot/perl@31472
* Re: [PATCH] Callbacks for named captures (%+ and %-)Ævar Arnfjörð Bjarmason2007-06-061-2/+2
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80706031324y5618d519p460da27a2e7fe712@mail.gmail.com> p4raw-id: //depot/perl@31341
* FETCH/STORE/LENGTH callbacks for numbered capture variablesÆvar Arnfjörð Bjarmason2007-05-031-11/+11
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80705011658g1156e14cw4d2b21a8d772ed41@mail.gmail.com> p4raw-id: //depot/perl@31130
* Re: mro status, etcBrandon Black2007-04-301-27/+4
| | | | | | From: "Brandon Black" <blblack@gmail.com> Message-ID: <84621a60704291527y1b39be37l221ef66e4c828f66@mail.gmail.com> p4raw-id: //depot/perl@31107