summaryrefslogtreecommitdiff
path: root/gv.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Use a HEK to store the GV's name, rather than a malloc()ed string.Nicholas Clark2006-03-051-12/+8
| | | | | | | Saves 1 word in each GV (no more strlen), and will also save the memory used by the string itself, as the HEK will exist already due to the key used by the symbol table for this GV. p4raw-id: //depot/perl@27379
* Provide Perl_gv_name_set to replace LVALUE use of GvNAME and GvNAMESET.Nicholas Clark2006-03-051-14/+17
| | | p4raw-id: //depot/perl@27377
* fix up gv.c and gv.hAndy Lester2006-02-271-3/+3
| | | | | Message-ID: <20060226025216.GA12758@petdance.com> p4raw-id: //depot/perl@27344
* Fix argument grouping for some macrosRafael Garcia-Suarez2006-02-271-5/+5
| | | p4raw-id: //depot/perl@27331
* GvFLAGS can be overlaid with SvCUR.Nicholas Clark2006-02-251-2/+2
| | | p4raw-id: //depot/perl@27330
* Use xpv_len rather than xpv_cur in GVs to store GvASSIGN_GENERATION.Nicholas Clark2006-02-251-2/+2
| | | | | Assert that GVs do not access SvCUR or SvLEN. p4raw-id: //depot/perl@27328
* Abstract the specific use of SvCUR in GVs for detecting variables onNicholas Clark2006-02-251-0/+5
| | | | | | both sides of an assignment using GvASSIGN_GENERATION() and GvASSIGN_GENERATION_set(). p4raw-id: //depot/perl@27327
* xgv_stash can be stored as a union with the NV, reducing the size ofNicholas Clark2006-02-251-2/+2
| | | | | PVGVs by another pointer. p4raw-id: //depot/perl@27326
* Amazingly, it seems that none of the other GV specific macros areNicholas Clark2006-02-251-17/+30
| | | | | accessed unless the GV thinks that it is a GV. p4raw-id: //depot/perl@27324
* Store GvGP in the SV head union. For all the common lookups [eg GvCV()]Nicholas Clark2006-02-251-2/+3
| | | | | | | | this avoids 1 pointer dereference and the associated risk of a CPU cache miss. Although this patch looks deceptively small, I fear its CBV(*) might be rather high. (* Crack By Volume) p4raw-id: //depot/perl@27323
* Assert that GvSTASH is only called on PVGVs and PVLVs.Nicholas Clark2006-02-241-1/+9
| | | p4raw-id: //depot/perl@27307
* Revert an assert() fix in the light of change #27152Steve Hay2006-02-131-4/+2
| | | | | | | | | | | | | | The MinGW problem described here: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-01/msg00146.html was fixed by change #26664. This is no longer relevant in the light of change #27152, so revert it. (The other problems with VC++ 6 and BCC, fixed by change #26634, have not gone away, however.) p4raw-link: @27152 on //depot/perl: b0e6ae5b51a7c163ac7cdb0d18b54bb1819f6c13 p4raw-link: @26664 on //depot/perl: fb9e8e97420770e8f89d9f2196e1b7b0c855e8bb p4raw-link: @26634 on //depot/perl: 834268b87a8eb670d899a13106c8dfcdfc7c9b66 p4raw-id: //depot/perl@27171
* 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
* gv_fetchpvn_flags ranks highly in the profile, and the ::/' scanningNicholas Clark2006-02-021-0/+2
| | | | | | | 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
* Workaround another problem following change 26395Steve Hay2006-01-051-2/+4
| | | | | MinGW doesn't like 26395 either! (ref: change 26634) p4raw-id: //depot/perl@26664
* More copyright updatesRafael Garcia-Suarez2006-01-041-1/+1
| | | p4raw-id: //depot/perl@26652
* Workaround Win32 compiler bugs following change 26395Steve Hay2006-01-041-1/+5
| | | | | | | | Can't understand what VC++ 6 and Borland don't like about it. There is similar code for SvMAGIC and SvSTASH already in sv.h. Must be compiler bugs since VC++ 7 and MinGW (and compilers on other platforms) are all happy. p4raw-id: //depot/perl@26634
* Add an optimisation to allow proxy constant subroutines to be copiedNicholas Clark2005-12-221-0/+1
| | | | | | | 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
* Add a GV_NOADD_NOINIT flag to gv_fetch{pv,pvn,sv} that disablesNicholas Clark2005-12-201-0/+5
| | | | | | | 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
* Add some paranoia to check that GP accesses aren't being done on theNicholas Clark2005-12-171-1/+8
| | | | | wrong types of SV. p4raw-id: //depot/perl@26395
* Replace gv_fetchmethod() with a macro to call gv_fetchmethod_autoload()Nicholas Clark2005-10-301-0/+1
| | | | | with the extra TRUE argument. p4raw-id: //depot/perl@25893
* silence some compiler warningsDave Mitchell2005-07-101-2/+2
| | | p4raw-id: //depot/perl@25104
* DEFSV causes GvSVn() to be used in lvalue context.Nicholas Clark2005-07-081-3/+3
| | | | | | Not sure if instead we should recode DEFSV to avoid this, and leave GvSVn() as rvalue only, like its namesakes. p4raw-id: //depot/perl@25099
* If gp_flags is unused, why are we even allocating it?Nicholas Clark2005-06-301-3/+0
| | | p4raw-id: //depot/perl@25019
* Nothing is actually relying on GvUNIQUE holding state.Nicholas Clark2005-06-301-6/+3
| | | p4raw-id: //depot/perl@25018
* First stab at not automatically creating an unused SV for GvSVNicholas Clark2005-06-291-0/+8
| | | | | | | 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
* Update copyrights.Rafael Garcia-Suarez2005-03-301-1/+1
| | | p4raw-id: //depot/perl@24106
* Downconst external APIsRafael Garcia-Suarez2005-03-291-1/+1
| | | p4raw-id: //depot/perl@24095
* Third consting batchAndy Lester2005-03-241-1/+1
| | | | | Message-Id: <2f14220e7101a03f7659dbe79a03b115@petdance.com> p4raw-id: //depot/perl@24074
* Stage 1 of utf8 support for soft references.Nicholas Clark2005-01-071-1/+3
| | | | | | | | | | 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
* Remove spurious semicolonsNicholas Clark2004-12-061-2/+2
| | | | | | (As these 2 are spare, I guess I should send them to Mark Rhodes (former office mate) as he often said that he kept mislaying his) p4raw-id: //depot/perl@23614
* Turn gv_fullname3 and gv_efullname3 into macros that callNicholas Clark2004-12-061-0/+3
| | | | | gv_fullname4 and gv_efullname4 directly, saving overhead. p4raw-id: //depot/perl@23612
* 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
* Reverse copyright update (#18801) for files not changed in 2003.Hugo van der Sanden2003-03-021-1/+1
| | | p4raw-id: //depot/perl@18807
* Update all copyrights to 2003, from JarkkoHugo van der Sanden2003-03-021-1/+1
| | | p4raw-id: //depot/perl@18801
* New try at the Class::DBI core dump at global cleanup.Jarkko Hietaniemi2002-05-021-1/+1
| | | p4raw-id: //depot/perl@16325
* -DCRIPPLED_CC RIPDave Mitchell2002-03-211-12/+0
| | | | | Message-ID: <20020321172440.C13683@fdgroup.com> p4raw-id: //depot/perl@15397
* 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/+2
| | | p4raw-id: //depot/perl@14041
* Re: [PATH] shared -> unique;Abhijit Menon-Sen2001-07-021-6/+6
| | | | | Message-ID: <20010627035127.A17623@lustre.lustre.dyn.wiw.org> p4raw-id: //depot/perl@11089
* [patch] GvSHAREDDoug MacEachern2001-02-101-0/+13
| | | | | Message-ID: <Pine.LNX.4.21.0102101047320.15298-100000@mako.covalent.net> p4raw-id: //depot/perl@8760
* Bump up Larry's copyright.Jarkko Hietaniemi2001-01-011-1/+1
| | | p4raw-id: //depot/perl@8289
* set SvUTF8 on vectors only if there are chars > 127; update copyrightGurusamy Sarathy2000-02-061-1/+1
| | | | | years (from Gisle Aas) p4raw-id: //depot/perl@5009
* autogenerate API listing from comments in the source (from BenjaminGurusamy Sarathy2000-01-281-0/+8
| | | | | | | Stuhl <sho_pi@hotmail.com>); fix the markup format to be more flexible for better readability; add missing docs in sv.c; regenerate perltoc p4raw-id: //depot/perl@4915
* nailed "our" declarations, and better warnings on duplicateGurusamy Sarathy2000-01-141-1/+0
| | | | | "our" declarations p4raw-id: //depot/perl@4801
* another change towards a shareable optree: avoid pointer to filegvGurusamy Sarathy1999-11-111-1/+1
| | | | | | | | | in COP; revert parts of change#4485 and s/xcv_filegv/xcv_file/ (CvFILE() may yet come in handy somewhere); adjust compiler doodads to suit p4raw-link: @4485 on //depot/perl: b195d4879f55e1610299cb9b1b55356940c2a577 p4raw-id: //depot/perl@4545
* more cleanups for change#4539Gurusamy Sarathy1999-11-101-0/+5
| | | | | p4raw-link: @4539 on //depot/perl: 350de78d9c02710bb008e9ca922c78ba251ec366 p4raw-id: //depot/perl@4544
* more cleanup: avoid unused knowledge of "file GV" notion in CV and GVGurusamy Sarathy1999-10-291-2/+3
| | | p4raw-id: //depot/perl@4485
* remove unused interpreter globalsGurusamy Sarathy1999-10-241-2/+2
| | | p4raw-id: //depot/perl@4448
* Re: [PATCH 5.005_61] "our" declarationsLarry Wall1999-09-251-0/+1
| | | | | Message-Id: <199909250459.VAA27506@kiev.wall.org> p4raw-id: //depot/perl@4227