summaryrefslogtreecommitdiff
path: root/pp.c
Commit message (Collapse)AuthorAgeFilesLines
* allow any unpack specifier to take a count via '/'Gurusamy Sarathy1999-10-121-5/+8
| | | | | (from Ilya Zakharevich) p4raw-id: //depot/perl@4352
* more pack/unpack documentation (from Ilya Zakharevich); changedGurusamy Sarathy1999-10-111-2/+8
| | | | | | the behavior of 'Z*' and 'Z3' to always pack a trailing null byte; changed documentation to suit; added test p4raw-id: //depot/perl@4346
* revert SAVEDESTRUCTOR() to accepting void(*)(void*) for sourceGurusamy Sarathy1999-10-101-1/+1
| | | | | | compatibility; introduce SAVEDESTRUCTOR_X() that accepts void(*)(pTHX_ void*) p4raw-id: //depot/perl@4339
* make die/warn and other diagnostics go to wherever STDERR happensGurusamy Sarathy1999-10-061-2/+2
| | | | | | to point at; change places that meant Perl_debug_log rather than PerlIO_stderr() p4raw-id: //depot/perl@4302
* fix buggy popping of subroutine contexts in the lvalueGurusamy Sarathy1999-09-261-17/+18
| | | | | | | | | subroutines implementation (change#4081); correct the plethora of cases where DIE() was more appropriate than croak() p4raw-link: @4081 on //depot/perl: cd06dffe59d60ee6a2fdd7c81f8cef42c7026b36 p4raw-id: //depot/perl@4235
* change "#" to a comment starter in pack templates; "/" nowIlya Zakharevich1999-09-231-6/+16
| | | | | | | used for specifying counted types Message-ID: <19990922194130.A864@monk.mps.ohio-state.edu> Subject: [PATCH 5.005_61] Enable comments in pack()/unpack() templates p4raw-id: //depot/perl@4222
* avoid clearing @_ at all for faster subroutine calls; fix bugsGurusamy Sarathy1999-09-191-0/+6
| | | | | | in passing around references to @_, eg C<sub foo { \@_ }>; add tests for the same p4raw-id: //depot/perl@4195
* Replace change #4100 withRobin Barker1999-09-131-2/+2
| | | | | | | | | | To: gsar@activestate.com Cc: perl5-porters@perl.org Subject: Re: [ID 19990907.004] [PATCH perl5.005_61] compiler warnings with -Duse64bits Message-Id: <199909131315.OAA24012@tempest.npl.co.uk> p4raw-link: @4100 on //depot/cfgperl: 427181846486e3aa5034a647dc1922377185f4c0 p4raw-id: //depot/cfgperl@4136
* integrate cfgperl contents into mainlineGurusamy Sarathy1999-09-081-28/+87
|\ | | | | p4raw-id: //depot/perl@4106
| * Fix pointer casts.Robin Barker1999-09-071-2/+2
| | | | | | | | | | | | | | | | To: perl5-porters@perl.org Subject: [ID 19990907.004] [PATCH perl5.005_61] compiler warnings with -Duse64bits Message-Id: <199909071130.MAA11435@tempest.npl.co.uk> p4raw-id: //depot/cfgperl@4100
| * Integrate with Sarathy.Jarkko Hietaniemi1999-09-061-0/+2
| |\ | | | | | | p4raw-id: //depot/cfgperl@4091
| * | Time is not yet ripe.Jarkko Hietaniemi1999-09-051-26/+85
| | | | | | | | | p4raw-id: //depot/cfgperl@4079
* | | fix memory leak in C<sub f { split ' ', "a b" } f() while 1>Gurusamy Sarathy1999-09-081-0/+1
| |/ |/| | | p4raw-id: //depot/perl@4103
* | initial implementation of lvalue subroutines (slightly fixedGurusamy Sarathy1999-09-051-0/+2
|/ | | | | | version of patch suggested by Ilya Zakharevich, which in turn is based on the one suggested by Tuomas J. Lukka <lukka@iki.fi>) p4raw-id: //depot/perl@4081
* Enable 64-bit clean bit ops.Jarkko Hietaniemi1999-09-041-85/+26
| | | | | (Disables the t/op/misc.t substest 3 in 64-bit platforms.) p4raw-id: //depot/cfgperl@4070
* For some odd reason #4056 didn't undo #3922 completely.Jarkko Hietaniemi1999-08-311-8/+1
| | | p4raw-id: //depot/cfgperl@4058
* Removed duplicated code (in pp.c and mg.c) by introducingJarkko Hietaniemi1999-08-191-63/+13
| | | | | | | | | | | | do_vecget(). NOTE: the calling convention of do_vecset() changes, too: the `offset' that is assigned to LvTARGOFF(TARG) in pp_vec() is no more multiplied by `size' in pp_vec(), the multiplication is now done in do_vecset(). Also fix a cpp thinko in change #4002. p4raw-link: @4002 on //depot/cfgperl: 24db6c0d56fddf85ee587fc1cb1dbce678fa6a8c p4raw-id: //depot/cfgperl@4004
* Unapply an experimental patch that accidentally escapedJarkko Hietaniemi1999-08-111-38/+61
| | | | | | | from the lab by piggybacking with the change #3955. p4raw-link: @3955 on //depot/cfgperl: d28f7c377ae191ca53d9157f124642cf323614a0 p4raw-id: //depot/cfgperl@3957
* Patches needed to get _60 building withDan Sugalski1999-08-101-61/+38
| | | | | | | | To: vmsperl@perl.org, perl5-porters@perl.org, sarathy@activestate.com, bailey@newman.upenn.edu threads on VMS Message-ID: <Pine.LNX.4.10.9908101631030.18266-100000@tuatha.sidhe.org> p4raw-id: //depot/cfgperl@3955
* Integrate with Nick.Jarkko Hietaniemi1999-08-091-1/+15
|\ | | | | p4raw-id: //depot/cfgperl@3941
| * native int pack/unpack fixes (from Spider BoardmanGurusamy Sarathy1999-08-021-1/+15
| | | | | | | | | | <spider@leggy.zk3.dec.com>) p4raw-id: //depot/perl@3903
* | Protect against pack/unpack repeat count overflows,Nathan Torkington1999-08-061-2/+8
| | | | | | | | | | | | | | | | | | based on: To: Brian Keefer <mgomes@cwix.com> Cc: perl5-porters@perl.org Subject: Re: [ID 19990806.001] Core dump with obfuscated code Message-ID: <14250.27711.769942.100675@localhost.frii.com> p4raw-id: //depot/cfgperl@3928
* | split /^/ deprecation warning should not be on by default.Jarkko Hietaniemi1999-08-051-1/+1
| | | | | | p4raw-id: //depot/cfgperl@3925
* | Warning fix to change #3922.Paul Marquess1999-08-051-2/+3
| | | | | | | | | | | | | | | | | | | | | | To: ilya@math.ohio-state.edu, gsar@activestate.com Cc: tchrist@jhereg.perl.com, chaimf@pobox.com, ed@chronos.net, perl5-porters@perl.org Subject: RE: [PATCH 5.00557] split /^/ Message-ID: <5104D4DBC598D211B5FE0000F8FE7EB202D49B23@mbtlipnt02.btlabs.bt.co.uk> p4raw-link: @3922 on //depot/cfgperl: 2cdd06f700e22243a0f92357f562eb4b13b7197a p4raw-id: //depot/cfgperl@3924
* | Deprecate /^/ implictly meaning /^/m.Ilya Zakharevich1999-08-051-1/+7
|/ | | | | | | | | To: Gurusamy Sarathy <gsar@activestate.com> Cc: Tom Christiansen <tchrist@jhereg.perl.com>, chaimf@pobox.com, ed@chronos.net, perl5-porters@perl.org Subject: [PATCH 5.00557] split /^/ Message-ID: <19990804164657.A3776@monk.mps.ohio-state.edu> p4raw-id: //depot/cfgperl@3922
* Repent and make overly large integerishJarkko Hietaniemi1999-07-291-10/+10
| | | | | | | constants non-fatal. They are now promoted to NVs, accompanied by an overflow warning that is by default on. p4raw-id: //depot/cfgperl@3832
* Integer constants (0x, 0[0-7], 0b) now overflow fatally,Jarkko Hietaniemi1999-07-271-8/+8
| | | | | | | 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
* (Version 2) Extending unpack to deal with counted stringsIan Phillipps1999-07-261-3/+24
| | | | | Message-ID: <19990723233556.B2435@homer.diplex.co.uk> p4raw-id: //depot/perl@3765
* avoid useless use of target for pp_each(); also fixes bugs due toGurusamy Sarathy1999-07-231-4/+5
| | | | | refcount held by the target p4raw-id: //depot/perl@3727
* more PERL_OBJECT cleanups (changes still untested on Unix!)Gurusamy Sarathy1999-07-081-1/+1
| | | p4raw-id: //depot/perl@3660
* fixes for logical bugs in the lexwarn patch; other tweaks to avoidGurusamy Sarathy1999-07-081-3/+4
| | | | | type mismatch problems p4raw-id: //depot/perl@3658
* lexical warnings update (warning.t fails one testPaul Marquess1999-07-071-2/+3
| | | | | | | 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
* fix int vs STRLEN issueGurusamy Sarathy1999-07-061-4/+4
| | | p4raw-id: //depot/perl@3619
* applied slightly tweaked version of suggested patch forIlya Zakharevich1999-07-061-10/+16
| | | | | | | improved RE API Message-Id: <199906092214.SAA14126@monk.mps.ohio-state.edu> Subject: [PATCH 5.005_57] REx engine rehash p4raw-id: //depot/perl@3606
* slightly tweaked version of suggested patchDan Sugalski1999-07-061-39/+39
| | | | | | 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
* integrate cfgperl contents into mainlineGurusamy Sarathy1999-07-061-118/+125
|\ | | | | p4raw-id: //depot/perl@3601
| * pp_lc/pp_lcfirst/pp_quotemeta/pp_uc/pp_ucfirst were not calling mg_set().Jan Starzynski1999-07-041-124/+125
|/ | | | | | | | | | This resulted for example in the 'o' magic not being cleared by magic_setcollxfrm(), which resulted in strange cmp results. The bug was reported originally in the message Subject: Bug with locale To: perlbug@perl.com Message-ID: <370DE31B.DAEE1332@planet.de> p4raw-id: //depot/cfgperl@3568
* Fixed two long-standing locale bugs.Jarkko Hietaniemi1999-06-171-8/+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-70/+70
| | | | | | | | | | | | | | | | | | | | | 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-20/+14
| | | | | | | | | | | | 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-4/+4
| | | p4raw-id: //depot/perl@3518
* REx engine improvementsIlya Zakharevich1999-05-251-10/+11
| | | | | Message-Id: <199905250642.CAA06208@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@3475
* various little nitsGurusamy Sarathy1999-05-201-1/+1
| | | p4raw-id: //depot/perl@3436
* emit more appropriate diagnostic for failed glob (variantGurusamy Sarathy1999-05-171-1/+1
| | | | | of patch suggested by Graham Barr) p4raw-id: //depot/perl@3432
* better range-checking on list slices, with testHugo van der Sanden1999-05-121-10/+7
| | | | | | Message-Id: <199905021602.RAA13905@crypt.compulink.co.uk> Subject: Re: List slice of undefs returns 0 items p4raw-id: //depot/perl@3406
* various fixes for clean build and test on win32; configpm broken,Gurusamy Sarathy1999-05-111-1/+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
* pp_modulo comment tweak from IlyaGurusamy Sarathy1999-05-101-11/+6
| | | p4raw-id: //depot/perl@3377
* avoid temporary files named 'tmp'Gurusamy Sarathy1999-05-081-1/+0
| | | p4raw-id: //depot/perl@3331
* Tweaks to open(my $fh,...) stuffNick Ing-Simmons1999-05-081-5/+8
| | | p4raw-id: //depot/perl@3329