summaryrefslogtreecommitdiff
path: root/toke.c
Commit message (Collapse)AuthorAgeFilesLines
* Store the package name as a shared HEK.Nicholas Clark2005-05-261-3/+6
| | | | | | | | Abolish HvNAME() - as the stored pointer is not a char* you can't set it directly now. Storing a pointer to a HEK tracks the length too, and seems to be faster. p4raw-id: //depot/perl@24584
* embed.fnc cleanup + SvPVX_const usageAndy Lester2005-05-241-1/+1
| | | | | Message-ID: <20050521140640.GB875@petdance.com> p4raw-id: //depot/perl@24561
* The tokenizer should expect an operator after qw().Rafael Garcia-Suarez2005-05-241-0/+1
| | | | | This fixes [perl #35885] qw and x operators doesn't mix p4raw-id: //depot/perl@24560
* Move hv_name, hv_eiter and hv_riter into a new aux structure.Nicholas Clark2005-05-211-4/+4
| | | | | | Provide (more efficient) _get and _set macros. Adjust the core to use them. p4raw-id: //depot/perl@24526
* SvPVX_const() - Patch #1Steve Peters2005-05-201-32/+32
| | | | | Message-ID: <20050517231701.GA1394@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24509
* consting-eleventy.patch: More consts, plus actual bug fixAndy Lester2005-05-161-1/+1
| | | | | Message-ID: <20050516151353.GA25387@petdance.com> p4raw-id: //depot/perl@24489
* Silence DEBUGGING compilation warningsRafael Garcia-Suarez2005-05-121-3/+6
| | | p4raw-id: //depot/perl@24452
* SvUPGRADE doesn't return false.Rafael Garcia-Suarez2005-05-121-2/+1
| | | p4raw-id: //depot/perl@24451
* Include vim/emacs modelines in generated files to open themRafael Garcia-Suarez2005-05-111-2/+2
| | | | | | in read-only mode. Make vi modelines compatible with non-vim vi versions. p4raw-id: //depot/perl@24445
* potential [PATCH] Tru64 crank up strictnessJarkko Hietaniemi2005-05-101-3/+20
| | | | | Message-Id: <4ADE5AAD-27CB-4F9E-BEC7-41DAA7671108@iki.fi> p4raw-id: //depot/perl@24444
* Add editor boilerplates to all C filesRafael Garcia-Suarez2005-05-101-1/+1
| | | | | (except the generated ones) p4raw-id: //depot/perl@24440
* s/sv_setpv(sv,"")/sv_setpvn(sv,"",0)/Nicholas Clark2005-05-101-4/+4
| | | | | plus a couple of 1 byte sv_setpv()s too. p4raw-id: //depot/perl@24439
* attributes-two.patch, the next batchAndy Lester2005-05-091-63/+55
| | | | | Message-ID: <20050509154518.GA18273@petdance.com> p4raw-id: //depot/perl@24431
* Sv_*set() doc's and extra const's for the SvPVX_const() tasksSteve Peters2005-05-091-1/+1
| | | | | Message-ID: <20050509014917.GA24132@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24422
* combopatchJarkko Hietaniemi2005-04-251-1/+1
| | | | | Message-ID: <426BFA57.9060105@iki.fi> p4raw-id: //depot/perl@24318
* Symbian port of PerlJarkko Hietaniemi2005-04-211-17/+26
| | | | | Message-ID: <B356D8F434D20B40A8CEDAEC305A1F2453D653@esebe105.NOE.Nokia.com> p4raw-id: //depot/perl@24271
* Refactoring to Sv*_set() macros - patch #5Steve Peters2005-04-191-2/+2
| | | | | | Message-ID: <20050419000925.GA21640@mccoy.peters.homeunix.org> Date: Mon, 18 Apr 2005 19:09:25 -0500 p4raw-id: //depot/perl@24248
* SvPV_renew also calls SvLEN_setNicholas Clark2005-04-181-4/+11
| | | | | | Add SvPV_shrink_to_cur(sv) to call SvPV_renew with SvCUR(sv)+1. For Ponie this can be a single call into the PMC p4raw-id: //depot/perl@24245
* Replace Renew(SvPVX(...)...) with SvPV_renew, which avoids an LVALUENicholas Clark2005-04-181-3/+3
| | | | | SvPVX p4raw-id: //depot/perl@24244
* -Wformat Robin Barker2005-04-131-2/+2
| | | | | Message-ID: <533D273D4014D411AB1D00062938C4D90849C634@hotel.npl.co.uk> p4raw-id: //depot/perl@24233
* Refactoring to Sv*_set() macros - patch #2Steve Peters2005-04-081-9/+9
| | | | | Message-ID: <20050407185149.GA4418@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24204
* Refactoring to Sv*_set() macros - patch #1Steve Peters2005-04-081-1/+1
| | | | | | Message-ID: <20050406232110.GA12249@mccoy.peters.homeunix.org> Date: Wed, 6 Apr 2005 18:21:10 -0500 p4raw-id: //depot/perl@24199
* Add casting to allow g++ (3.3.5) to compile the core code.Nicholas Clark2005-04-051-1/+1
| | | | | | A C++ compiler produces lots of warnings that are probably valid concerns to investigate. p4raw-id: //depot/perl@24170
* Consting fiveAndy Lester2005-03-251-5/+5
| | | | | | | | Message-ID: <20050325231409.GB17660@petdance.com> [with modification - the extra argument to incpush was supposed to be being used] p4raw-id: //depot/perl@24081
* Consting part 4Andy Lester2005-03-251-8/+12
| | | | | Message-ID: <20050325204331.GA16388@petdance.com> p4raw-id: //depot/perl@24079
* Forbid the -C option on the command-lineRafael Garcia-Suarez2005-03-221-1/+1
| | | | | as suggested by Merijn (see [perl #34087]) p4raw-id: //depot/perl@24070
* More consting goodnessAndy Lester2005-03-211-44/+44
| | | | | Message-ID: <20050319072830.GA7721@petdance.com> p4raw-id: //depot/perl@24049
* Remove an useless line, spotted by Andy LesterRafael Garcia-Suarez2005-03-181-1/+0
| | | p4raw-id: //depot/perl@24046
* More const parmsAndy Lester2005-03-181-2/+2
| | | | | Message-ID: <20050314195954.GB7141@petdance.com> p4raw-id: //depot/perl@24042
* Regenerate Perl_keyword() to remove superfluous goto statements.Marcus Holland-Moritz2005-02-141-44/+0
| | | p4raw-id: //depot/perl@23965
* Make Perl_keyword() another 30% faster.Marcus Holland-Moritz2005-01-311-1316/+3325
| | | p4raw-id: //depot/perl@23914
* Ooops. It was 190M when I was using 4 bytes per entry for lengths inNicholas Clark2005-01-241-1/+1
| | | | | the dump file. The newer format is only 135M p4raw-id: //depot/perl@23878
* Replace Perl_keyword() with a version that's 20% faster on typicalNicholas Clark2005-01-241-584/+1311
| | | | | | input, generated by subclassing ExtUtils::Constant. (Typical input being about 135M of input from running a lot of perl scripts) p4raw-id: //depot/perl@23875
* Re: uc($long_utf8_string) exhausts memoryJarkko Hietaniemi2005-01-221-3/+3
| | | | | | | | Message-Id: <41F1801C.3080201@iki.fi> Make buffer size estimates for utf8 case conversion less maximally pessimistic p4raw-id: //depot/perl@23857
* sv_catpvf holds no advantage over sv_catpv when the "pattern" isn't.Nicholas Clark2005-01-141-2/+2
| | | p4raw-id: //depot/perl@23798
* replace NEWSV(), SvSetSV() with newSVsv()Nicholas Clark2005-01-131-3/+1
| | | p4raw-id: //depot/perl@23795
* Can pass in a length here without introducing a bug. Might saveNicholas Clark2005-01-091-2/+6
| | | | | a strlen() p4raw-id: //depot/perl@23771
* Pull the am-I-utf8-or-not logic into one place (S_newSV_maybe_utf8)Nicholas Clark2005-01-091-6/+18
| | | | | as I think that it will be needed for utf8 soft references. p4raw-id: //depot/perl@23770
* Stage 1 of utf8 support for soft references.Nicholas Clark2005-01-071-1/+1
| | | | | | | | | | 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
* D'oh! Spurious aTHX_. Here was I thinking that my test build wasNicholas Clark2005-01-031-1/+1
| | | | | threaded, but "oh no it isn't!" :-( p4raw-id: //depot/perl@23733
* Remove compiler warnings.Nicholas Clark2005-01-021-6/+5
| | | p4raw-id: //depot/perl@23731
* Change 23727 broke code that relied on \ being escaped.Nicholas Clark2005-01-021-3/+16
| | | | | Fix this. *Everything* should work now. p4raw-id: //depot/perl@23730
* Splitting the -n/-p code and concatenating strings generatesNicholas Clark2005-01-021-5/+7
| | | | | smaller object code. p4raw-id: //depot/perl@23729
* Concatenate some string constantsNicholas Clark2005-01-011-2/+2
| | | p4raw-id: //depot/perl@23728
* Use Rafael's sick trick of ASCII NUL as a q'' delimiter to save aNicholas Clark2005-01-011-12/+5
| | | | | lot of quoting code p4raw-id: //depot/perl@23727
* Probably should be using *pvn rather than *pv forms for speed inNicholas Clark2005-01-011-4/+4
| | | | | toke.c (to save a strlen()) p4raw-id: //depot/perl@23726
* strEQ/strNE of 1 character strings seems better hand inlined,Nicholas Clark2005-01-011-9/+13
| | | | | | because it generates smaller object code (as well as being faster than a true function call) p4raw-id: //depot/perl@23725
* Remove double checking of acceptable switches on tr/// ops.Nicholas Clark2004-12-031-4/+12
| | | p4raw-id: //depot/perl@23607
* use (c == '$' || c == '@' || c == '%') instead of strchr("$@%", c)Nicholas Clark2004-12-031-10/+16
| | | | | The latter gives larger code, is less clear and can't be any faster p4raw-id: //depot/perl@23606
* Fix for bug: [perl #32562] __PACKAGE__ symbol has wrong valueRafael Garcia-Suarez2004-11-231-1/+1
| | | | | after eval or require p4raw-id: //depot/perl@23528