summaryrefslogtreecommitdiff
path: root/toke.c
Commit message (Collapse)AuthorAgeFilesLines
* various cleanupsGurusamy Sarathy1999-10-121-2/+2
| | | p4raw-id: //depot/perl@4350
* revert SAVEDESTRUCTOR() to accepting void(*)(void*) for sourceGurusamy Sarathy1999-10-101-3/+3
| | | | | | compatibility; introduce SAVEDESTRUCTOR_X() that accepts void(*)(pTHX_ void*) p4raw-id: //depot/perl@4339
* add suggested patch =~ s/NOTOP/OP_NOT/ with testsLarry Wall1999-10-081-2/+5
| | | | | | Message-Id: <199910061655.JAA11333@kiev.wall.org> Subject: Re: [ID 19991001.004] apparent parsing error with not(arg) p4raw-id: //depot/perl@4312
* integrate cfgperl contents into mainlineGurusamy Sarathy1999-10-061-20/+3
|\ | | | | p4raw-id: //depot/perl@4303
| * Untangle the IV_IS_QUAD jungle by introdudingJarkko Hietaniemi1999-10-021-20/+3
| | | | | | | | | | | | macros to be used when doing formatted printing: IVdf, UVuf, UVxf, UVof. Also introduce Uid_t_SIGN. p4raw-id: //depot/cfgperl@4288
* | make die/warn and other diagnostics go to wherever STDERR happensGurusamy Sarathy1999-10-061-1/+2
| | | | | | | | | | | | to point at; change places that meant Perl_debug_log rather than PerlIO_stderr() p4raw-id: //depot/perl@4302
* | some compatibility macros were bustedGurusamy Sarathy1999-10-041-2/+4
|/ | | p4raw-id: //depot/perl@4298
* Re: [PATCH 5.005_61] "our" declarationsLarry Wall1999-09-251-9/+38
| | | | | Message-Id: <199909250459.VAA27506@kiev.wall.org> p4raw-id: //depot/perl@4227
* avoid infinite recursive exec()s of perl.exe when shebangGurusamy Sarathy1999-09-241-1/+17
| | | | | contains "Perl" rather than "perl" on DOSISH platforms p4raw-id: //depot/perl@4225
* queue errors due to strictures rather than printing them asGurusamy Sarathy1999-09-201-5/+2
| | | | | | | | | | | warnings; symbols that violate strictures do *not* end up in the symbol table anyway, making multiple evals of the same piece of code produce the same errors; errors indicate all locations of a global symbol rather than just the first one; these changes make compile-time failures within evals reliably visible via the return value or contents of $@, and trappable using __DIE__ hooks p4raw-id: //depot/perl@4197
* avoid assertion failure on C<@a'>Gurusamy Sarathy1999-09-131-2/+6
| | | p4raw-id: //depot/perl@4133
* Fix UV_SIZEOF to UVSIZE; change the overflow testsJarkko Hietaniemi1999-09-061-1/+1
| | | | | so that they overflow also on 64-bit platforms. p4raw-id: //depot/cfgperl@4093
* Another patch for Lexical WarningsPaul Marquess1999-09-061-7/+6
| | | | | Message-ID: <5104D4DBC598D211B5FE0000F8FE7EB202D49BAB@mbtlipnt02.btlabs.bt.co.uk> p4raw-id: //depot/perl@4088
* misc tweaksGurusamy Sarathy1999-09-061-1/+1
| | | p4raw-id: //depot/perl@4086
* Fix from Spider for the sub attributes (there was an undocumentedJarkko Hietaniemi1999-09-031-4/+10
| | | | | dependency between force_word() and skipspace()). p4raw-id: //depot/cfgperl@4068
* \C{} -> \N{} residue.Jarkko Hietaniemi1999-08-311-3/+3
| | | p4raw-id: //depot/cfgperl@4059
* Use \N{named characters} instead of \C.Ilya Zakharevich1999-08-301-3/+3
| | | | | | | | | To: jhi@iki.fi Cc: larry@wall.org (Larry Wall), Tim.Bunce@ig.co.uk (Tim Bunce), perl5-porters@perl.org (Mailing list Perl5) Subject: Re: [PATCH 5.005_58] Named characters in Perl Message-Id: <199908292046.QAA05510@monk.mps.ohio-state.edu> p4raw-id: //depot/cfgperl@4052
* sub : attrlistSpider Boardman1999-08-291-81/+209
| | | | | | To: Mailing list Perl5 <perl5-porters@perl.org> Message-Id: <199908290702.DAA32191@Orb.Nashua.NH.US> p4raw-id: //depot/cfgperl@4043
* Rename warning to warnings, from Paul Marquess.Jarkko Hietaniemi1999-08-291-3/+5
| | | p4raw-id: //depot/cfgperl@4038
* Introduce the charnames pragma.Jarkko Hietaniemi1999-08-041-47/+109
| | | | | | | | | | | | | | | | Subject: [PATCH 5.005_58] Free \C (for named chars), move to \O From: Ilya Zakharevich <[9]ilya@math.ohio-state.edu> To: Chip Salzenberg <[11]chip@perlsupport.com> Cc: Mailing list Perl5 <[12]perl5-porters@perl.org> Date: Sat, 31 Jul 1999 05:44:05 -0400 Message-Id: <[13]199907311407.IAA25042@localhost.frii.com> From: Ilya Zakharevich <ilya@math.ohio-state.edu> To: Mailing list Perl5 <perl5-porters@perl.org> Subject: [PATCH 5.005_58] Named characters in Perl Date: Mon, 2 Aug 1999 19:25:40 -0400 Message-ID: <19990802192540.B24407@monk.mps.ohio-state.edu> p4raw-id: //depot/cfgperl@3916
* 64-bit work. Now 32-bit platforms get a 100% make testJarkko Hietaniemi1999-08-011-6/+23
| | | | | | | | | | | | | | | with -Duse64bits (using long long). Tested in Solaris 2.6 sparc RH Linux 6.0 x86 (and Digital IX 4.0D, to get a true 64-bit opinion). Now e.g. 'print unpack "q", pack "q", 12345678901' should work on such 32-bit platforms. Still a lot of printf()s behind -D which wrongly assume that %ld/%lx and (long) are a good combination. Introducing a slew of new macros intended to be used in printf() format strings: e. g. PERL_PRId64 is the string to be used when printing an IV, printf("%" PERL_PRId64 "\n", iv). The PRI... naming follows the C9X naming of <inttypes.h> macros. p4raw-id: //depot/cfgperl@3861
* Reading 64-bit decimal numbers was broken becauseJarkko Hietaniemi1999-08-011-4/+6
| | | | | the NV was cast to an I32, not an IV. p4raw-id: //depot/cfgperl@3846
* Integer overflow iteration.Jarkko Hietaniemi1999-07-311-3/+3
| | | p4raw-id: //depot/cfgperl@3843
* Hack the "integer overflow" code some more.Jarkko Hietaniemi1999-07-311-3/+5
| | | p4raw-id: //depot/cfgperl@3840
* Integrate with Sarathy. I overruled on perldeltaJarkko Hietaniemi1999-07-291-34/+35
|\ | | | | | | | | and perldiag. p4raw-id: //depot/cfgperl@3833
| * minor tweaks to pods and toke.c commentsGurusamy Sarathy1999-07-291-34/+35
| | | | | | p4raw-id: //depot/perl@3826
* | Repent and make overly large integerishJarkko Hietaniemi1999-07-291-13/+64
|/ | | | | | | constants non-fatal. They are now promoted to NVs, accompanied by an overflow warning that is by default on. p4raw-id: //depot/cfgperl@3832
* Document toke.c.Nathan Torkington1999-07-281-4/+331
| | | | | | | To: perl5-porters@perl.org Subject: Re: toke.c patch, work in progress Message-ID: <14238.36561.979473.667842@localhost.frii.com> p4raw-id: //depot/cfgperl@3808
* Integer constants (0x, 0[0-7], 0b) now overflow fatally,Jarkko Hietaniemi1999-07-271-10/+5
| | | | | | | they used to be just optional lexical warnings. Also, with warnings turned on, constants > 2**32-1 trigger a non-portability warning. p4raw-id: //depot/cfgperl@3798
* a more correct fix for change#2744Stephen McCamant1999-07-261-10/+9
| | | | | | | | Message-ID: <14235.24385.671437.246345@alias-2.pr.mcs.net> Subject: [PATCH _57] Re: toke.c questions p4raw-link: @2744 on //depot/perl: d194fe61f689c3f3b6f024f88d67f0262ed84a53 p4raw-id: //depot/perl@3781
* make map behave like grep wrt indirect object slot whenGurusamy Sarathy1999-07-251-3/+3
| | | | | | | | | | there are parentheses; revert an experimental mod by Larry in change#2038 that failed to parse %{{qw(a b c)}} properly (this means C<map {use Foo; ...} ...> still needs a proper fix) p4raw-link: @2038 on //depot/perl: 834a4ddd8309fbf6aabbbc51bb6fcbe056e7963f p4raw-id: //depot/perl@3744
* more PERL_OBJECT cleanups (changes still untested on Unix!)Gurusamy Sarathy1999-07-081-29/+38
| | | p4raw-id: //depot/perl@3660
* fixes for logical bugs in the lexwarn patch; other tweaks to avoidGurusamy Sarathy1999-07-081-9/+10
| | | | | type mismatch problems p4raw-id: //depot/perl@3658
* lexical warnings update (warning.t fails one testPaul Marquess1999-07-071-14/+35
| | | | | | | due to leaked scalar, investigation pending) Message-ID: <5104D4DBC598D211B5FE0000F8FE7EB29C6C8E@mbtlipnt02.btlabs.bt.co.uk> Subject: [PATCH 5.005_57] Lexical Warnings - mandatory warning are now default warnings p4raw-id: //depot/perl@3640
* slightly tweaked version of suggested patchDan Sugalski1999-07-061-2/+2
| | | | | | Message-Id: <3.0.6.32.19990608140938.030f12e0@ous.edu> Subject: [PATCH 5.005_57]Use NV instead of double in the core p4raw-id: //depot/perl@3602
* "\e" and "\a" didn't produce right escape under EBCDICPeter Prymmer1999-07-051-0/+9
| | | | | | Message-Id: <9906041900.AA28387@forte.com> Subject: [PATCH 5.005_57]lingering ASCIIism in tokener p4raw-id: //depot/perl@3591
* somewhat untested PERL_OBJECT cleanups (C++isms mostlyGurusamy Sarathy1999-06-271-1/+1
| | | | | | | | | gone from the public API); PERL_OBJECT builds again on windows TODO: namespace-clean the typedefs in iperlsys.h and elsewhere; remove C++ remnants from public headers p4raw-id: //depot/perl@3553
* Fixed two long-standing locale bugs.Jarkko Hietaniemi1999-06-171-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both problems were related to numeric locale which controls the radix character aka the decimal separator. (1) printf (and sprintf) were resetting the numeric locale to C. (2) Using locale-numerically formatted floating point numbers (e.g. "1,23") together with -w caused warnings about "isn't numeric". The operations were working fine, though, because atof() was using the local locale. Both problems reported by Stefan Vogtner. Introduced a wrapper for atof() that attempts to convert the string both ways. This helps Perl to understand numbers like this "4.56" even when using a local locale makes atof() understand only numbers like this "7,89". Remaining related problems, both of which existed before this patch and continue to exist after this patch: (a) The behaviour of print() is _not_ as documented by perllocale. Instead of always using the C locale, print() does use the local locale, just like the *printf() do. This may be fixable now that switching to-and-fro between locales has been made more consistent, but fixing print() would change existing behaviour. perllocale is not changed by this patch. (b) If a number has been stringified (say, via "$number") under a local locale, the cached string value persists even under "no locale". This may or may not be a problem: operations work fine because the original number is still there, but that the string form keeps its locale-ish outlook may be somewhat confusing. p4raw-id: //depot/cfgperl@3542
* more complete support for implicit thread/interpreter pointer,Gurusamy Sarathy1999-06-091-161/+161
| | | | | | | | | | | | | | | | | | | | | enabled via -DPERL_IMPLICIT_CONTEXT (all changes are noops without that enabled): - USE_THREADS now enables PERL_IMPLICIT_CONTEXT, so dTHR is a noop; tests pass on Solaris; should be faster now! - MULTIPLICITY has been tested with and without PERL_IMPLICIT_CONTEXT on Solaris - improved function database now merged with embed.pl - everything except the varargs functions have foo(a,b,c) macros to provide compatibility - varargs functions default to compatibility variants that get the context pointer using dTHX - there should be almost no source compatibility issues as a result of all this - dl_foo.xs changes other than dl_dlopen.xs untested - still needs documentation, fixups for win32 etc Next step: migrate most non-mutex variables from perlvars.h to intrpvar.h p4raw-id: //depot/perl@3524
* initial stub implementation of implicit thread/thisGurusamy Sarathy1999-06-071-100/+62
| | | | | | | | | | | | pointer argument; builds/tests on Solaris, win32 hasn't been fixed up yet; proto.h, global.sym and static function decls are now generated from a common database in proto.pl; some inconsistently named perl_foo() things are now Perl_foo(), compatibility #defines provided; perl_foo() (lowercase 'p') reserved for functions that take an explicit context argument; next step: generate #define foo(a,b) Perl_foo(aTHX_ a,b) p4raw-id: //depot/perl@3522
* remove _() non-ansismGurusamy Sarathy1999-06-021-36/+36
| | | p4raw-id: //depot/perl@3518
* remove stray K&R-ismsGurusamy Sarathy1999-06-021-1/+2
| | | p4raw-id: //depot/perl@3515
* name PL_in_eval bitsHugo van der Sanden1999-05-241-3/+3
| | | | | Message-Id: <199905231535.QAA00032@crypt.compulink.co.uk> p4raw-id: //depot/perl@3457
* minor logic tweak for reserved word warningGurusamy Sarathy1999-05-241-9/+11
| | | p4raw-id: //depot/perl@3451
* oops, some files missing in change#3449Gurusamy Sarathy1999-05-241-0/+1
| | | | | p4raw-link: @3449 on //depot/perl: 18228614d1dac2db099ef3d8846e53f44accce72 p4raw-id: //depot/perl@3450
* redo change#2061 and parts of change#1169 with code in theGurusamy Sarathy1999-05-241-33/+7
| | | | | | | | | | | parser; PL_last_proto hackery gone, strict 'subs' in now implemented in the optimizer where specifying the exceptional cases is much more robust; '*' (bareword) prototype now works reliably when used in second and subsequent arguments p4raw-link: @2061 on //depot/perl: bf8481137c02593eb36f8d0e234a2ec41a1c92e4 p4raw-link: @1169 on //depot/perl: 2a841d1398ee9bbf30a942905192cc2591b3e92a p4raw-id: //depot/perl@3447
* remove redundant part of change#1169 superseded by change#2061;Gurusamy Sarathy1999-05-231-13/+18
| | | | | | | | avoid "future reserved word" warning on prototypical bearwords p4raw-link: @2061 on //depot/perl: bf8481137c02593eb36f8d0e234a2ec41a1c92e4 p4raw-link: @1169 on //depot/perl: 2a841d1398ee9bbf30a942905192cc2591b3e92a p4raw-id: //depot/perl@3446
* various fixes for clean build and test on win32; configpm broken,Gurusamy Sarathy1999-05-111-0/+1
| | | | | | | | | | needed to open myconfig.SH rather than myconfig; sundry adjustments to bytecode stuff; tweaks to DYNAMIC_ENV_FETCH code to make it work under win32; getenv_sv() changed to getenv_len() since SVs aren't visible in the lower echelons; remove bogus exports from config.sym; PERL_OBJECT-ness for C++ exception support; null out IoDIRP in filter_del() or sv_free() will attempt to close it p4raw-id: //depot/perl@3387
* Self-consistent numeric conversion againIlya Zakharevich1999-05-101-3/+3
| | | | | Message-Id: <199905010226.WAA19127@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@3378
* Re: ptr to realloced memory in yylexHugo van der Sanden1999-05-091-1/+2
| | | | | Message-Id: <199905021659.RAA14016@crypt.compulink.co.uk> p4raw-id: //depot/perl@3339