summaryrefslogtreecommitdiff
path: root/gv.c
Commit message (Collapse)AuthorAgeFilesLines
* Sun Studio lint patchesAndy Lester2006-02-141-1/+2
| | | | | Message-ID: <20060214054617.GA8824@petdance.com> p4raw-id: //depot/perl@27177
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-16/+16
| | | | | | 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-7/+7
| | | | | | 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-4/+4
| | | | | Message-ID: <20060202093849.GD12591@accognoscere.homeunix.org> p4raw-id: //depot/perl@27054
* gv_fetchpvn_flags ranks highly in the profile, and the ::/' scanningNicholas Clark2006-02-021-1/+9
| | | | | | | loop is iterated over millions of times. Add a flag GV_NOTQUAL purely as an optimisation, when the caller is passing in a string that is known not to contain any package separators. p4raw-id: //depot/perl@27053
* Yet more instances of gv_fetchpv... that should be GV_ADD rather thanNicholas Clark2006-02-021-2/+2
| | | | | | TRUE. Convert two gv_fetchpvn_flags to gv_fetchpvs. p4raw-id: //depot/perl@27050
* And another assumption.Nicholas Clark2006-02-021-1/+3
| | | p4raw-id: //depot/perl@27049
* doubleplusoops. Apart from the documented NUL termination assumption.Nicholas Clark2006-02-011-14/+23
| | | | | Now removed. p4raw-id: //depot/perl@27046
* Oops. 1 NUL termination assumption remains in Perl_gv_fetchpvn_flagsNicholas Clark2006-02-011-1/+1
| | | p4raw-id: //depot/perl@27044
* Make Perl_gv_fetchpvn_flags actually heed the passed in length.Nicholas Clark2006-01-311-13/+14
| | | | | This means that \0 bytes in symbolic references now work. p4raw-id: //depot/perl@27028
* PERL_DONT_CREATE_GVSV wasn't as effective as it should have been.Nicholas Clark2006-01-281-0/+1
| | | p4raw-id: //depot/perl@26980
* Change all NEWSV() to newSV() in the core and non-dual-lived modules.Steve Hay2006-01-181-4/+4
| | | | | | | | 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
* A few more places that can use hv_fetchs().Gisle Aas2006-01-111-4/+4
| | | | | Ref change 26676. p4raw-id: //depot/perl@26795
* It's the Barbie bus patchAndy Lester2006-01-101-8/+8
| | | | | Message-ID: <20060110054243.GA26165@petdance.com> p4raw-id: //depot/perl@26764
* sprinkle dVARJarkko Hietaniemi2006-01-061-0/+12
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* More copyright updatesRafael Garcia-Suarez2006-01-041-1/+1
| | | p4raw-id: //depot/perl@26652
* Make the new STR_WITH_LEN() affected compile under -Dusethreads.Gisle Aas2006-01-041-4/+4
| | | | | Can't use STR_WITH_LEN() as argument to a macro :-( p4raw-id: //depot/perl@26649
* Get rid of a few more hardcoded string lengths.Gisle Aas2006-01-041-4/+4
| | | p4raw-id: //depot/perl@26642
* Introduce the macros newSVpvs(str) and sv_catpvs(sv, str).Gisle Aas2006-01-041-3/+3
| | | | | Gets rid of many hardcoded string lengths. p4raw-id: //depot/perl@26641
* Bad symbols that are pretending to be dirhandles, should say they Steve Peters2006-01-031-2/+15
| | | | | are dirhandles in their error messages. p4raw-id: //depot/perl@26602
* Reduce size of buffers for identifier names, as suggested inTels2005-12-301-2/+2
| | | | | | Subject: Stack usage (in gv_stashpvn and others) Message-Id: <200512291840.50765@bloodgate.com> p4raw-id: //depot/perl@26534
* Perl_gv_fetchpv vs. gv_fetchpvnTels2005-12-301-4/+4
| | | | | Message-Id: <200512291832.20651@bloodgate.com> p4raw-id: //depot/perl@26532
* av.c cleanup, plus!Andy Lester2005-12-291-1/+1
| | | | | Message-ID: <20051228214414.GD26033@petdance.com> p4raw-id: //depot/perl@26526
* Ho! Ho! Ho! Santa brings consting!Andy Lester2005-12-221-4/+4
| | | | | Message-ID: <20051222165717.GA2874@petdance.com> p4raw-id: //depot/perl@26450
* Add an optimisation to allow proxy constant subroutines to be copiedNicholas Clark2005-12-221-1/+4
| | | | | | | as proxy constant subroutines in a new symbol table where possible. (Rather than converting them to full blown constant subroutines and instantiating 2 typeglobs) p4raw-id: //depot/perl@26446
* Take care in toke.c not to convert constant subroutine referenceNicholas Clark2005-12-201-0/+19
| | | | | | | | proxies into full blown PVGVs with PVCVs, and recognise them and inline their values. Adds a new function gv_const_sv(gv) to return the value of the constant subroutine from a GV, and adds a cv parameter to S_intuit_method. p4raw-id: //depot/perl@26427
* Add a GV_NOADD_NOINIT flag to gv_fetch{pv,pvn,sv} that disablesNicholas Clark2005-12-201-2/+3
| | | | | | | addition of new typeglobs, and also disables initialisation of any typeglob placeholders. Needed to make the new constant subroutine proxy references work efficiently. p4raw-id: //depot/perl@26425
* Croak if gv_init doesn't know how to create a typeglob from that typeNicholas Clark2005-12-201-0/+10
| | | | | | | of referant. Test that ARRAY, HASH, PVIO, CODE and FORMAT croak. Globs are actually first class assignable objects, so test that you can create a constant subroutine that returns one. p4raw-id: //depot/perl@26422
* gv_fetchpv, gv_fetchpvn and gv_fetchsv take a bitmask of flags, ratherNicholas Clark2005-12-201-1/+1
| | | | | than a simple boolean, so passing FALSE or TRUE is bogus. p4raw-id: //depot/perl@26415
* Make gv_init recognise a reference-to-something in a symbol table asNicholas Clark2005-12-191-3/+16
| | | | | meaning a constant subroutine with that thing as it value p4raw-id: //depot/perl@26409
* s/Nullhv/NULL/g;Nicholas Clark2005-12-161-2/+2
| | | | | # 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
* Replace gv_fetchmethod() with a macro to call gv_fetchmethod_autoload()Nicholas Clark2005-10-301-14/+0
| | | | | with the extra TRUE argument. p4raw-id: //depot/perl@25893
* gv_fullname3 and gv_efullname3 are definately mathoms. They even say so.Nicholas Clark2005-10-291-12/+0
| | | p4raw-id: //depot/perl@25871
* gv_fullname and gv_efullname are definately mathoms.Nicholas Clark2005-10-291-14/+0
| | | p4raw-id: //depot/perl@25869
* More consting, and DRY leads to shrinking object codeAndy Lester2005-10-191-4/+4
| | | | | Message-ID: <20051018145723.GA4964@petdance.com> p4raw-id: //depot/perl@25803
* Stas' croak patch and then someAndy Lester2005-10-131-6/+6
| | | | | Message-ID: <20051013214212.GA1122@petdance.com> p4raw-id: //depot/perl@25754
* the return value of start_subparse() can legally be ignoredDave Mitchell2005-09-291-1/+1
| | | p4raw-id: //depot/perl@25664
* It looks like the only way to reliably make Perl_hv_name_set a pureNicholas Clark2005-09-181-2/+2
| | | | | | | macro in 5.8.x is to make it available as hv_name_set. [Otherwise when and where aTHX_ hv gets expanded to foo, hv causes warnings or other games when Perl_hv_name_set() is a macro] p4raw-id: //depot/perl@25475
* No need to manually set the reference count of a new IO to 1.Nicholas Clark2005-08-251-1/+4
| | | p4raw-id: //depot/perl@25329
* More embed.fnc plowingAndy Lester2005-07-131-4/+2
| | | | | Message-ID: <20050713154919.GA24586@petdance.com> p4raw-id: //depot/perl@25138
* make the expensive ckWARN() be called as late as possibleDave Mitchell2005-07-131-2/+3
| | | | | | | | reorganise if (ckWARN(FOO) && should_not_happen_condition) to if (should_not_happen_condition && ckWARN(FOO)) p4raw-id: //depot/perl@25129
* Making my way thru embed.fncAndy Lester2005-07-101-7/+8
| | | | | Message-ID: <20050710193635.GC8081@petdance.com> p4raw-id: //depot/perl@25107
* Re: janitorial work ? [patch]Jim Cromie2005-07-081-7/+7
| | | | | | | | Message-ID: <42CC3CE9.5050606@divsol.com> (reverted all dual-lived modules since they must work with older perls too so must wait for a new Devel::PPPort) p4raw-id: //depot/perl@25101
* Post-YAPC consting, now with an attachment!Andy Lester2005-07-041-1/+1
| | | | | Message-ID: <20050703233156.GA20967@petdance.com> p4raw-id: //depot/perl@25067
* Fixes to -DPERL_DONT_CREATE_GVSV to make more tests passNicholas Clark2005-06-291-1/+1
| | | p4raw-id: //depot/perl@25010
* First stab at not automatically creating an unused SV for GvSVNicholas Clark2005-06-291-17/+55
| | | | | | | Enable it with -DPERL_DONT_CREATE_GVSV. Currently if enabled 22 test scripts have failures, so still some way to go. p4raw-id: //depot/perl@25009
* Convert strcpy to memcpy where we already know the length.Nicholas Clark2005-06-281-1/+1
| | | p4raw-id: //depot/perl@25007
* We're going round in circles with pp_sys.cAndy Lester2005-06-271-13/+13
| | | | | | | Message-ID: <20050627180659.GB29744@petdance.com> (edited) p4raw-id: //depot/perl@24997
* Remove the reference loop between symbol tables and typeglobs.Nicholas Clark2005-06-231-1/+3
| | | | | Typeglobs now have a weak reference onto their symbol table. p4raw-id: //depot/perl@24966