summaryrefslogtreecommitdiff
path: root/gv.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Re: [ID 20020305.025] PACKAGE::SUPER doesn't work anymoreIlmari Karonen2002-04-041-1/+9
| | | | | Message-ID: <Pine.SOL.3.96.1020405004632.9372C-100000@simpukka> p4raw-id: //depot/perl@15737
* -DCRIPPLED_CC RIPDave Mitchell2002-03-211-24/+0
| | | | | Message-ID: <20020321172440.C13683@fdgroup.com> p4raw-id: //depot/perl@15397
* Surely a typo.Jarkko Hietaniemi2002-03-201-1/+1
| | | p4raw-id: //depot/perl@15349
* Subject: [PATCH @15047] Use of inherited AUTOLOAD for non-methodAbhijit Menon-Sen2002-03-161-2/+16
| | | | | | | | | | | | | | | *::DESTROY() is deprecated From: Ilya Zakharevich <ilya@math.ohio-state.edu> Date: Thu, 14 Mar 2002 18:39:22 -0500 Message-Id: <20020314183922.A8448@math.ohio-state.edu> Subject: Re: [PATCH @15047] Use of inherited AUTOLOAD for non-method *::DESTROY() is deprecated From: Dave Mitchell <davem@fdgroup.com> Date: Fri, 15 Mar 2002 19:22:49 +0000 Message-Id: <20020315192249.A22389@fdgroup.com> p4raw-link: @15047 on //depot/perl: 0cce8c827906d6294f47c30840f886b52d8345f8 p4raw-id: //depot/perl@15251
* more warnings tidyupPaul Marquess2002-03-111-4/+4
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLMEEGDPAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15155
* taint + deprecated warningsPaul Marquess2002-03-041-4/+4
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLCEKGDOAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15003
* autoloaded DESTROY bugfixIlya Zakharevich2002-03-011-2/+60
| | | | | | Message-Id: <20020226195431.A9625@math.ohio-state.edu> p4raw-link: @14577 on //depot/perl: 0ad5258ff3f3328f321188cbb4fcd6a74b365431 p4raw-id: //depot/perl@14920
* Repatch from Robin Barker: anon subs in C<package;> areJarkko Hietaniemi2002-02-271-1/+1
| | | | | | now __ANON__::__ANON__ (should help for mod_perl breakage since #12251) p4raw-id: //depot/perl@14899
* s/load_module/Perl_load_module/Abhijit Menon-Sen2002-02-181-1/+2
| | | p4raw-id: //depot/perl@14748
* Re: [ID 20020213.001] "Unknown error" as a message from compilationRafael Garcia-Suarez2002-02-181-1/+1
| | | | | Message-Id: <20020216000601.A17249@rafael> p4raw-id: //depot/perl@14745
* Copyright++. (Not all the toplevel *.h have one, it seems.)Jarkko Hietaniemi2002-01-231-1/+1
| | | p4raw-id: //depot/perl@14391
* Missed the =head1 additions.Jarkko Hietaniemi2002-01-031-0/+4
| | | p4raw-id: //depot/perl@14041
* Quieten pgcc 2.91.66 worries.Jarkko Hietaniemi2001-11-141-1/+1
| | | p4raw-id: //depot/perl@13008
* Re: [ID 20011106.083] $dbline[$i] == 0 generates warningsMark-Jason Dominus2001-11-071-0/+1
| | | | | Message-Id: <20011107054346.14428.qmail@plover.com> p4raw-id: //depot/perl@12882
* Add the encoding pragma to control the "upgrade"Jarkko Hietaniemi2001-10-281-1/+5
| | | | | | | from the native eight bit data to Unicode. TODO: \x.. and \0... literals. \N{}. chr()? ord()? p4raw-id: //depot/perl@12750
* Integrate maintperl changes #12268 and #12669;Jarkko Hietaniemi2001-10-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | final touches to the audit for statics and thread-unsafe code * make DB_File, ODBM_File thread-safe * remove unnecessary/dangerous statics and protect others from not getting accidentally enabled under threaded perls windows support functions get_childdir() et al aren't exported correctly under vanilla build Testing under win32 appreciated since changes there had to be manually merged and I cannot test how badly did I do. p4raw-link: @12268 on //depot/perlio: bb407f0b8769c638c05e60ebfd157a1e676a6c22 p4raw-id: //depot/perl@12678 p4raw-integrated: from //depot/maint-5.6/perl@12677 'copy in' win32/vmem.h (@5902..) 'merge in' ext/DB_File/DB_File.xs (@8693..) win32/win32iop.h (@8917..) ext/ODBM_File/ODBM_File.xs (@8995..) iperlsys.h (@9154..) scope.c (@9584..) makedef.pl (@11425..) gv.c (@12026..) op.c (@12145..) util.c (@12220..) toke.c (@12550..) ext/B/B.xs ext/File/Glob/Glob.xs ext/Opcode/Opcode.xs ext/re/re.xs (@12653..) mg.c win32/win32.c (@12668..)
* #12370 forgot to modify is_gv_magical().Abhijit Menon-Sen2001-10-091-2/+5
| | | p4raw-id: //depot/perl@12372
* Re: [PATCH mg.c gv.c and others] ${^TAINT}Michael G. Schwern2001-10-081-1/+7
| | | | | Message-ID: <20011008170014.L17083@blackrider> p4raw-id: //depot/perl@12367
* make __ANON__ globalRobin Barker2001-09-271-1/+1
| | | | | Message-Id: <200109261656.RAA27762@tempest.npl.co.uk> p4raw-id: //depot/perl@12251
* Re: [PATCH gv.c] @& sets PL_sawampersandJeff Pinyan2001-09-041-1/+0
| | | | | Message-ID: <Pine.GSO.4.21.0109041250420.7601-100000@crusoe.crusoe.net> p4raw-id: //depot/perl@11867
* @& sets PL_sawampersandJeff Pinyan2001-09-041-12/+9
| | | | | Message-ID: <Pine.GSO.4.21.0109031235240.7601-100000@crusoe.crusoe.net> p4raw-id: //depot/perl@11863
* Changes USE_THREADS to USE_5005THREADS in the entire source.Artur Bergman2001-08-271-5/+5
| | | | | | Thanks to H. Merijn Brand for the patch. Some of the comments and or guards might be removable in perl.h now. p4raw-id: //depot/perl@11758
* Re: [PATCH gv.c] allow ${"1f"} to be non-regex var Jeff Pinyan2001-07-171-0/+11
| | | | | Message-Id: <Pine.GSO.4.21.0107161829390.1405-100000@crusoe.crusoe.net> p4raw-id: //depot/perl@11394
* Re: [PATH] shared -> unique;Abhijit Menon-Sen2001-07-021-3/+3
| | | | | Message-ID: <20010627035127.A17623@lustre.lustre.dyn.wiw.org> p4raw-id: //depot/perl@11089
* win32 fixes: fix various syntax errors ("no preprocessor directivesGurusamy Sarathy2001-07-021-14/+6
| | | | | | within macro arguments") and warnings ("unary minus applied to unsigned type", among others) p4raw-id: //depot/perl@11066
* Code cleanup based on turning off the -woffs in IRIX.Jarkko Hietaniemi2001-06-301-17/+34
| | | | | | | | Not all of the gripes cleaned up (hairy code in hv.c and regcomp.c; unused newsp, gimme, and optype from cop.h macros; unused 'key' arguments in ?DBM_File.xs) (and the -woffs left to the IRIX hints) p4raw-id: //depot/perl@11051
* Add support for $^N, the most-recently closed group.Jarkko Hietaniemi2001-06-301-0/+2
| | | p4raw-id: //depot/perl@11038