summaryrefslogtreecommitdiff
path: root/toke.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* emit more accurate diagnostic for syntax errors involving <>Gurusamy Sarathy1999-05-061-3/+7
| | | | | within eval"" p4raw-id: //depot/perl@3310
* applied first part of suggested patch (bug described cannot beHugo van der Sanden1999-05-061-2/+2
| | | | | | | | reproduced any longer, so the second inconclusive part has not been applied) Message-Id: <199903280351.EAA20430@crypt.compulink.co.uk> Subject: [PATCH 5.005_56] Re: A core dump p4raw-id: //depot/perl@3308
* correct places that said newSVpv() when they meant newSVpvn()Gurusamy Sarathy1999-04-041-13/+13
| | | p4raw-id: //depot/perl@3217
* specify type of bracket in "Unmatched bracket" diagnostic;Gurusamy Sarathy1999-03-261-3/+3
| | | | | prefer 'brace' or 'curly bracket' over 'curly brace' p4raw-id: //depot/perl@3170
* better "Illegal %s digit ignored" warningsGurusamy Sarathy1999-03-241-3/+3
| | | p4raw-id: //depot/perl@3137
* update copyright yearsGurusamy Sarathy1999-03-221-1/+1
| | | p4raw-id: //depot/perl@3124
* fix parsing of here documents in C<eval 's/.../<<FOO/e'>Gurusamy Sarathy1999-03-091-2/+32
| | | p4raw-id: //depot/perl@3098
* use yyerror() instead of croak() so that compile-time failures inGurusamy Sarathy1999-03-091-1/+1
| | | | | my(LIST) don't confuse globals with lexicals p4raw-id: //depot/perl@3097
* todo item: permit extended control variables a la ${^Foo} (patchGurusamy Sarathy1999-02-281-2/+21
| | | | | courtesy Mark-Jason Dominus <mjd@plover.com>) p4raw-id: //depot/perl@3039
* update change#2670 to later versionHugo van der Sanden1999-02-121-1/+3
| | | | | | | | Message-Id: <199901311616.QAA17673@crypt.compulink.co.uk> Subject: Re: [PATCH 5.005_54] Evalled substitution parsing p4raw-link: @2670 on //depot/cfgperl: e9fa98b27b08c227248dead8a754ba7c9269fec0 p4raw-id: //depot/perl@2892
* make qw() into a true list at compile time (slightly modifiedGurusamy Sarathy1999-02-081-24/+34
| | | | | variant of patch suggested by Tom Hughes <tom@compton.demon.co.uk>) p4raw-id: //depot/perl@2835
* applied suggested patch; regen perly* and vms/perly*Stephen McCamant1999-02-071-2/+0
| | | | | | Message-ID: <13939.26706.620683.846776@fre-76-120.reshall.berkeley.edu> Subject: [PATCH] Re: Suggestion for perlobj man page p4raw-id: //depot/perl@2823
* various win32-ish changes merged from maint-5.005Gurusamy Sarathy1999-02-011-8/+7
| | | p4raw-id: //depot/perl@2746
* improved diagnostic on syntax errors at EOLGurusamy Sarathy1999-02-011-0/+2
| | | p4raw-id: //depot/perl@2744
* Re: [PATCH 5.005_54] Evalled substitution parsingHugo van der Sanden1999-01-211-2/+12
| | | | | | To: perl5-porters@perl.org Message-Id: <199901211208.MAA01228@crypt.compulink.co.uk> p4raw-id: //depot/cfgperl@2670
* Missing dTHRs added.Jarkko Hietaniemi1999-01-091-7/+10
| | | p4raw-id: //depot/cfgperl@2591
* REV2: Binary number supportWilson P. Snyder II1998-12-311-9/+22
| | | | | | To: perl5-porters@perl.org Message-ID: <199811301543.KAA15689@vulcan.maker.com> p4raw-id: //depot/cfgperl@2546
* Warn on unrecognized alpha escapes.Ilya Zakharevich1998-12-291-1/+5
| | | | | | To: perl5-porters@perl.org (Mailing list Perl5) Message-ID: <MLIST_199812090823.DAA17566@monk.mps.ohio-state.edu> p4raw-id: //depot/cfgperl@2516
* mention limit on line numbers reported by diagnosticsGurusamy Sarathy1998-12-061-1/+2
| | | p4raw-id: //depot/perl@2457
* another threads reliability fix: serialize writes to thr->threadsvGurusamy Sarathy1998-11-291-6/+11
| | | | | | | | avoid most uses of PL_na (which is much more inefficient than a simple local); update docs to suit; PL_na now being thr->Tna may be a minor compatibility issue for extensions--will require dTHR outside of XSUBs (those get automatic dTHR) p4raw-id: //depot/perl@2387
* allow final period in a file (not followed by a newline) toGurusamy Sarathy1998-11-281-1/+1
| | | | | terminate format spec p4raw-id: //depot/perl@2369
* fix skipspace() to properly account for newlines in eval''-edGurusamy Sarathy1998-11-171-3/+10
| | | | | strings (caused bogus line numbers in diagnostics and debugger) p4raw-id: //depot/perl@2242
* Overloaded <> and deref againIlya Zakharevich1998-10-301-4/+4
| | | | | Message-Id: <199810300304.WAA23291@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@2150
* phase 1 of somewhat major rearrangement of PERL_OBJECT stuffGurusamy Sarathy1998-10-301-9/+7
| | | | | | | | | | (objpp.h is gone, embed.pl now does some of that); objXSUB.h should soon be automated also; the global variables that escaped the PL_foo conversion are now reined in; renamed MAGIC in regcomp.h to REG_MAGIC to avoid collision with the type of same name; duplicated lists of pp_things in various places is now gone; result has only been tested on win32 p4raw-id: //depot/perl@2133
* integrate cfgperl into mainlineGurusamy Sarathy1998-10-281-24/+19
|\ | | | | p4raw-id: //depot/perl@2113
| * yylex() parametrization.Jarkko Hietaniemi1998-10-281-16/+19
| | | | | | p4raw-id: //depot/cfgperl@2105
| * s/YYLEXPARAM/PERL_YYLEX_PARAM_DECL/gJarkko Hietaniemi1998-10-261-19/+11
| | | | | | | | | | Bison really wants YYLEX_PARAM. p4raw-id: //depot/cfgperl@2091
* | smarter C<$SIG{FOO} = BAREWORD;> warningGurusamy Sarathy1998-10-281-1/+2
|/ | | p4raw-id: //depot/perl@2111
* fix C<print $n += 5;> etc.Gurusamy Sarathy1998-10-251-2/+2
| | | p4raw-id: //depot/perl@2075
* Re: '*' prototype does not allow bareword with strictGraham Barr1998-10-251-2/+10
| | | | | Message-ID: <19981017222202.J510@pobox.com> p4raw-id: //depot/perl@2061
* integrate cfgperl changes back into mainlineGurusamy Sarathy1998-10-251-12/+35
|\ | | | | p4raw-id: //depot/perl@2050
| * POSIX BC2000 port from perl-mvs:Thomas Dorner1998-10-171-12/+35
| | | | | | | | | | | | Subject: Ported perl 5.005.02 to BS2000 / POSIX Message-ID: <9CE47B416A24D2118BC40000F84009B20B72C5@start.de> p4raw-id: //depot/cfgperl@2009
| * Integrate mainperl.Jarkko Hietaniemi1998-10-171-1/+3
| | | | | | p4raw-id: //depot/cfgperl@2005
* | Program with utf8 identifiers fails to compileLarry Wall1998-10-231-53/+57
| | | | | | p4raw-id: //depot/perl@2038
* | Core dump from "Missing right brace on \x{}"Gisle Aas1998-10-171-1/+3
|/ | | | | Message-ID: <m3iuhn9taf.fsf@furu.g.aas.no> p4raw-id: //depot/perl@2001
* remove spurious unused conflicting globals (PL_yy{v,s}sp)Gurusamy Sarathy1998-10-061-2/+0
| | | p4raw-id: //depot/perl@1924