summaryrefslogtreecommitdiff
path: root/toke.c
Commit message (Collapse)AuthorAgeFilesLines
* unused context warningsAndy Lester2006-02-241-2/+3
| | | | | Message-ID: <20060221062711.GA16160@petdance.com> p4raw-id: //depot/perl@27300
* Replace direct flags tests & manipulations for SVpad_TYPED andNicholas Clark2006-02-231-2/+2
| | | | | | SVpad_OUR with macros SvPAD_TYPED(), SvPAD_OUR() etc, to abstract away the flags bits acutally used to store this information. p4raw-id: //depot/perl@27294
* More NullXXX macro removal from Andy LesterRafael Garcia-Suarez2006-02-201-3/+3
| | | p4raw-id: //depot/perl@27238
* Sun Studio lint patchesAndy Lester2006-02-141-1/+1
| | | | | Message-ID: <20060214054617.GA8824@petdance.com> p4raw-id: //depot/perl@27177
* Fix breakage in S_set_csh() from change #27136.Steve Peters2006-02-091-0/+2
| | | | | p4raw-link: @27136 on //depot/perl: 5f66b61cbe1f2ea985f00c0d9a66153e7a3b6ee1 p4raw-id: //depot/perl@27140
* Trying my "remove the pTHXes" patch againAndy Lester2006-02-091-24/+26
| | | | | Message-ID: <20060209154018.GA14610@petdance.com> p4raw-id: //depot/perl@27136
* And as we've now got to the point where all calls to Perl_moreswitchesNicholas Clark2006-02-031-6/+1
| | | | | | | have -1 as the second argument, we can remove the second argument, which gets us back to where we started, only with the elimination of a per-thread variable. p4raw-id: //depot/perl@27075
* Eliminating PL_suidscript is more tricky, and requires changing theNicholas Clark2006-02-031-1/+6
| | | | | prototype of Perl_moreswitches. p4raw-id: //depot/perl@27070
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-20/+20
| | | | | | Message-ID: <20060203152449.GI12591@accognoscere.homeunix.org> Date: Fri, 3 Feb 2006 16:24:49 +0100 p4raw-id: //depot/perl@27065
* Re: [PATCH] s/Null(av|ch)/NULL/gSteven Schubiger2006-02-021-23/+23
| | | | | 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-7/+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
* Make Perl_gv_fetchpvn_flags actually heed the passed in length.Nicholas Clark2006-01-311-2/+2
| | | | | This means that \0 bytes in symbolic references now work. p4raw-id: //depot/perl@27028
* Silence another Irix compiler warning.Nicholas Clark2006-01-301-2/+5
| | | p4raw-id: //depot/perl@27006
* Call gv_fetchpvn_flags where we already know the length.Nicholas Clark2006-01-281-17/+21
| | | p4raw-id: //depot/perl@26989
* Add gv_fetchpvs, which uses STR_WITH_LEN to call gv_fetchpvn_flags.Nicholas Clark2006-01-281-6/+6
| | | | | Many strlen()s saved. p4raw-id: //depot/perl@26983
* Change all NEWSV() to newSV() in the core and non-dual-lived modules.Steve Hay2006-01-181-16/+16
| | | | | | | | 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
* defined %foo::bar:: wasn't working like it used to do in evalsRafael Garcia-Suarez2006-01-161-15/+15
| | | | | (and, consequently, when require'ing modules.) p4raw-id: //depot/perl@26867
* A few more places that can use hv_fetchs().Gisle Aas2006-01-111-2/+2
| | | | | Ref change 26676. p4raw-id: //depot/perl@26795
* Missing an initialisation, as spotted by Merijn's HP compiler.Nicholas Clark2006-01-101-0/+1
| | | p4raw-id: //depot/perl@26767
* Move initialization of old values prior to moreswitches()Gisle Aas2006-01-101-4/+4
| | | | | closer to their use and together with 'switches_done'. p4raw-id: //depot/perl@26765
* It's the Barbie bus patchAndy Lester2006-01-101-44/+40
| | | | | Message-ID: <20060110054243.GA26165@petdance.com> p4raw-id: //depot/perl@26764
* sprinkle dVARJarkko Hietaniemi2006-01-061-0/+50
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* Remove code duplicated a few lines above by change 19695.Gisle Aas2006-01-061-8/+0
| | | p4raw-id: //depot/perl@26673
* Make the new STR_WITH_LEN() affected compile under -Dusethreads.Gisle Aas2006-01-041-1/+1
| | | | | Can't use STR_WITH_LEN() as argument to a macro :-( p4raw-id: //depot/perl@26649
* Add an extra NUL so that we can use sv_catpvs()Gisle Aas2006-01-041-4/+1
| | | | | | for "our @F=split..." and get rid of 15 and the explaination for why it's there. p4raw-id: //depot/perl@26648
* Introduce the macros newSVpvs(str) and sv_catpvs(sv, str).Gisle Aas2006-01-041-25/+25
| | | | | Gets rid of many hardcoded string lengths. p4raw-id: //depot/perl@26641
* Removed unused part of string passed to sv_catpvn().Gisle Aas2006-01-041-1/+1
| | | p4raw-id: //depot/perl@26640
* Introduce STR_WITH_LEN macro in the form suggested by Chip.Gisle Aas2006-01-041-1/+1
| | | p4raw-id: //depot/perl@26635
* silence some compiler warningsDave Mitchell2006-01-031-7/+8
| | | p4raw-id: //depot/perl@26598
* Update copyrights for files modified in 2006Rafael Garcia-Suarez2006-01-021-1/+1
| | | p4raw-id: //depot/perl@26562
* Get rid of length argument for the FEATURE_IS_ENABLED() macro.Gisle Aas2006-01-011-10/+10
| | | p4raw-id: //depot/perl@26561
* Making 0 pointers to NULLsAndy Lester2006-01-011-5/+5
| | | | | Message-ID: <20051231050558.GA29093@petdance.com> p4raw-id: //depot/perl@26558
* av.c cleanup, plus!Andy Lester2005-12-291-1/+1
| | | | | Message-ID: <20051228214414.GD26033@petdance.com> p4raw-id: //depot/perl@26526
* Use memchr() instead of ninstr() to locate the end-of-line.Gisle Aas2005-12-281-2/+1
| | | | | The call to memchr() will faster. p4raw-id: //depot/perl@26512
* Ho! Ho! Ho! Santa brings consting!Andy Lester2005-12-221-14/+4
| | | | | Message-ID: <20051222165717.GA2874@petdance.com> p4raw-id: //depot/perl@26450
* Feature bundle is now :5.10, and add -E switchRobin Houston2005-12-211-12/+4
| | | | | Message-ID: <20051221110008.GB25877@rpc142.cs.man.ac.uk> p4raw-id: //depot/perl@26432
* Take care in toke.c not to convert constant subroutine referenceNicholas Clark2005-12-201-17/+33
| | | | | | | | 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
* Get the "cv" from the "gv" once, and be more careful so that we canNicholas Clark2005-12-201-6/+19
| | | | | | | cope if either aren't their regular types. cv_const_sv should verify the type of SV passed, instead of assuming that it's a viable CV. p4raw-id: //depot/perl@26423
* gv_fetchpv, gv_fetchpvn and gv_fetchsv take a bitmask of flags, ratherNicholas Clark2005-12-201-18/+22
| | | | | than a simple boolean, so passing FALSE or TRUE is bogus. p4raw-id: //depot/perl@26415
* In Perl_yylex, move the declaration of orig_keyword, gv and gvp down toNicholas Clark2005-12-201-10/+13
| | | | | the block labelled keylookup. p4raw-id: //depot/perl@26414
* In Perl_yylex, make tmp a temporary variable local to the blocks inNicholas Clark2005-12-191-213/+250
| | | | | which it is used. p4raw-id: //depot/perl@26412
* Assert that orig_keyword, gv and gvp aren't used before the mainNicholas Clark2005-12-191-0/+3
| | | | | keyword parser of Perl_yylex. p4raw-id: //depot/perl@26411
* Re: [PATCH] Make the 'sort' pragma lexically scopedRobin Houston2005-12-191-1/+4
| | | | | Message-ID: <20051219174620.GA17940@rpc142.cs.man.ac.uk> p4raw-id: //depot/perl@26402
* latest switch/say/~~Robin Houston2005-12-191-11/+136
| | | | | Message-Id: <20051217204431.GB28940@rpc142.cs.man.ac.uk> p4raw-id: //depot/perl@26400
* s/Nullhv/NULL/g;Nicholas Clark2005-12-161-1/+1
| | | | | # Although I see that Robin is proposing to add some :-) p4raw-id: //depot/perl@26381
* Expand the comment describing the intent of change 26370, and how itNicholas Clark2005-12-151-1/+12
| | | | | relates to change 24660. p4raw-id: //depot/perl@26371
* Don't autovivify stashes as soon as the lexer sees them.Rafael Garcia-Suarez2005-12-151-4/+9
| | | | | | This makes defined %foo::bar:: work again. Add tests for it, remove note in perldelta about having broken it. p4raw-id: //depot/perl@26370
* More consting, and putting stuff in embed.fncAndy Lester2005-12-061-24/+13
| | | | | Message-ID: <20051205194613.GB7791@petdance.com> p4raw-id: //depot/perl@26281
* It helps to actually *remove* the now-superfluous strlen().Nicholas Clark2005-11-081-1/+0
| | | | | (An addendum to 26050.) p4raw-id: //depot/perl@26052
* Eliminate some unnecessary strlen()sNicholas Clark2005-11-081-1/+2
| | | p4raw-id: //depot/perl@26050