summaryrefslogtreecommitdiff
path: root/gv.c
Commit message (Collapse)AuthorAgeFilesLines
* Further follow-up to 23767Robin Barker2005-01-191-1/+0
| | | | | Message-ID: <533D273D4014D411AB1D00062938C4D90849C57D@hotel.npl.co.uk> p4raw-id: //depot/perl@23824
* Stage 1 of utf8 support for soft references.Nicholas Clark2005-01-071-1/+33
| | | | | | | | | | Change gv_fetchpv to take a UTF8 flag, as gv_fetchpvn_flags Add gv_fetchsv to look up a GV by SV rather than a char * pointer Provide a backwards compatability gv_fetchpv Migrate from gv_fetchpv to gv_fetchsv where the caller was grabbing the pointer from an SV All tests still pass. p4raw-id: //depot/perl@23766
* Add ${^UTF8LOCALE} to give perl space access to PL_utf8localeNicholas Clark2005-01-041-1/+5
| | | p4raw-id: //depot/perl@23741
* Not all the world's a VAX, er ASCII, so don't make assumptions.Nicholas Clark2005-01-011-9/+13
| | | | | | | Tweak is_gv_magical's string comparisons to produce smaller object code. First 2005 copyright notice. p4raw-id: //depot/perl@23724
* Improve documentation for is_gv_magical, and split the switchNicholas Clark2004-12-311-92/+106
| | | | | | | statement into 2 parts, lengths > 1 and lengths <= 1 This should cause most variables (lower case, multicharacter) to escape the function without passing through a switch table. p4raw-id: //depot/perl@23720
* Because name is always NUL terminated we can incorporate lengthNicholas Clark2004-12-311-2/+3
| | | | | 0 names in the switch statement for length 1. p4raw-id: //depot/perl@23719
* Generate smaller object code by using a single switch statementNicholas Clark2004-12-311-13/+20
| | | | | for determining which names are forced into main:: p4raw-id: //depot/perl@23718
* Tidy up comments in change 23716Nicholas Clark2004-12-311-2/+2
| | | p4raw-id: //depot/perl@23717
* Refactor gv_fetchpv so that the overwhelmingly common caseNicholas Clark2004-12-311-220/+216
| | | | | | | | (variable names starting with a lower case letter or _, longer than one character) get out of the function very quickly. (Without even passing through a switch statement jump table) Also fixes bug 33631 p4raw-id: //depot/perl@23716
* Document gv_stashpvnSteve Hay2004-12-131-3/+15
| | | | | | This is already in the API supported by Devel::PPPort, and is more efficient than gv_stashpv if the length is already known. p4raw-id: //depot/perl@23644
* Revert part of the change to gv_fullname4(), as the change seems toNicholas Clark2004-12-071-1/+2
| | | | | | be fractionally slower. Re-investigation prompted by a comment from Tim Bunce, who seems to be more on the ball than I am. p4raw-id: //depot/perl@23623
* $foo::_ was wrongly forced as $main::_.Rafael Garcia-Suarez2004-12-031-4/+0
| | | | | | | Since we still want "our $_" to be always forced to $main::_, deplace the forcing code at our-pad allocation time. (Making execution probably a tiny bit faster) p4raw-id: //depot/perl@23608
* Small code tidy up in gv_fullname4Nicholas Clark2004-12-031-5/+4
| | | p4raw-id: //depot/perl@23605
* There are clearer ways of saying m/^[ab]$/ than strchr("ab", c)Nicholas Clark2004-12-031-1/+2
| | | | | They seem to produce slightly smaller object code too. p4raw-id: //depot/perl@23604
* SvO?OK_off()'s return valueMarcus Holland-Moritz2004-09-081-1/+1
| | | | | | | Message-Id: <20040801124648.7f9b3cee@r2d2> Move (void) casts into SvOOK_off macro. p4raw-id: //depot/perl@23277
* Another small clean-up following changes #23190 and #23198Steve Hay2004-08-061-3/+3
| | | | | p4raw-link: @23190 on //depot/perl: d7aa53827cc12fdf8a697328df844e16aaa58287 p4raw-id: //depot/perl@23199
* remove leaks associated with version object change #23190Dave Mitchell2004-08-061-3/+3
| | | | | p4raw-link: @23190 on //depot/perl: d7aa53827cc12fdf8a697328df844e16aaa58287 p4raw-id: //depot/perl@23198
* Final version object core patch?John Peacock2004-08-041-13/+7
| | | | | Message-ID: <411048BD.3080700@rowman.com> p4raw-id: //depot/perl@23190
* Add comment to the top of most .c files explaining their purposeDave Mitchell2004-07-311-0/+9
| | | p4raw-id: //depot/perl@23176
* fix typo in gp_freeDave Mitchell2004-06-201-1/+1
| | | p4raw-id: //depot/perl@22962
* [patch] log the interpreter id in warningsStas Bekman2004-04-211-1/+2
| | | | | Message-ID: <40847869.1000906@stason.org> p4raw-id: //depot/perl@22721
* backout change 22606 (make gv_fullname() include a literal '^')Dave Mitchell2004-03-291-7/+1
| | | | | it breaks select. p4raw-id: //depot/perl@22608
* make gv_fullname() etc include a literal '^' for *^FOO style namesDave Mitchell2004-03-281-1/+7
| | | p4raw-id: //depot/perl@22606
* Update copyright noticesRafael Garcia-Suarez2004-03-161-1/+1
| | | p4raw-id: //depot/perl@22509
* Implement "my $_".Rafael Garcia-Suarez2004-02-031-0/+4
| | | p4raw-id: //depot/perl@22263
* Macrofy the compile/runtime test.Jarkko Hietaniemi2003-09-211-1/+1
| | | p4raw-id: //depot/perl@21297
* utf8 variable names scrambled in error messagesAdrian M. Enache2003-08-211-2/+5
| | | | | Message-ID: <20030821181726.GA1241@ratsnest.hole> p4raw-id: //depot/perl@20805
* Most importantly, don't try HvNAME(gp->gp_hv)Jarkko Hietaniemi2003-07-291-8/+12
| | | | | | | | | | unless PL_stashcache exists, otherwise we get an invalid read (detected by valgrind, and crashes ext/threads/t/basic.t in Windows). Also add a few if:s for the refcnt decrements, no need to call Perl_sv_free() if there's nothing to free. p4raw-id: //depot/perl@20292
* Rename again the warning about $* being no longer supportedRafael Garcia-Suarez2003-06-151-1/+1
| | | | | (and update perldiag this time!) p4raw-id: //depot/perl@19794
* Rename the warning about $* being removed,Rafael Garcia-Suarez2003-06-141-1/+1
| | | | | as suggested by Dave Mitchell p4raw-id: //depot/perl@19784
* Remove the deprecated $* variable.Rafael Garcia-Suarez2003-06-131-4/+8
| | | | | | | Incidentally, this fixes bug #22354, about unwanted action-at-distance of the /m regexp modifier. Add a new warning to advertise this fact. p4raw-id: //depot/perl@19769
* RE: maint @ 19683Robin Barker2003-06-051-2/+4
| | | | | | | Message-ID: <533D273D4014D411AB1D00062938C4D904046564@hotel.npl.co.uk> (skipped the MIME::Base64 part, leaving that to Gisle) p4raw-id: //depot/perl@19694
* Fix a case of segfault in gv_check(), by makingRafael Garcia-Suarez2003-05-311-1/+1
| | | | | it ignore non-GV values in stashes. p4raw-id: //depot/perl@19652
* Re: Bug stomping fun. [PATCH: bug #1016]Alex Vandiver2003-05-121-3/+13
| | | | | | Message-Id: <1051872303.26203.104.camel@supox> (plus perldiag nit) p4raw-id: //depot/perl@19505
* [#21962] Speculative fix: don't set GvNAMELEN to 1 if GvNAME is "".Abhijit Menon-Sen2003-04-171-2/+0
| | | | | Anything that's broken by this change should be fixed. p4raw-id: //depot/perl@19252
* Fix up Larry's copyright statements to my best knowledge.Jarkko Hietaniemi2003-04-161-1/+2
| | | | | | | (Lots of Perl 5 source code archaeology was involved.) Larry didn't make strangled noises when I showed him the patch, either :-) p4raw-id: //depot/perl@19242
* Ook, run tests on correct build-dir next time.Artur Bergman2003-04-141-1/+1
| | | | | | We must check if the hv is a stash, otherwise we try to delete something that is a HvNAME of null..... tests pass better now p4raw-id: //depot/perl@19213
* Fixes to bugs introduced by PL_stashcacheArtur Bergman2003-04-141-0/+2
| | | | | | | | | | | A) Follow suggestion by Benjamin Goldberg to use hv_delete instead of hv_delete_ent to avoid creating a temporary SV B) Don't increment the refcount, sneak it into an IV instead C) When a GP is a deleted that contains a stash, remove the corresponding entry since hv might be in use in other places. D) Note that no test cases test the deletion of packages to catch this bug. p4raw-id: //depot/perl@19212
* Fix bug #21914, 3-arg open + local $fh + strict coredump.Rafael Garcia-Suarez2003-04-101-1/+3
| | | | | | | | | | | There used to be a nullstash (%{"<none>::"}) to hold illegal variables under strict 'vars'. It has been removed by change #17942. This can lead to segfaults during the parsing, because some illegal variables might have been discarded before the compilation of the current statement had completed. Bug analysis and test case by Enache Adrian. p4raw-link: @17942 on //depot/perl: de11ba31bba9f0eef0f76239d1d93a010926d6cf p4raw-id: //depot/perl@19187
* Add packname->stash cache before the check if a packname is aArtur Bergman2003-04-021-0/+3
| | | | | | | | | filehandle or a package, it works because only packnames that have been resolved to stashes are added to the cache, and when a newIO is created we clean the cache. Results in roughly 1.8 speed increase for class->method() calls. p4raw-id: //depot/perl@19133
* Update all copyrights to 2003, from JarkkoHugo van der Sanden2003-03-021-1/+1
| | | p4raw-id: //depot/perl@18801
* The new(er) way of controlling Unicode I/O (and other) features;Jarkko Hietaniemi2003-02-151-2/+2
| | | | | -C (or PERL_UNICODE). See perlrun/-C for more details. p4raw-id: //depot/perl@18715
* Make the locale-induced UTF-8-ification of STD fhsJarkko Hietaniemi2003-01-161-3/+12
| | | | | | and the default file open layer explicit (either -C or PERL_UTF8_LOCALE), instead of implicit (and unasked-for). p4raw-id: //depot/perl@18490
* %_ (was Re: [PATCH] operation on `PL_na' may be undefined)Nicholas Clark2003-01-071-12/+10
| | | | | Message-ID: <20021226211626.GD284@Bagpuss.unfortu.net> p4raw-id: //depot/perl@18456
* Re: [perl #18113] UNIVERSAL::AUTOLOAD doesn't work if the stash doesn't ↵Gurusamy Sarathy2002-11-191-5/+18
| | | | | | | | | | | | exist yet Date: Wed, 30 Oct 2002 20:58:15 -0800 Message-Id: <200210310458.g9V4wFK00513@smtp3.ActiveState.com> Date: Wed, 30 Oct 2002 21:56:22 -0800 Message-Id: <200210310556.g9V5uMK05748@smtp3.ActiveState.com> Date: Wed, 30 Oct 2002 22:55:30 -0800 Message-Id: <200210310655.g9V6tUK10959@smtp3.ActiveState.com> p4raw-id: //depot/perl@18159
* Happy chainsaw stories; The removal of the 5005 threadsH.Merijn Brand2002-10-191-15/+0
| | | | | Still imcomplete. Configure will follow p4raw-id: //depot/perl@18030
* Remove package; (Heh heh.)Abhijit Menon-Sen2002-09-291-3/+1
| | | p4raw-id: //depot/perl@17942
* gv_fullname3 as call to gv_fullname4Nicholas Clark2002-08-121-13/+2
| | | | | Message-id: <20020811155914.GE300@Bagpuss.unfortu.net> p4raw-id: //depot/perl@17713
* fixes for all the warnings reported by Visual C (most of thisGurusamy Sarathy2002-04-211-1/+1
| | | | | | change is from change#12026) p4raw-link: @12026 on //depot/maint-5.6/perl: ff42b73b40f5a895aef4bed81c794f468e0609bc p4raw-id: //depot/perl@16048
* Make other nits nervous.Abhijit Menon-Sen2002-04-071-1/+1
| | | p4raw-id: //depot/perl@15792