summaryrefslogtreecommitdiff
path: root/pp_ctl.c
Commit message (Collapse)AuthorAgeFilesLines
* sundry cleanups for cloned interpreters (only known failure modeGurusamy Sarathy1999-11-141-13/+11
| | | | | | is due to regexps keeping non-constant data in their compiled structures) p4raw-id: //depot/perl@4579
* avoid stash pointers in optree under USE_ITHREADSGurusamy Sarathy1999-11-111-9/+8
| | | p4raw-id: //depot/perl@4546
* another change towards a shareable optree: avoid pointer to filegvGurusamy Sarathy1999-11-111-28/+16
| | | | | | | | | in COP; revert parts of change#4485 and s/xcv_filegv/xcv_file/ (CvFILE() may yet come in handy somewhere); adjust compiler doodads to suit p4raw-link: @4485 on //depot/perl: b195d4879f55e1610299cb9b1b55356940c2a577 p4raw-id: //depot/perl@4545
* more cleanups for change#4539Gurusamy Sarathy1999-11-101-0/+3
| | | | | p4raw-link: @4539 on //depot/perl: 350de78d9c02710bb008e9ca922c78ba251ec366 p4raw-id: //depot/perl@4544
* remove VIRTUAL tag, PERL_OBJECT doesn't need it anymoreGurusamy Sarathy1999-11-041-1/+0
| | | p4raw-id: //depot/perl@4511
* macros for COP.cop_filegv accessGurusamy Sarathy1999-11-011-14/+13
| | | p4raw-id: //depot/perl@4505
* More printf-fixes (see also #4426).Jarkko Hietaniemi1999-10-231-2/+2
| | | p4raw-id: //depot/cfgperl@4429
* serious bug introduced by G_VOID changes in 5.003_96: scalarGurusamy Sarathy1999-10-171-0/+1
| | | | | | eval"" did not pop stack correctly; C<$a = eval "(1,2)x1"> is one symptom of the problem p4raw-id: //depot/perl@4401
* fix POPSTACK panics that ensued from bad interaction betweenGurusamy Sarathy1999-10-141-1/+2
| | | | | | | | | runlevels and stack of stacks (change#3988 done right); basically, we pop the runlevel if the stacklevel is not the same one we started the runlevel with p4raw-link: @3988 on //depot/perl: a7c6d24429ab2b6db54575a3bdc62c7ed9f881cf p4raw-id: //depot/perl@4376
* avoid inefficiency in change#3386 (every longjmp() was followedGurusamy Sarathy1999-10-141-1/+2
| | | | | | | by an avoidable call to setjmp()) p4raw-link: @3386 on //depot/perl: 312caa8e97f1c7ee342a9895c2f0e749625b4929 p4raw-id: //depot/perl@4372
* POPSUB() gave up the refcount to the CV before LEAVE had a chance toGurusamy Sarathy1999-10-091-3/+11
| | | | | | | clear entries in the CV's pad, leading to coredumps when CV had no other references to it; this is a slightly edited version of the patch suggested by Russel O'Connor <roconnor@world.std.com> p4raw-id: //depot/perl@4321
* revert POP{SUB,LOOP}{1,2} logic to the simpler pre-5.003_24Gurusamy Sarathy1999-10-081-15/+10
| | | | | | situation (assumptions about cx invalidation are not valid anymore) p4raw-id: //depot/perl@4320
* remove kludgey duplicate background error avoidance (causedGurusamy Sarathy1999-10-081-19/+18
| | | | | | "leaks"; %@ wasn't even user-visible under -Dusethreads); only repeats of most recent error are now avoided p4raw-id: //depot/perl@4316
* make die/warn and other diagnostics go to wherever STDERR happensGurusamy Sarathy1999-10-061-6/+8
| | | | | | 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-2/+2
| | | | | | | | | 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
* queue errors due to strictures rather than printing them asGurusamy Sarathy1999-09-201-5/+23
| | | | | | | | | | | 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 clearing @_ at all for faster subroutine calls; fix bugsGurusamy Sarathy1999-09-191-11/+9
| | | | | | 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-5/+5
| | | | | | | | | | 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
* Fix pointer casts.Robin Barker1999-09-071-5/+5
| | | | | | | | 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
* deadcode removalGurusamy Sarathy1999-08-291-7/+1
| | | p4raw-id: //depot/perl@4034
* change#3692 had an unintentional patch leak through!Gurusamy Sarathy1999-08-021-11/+8
| | | | | | | | (this would explain the mysterious C<next LABEL> failures people have seen) p4raw-link: @3692 on //depot/perl: 2c15bef39460c09b2a7846a30a4fc1fc1c4f93e4 p4raw-id: //depot/perl@3878
* 64-bit work. Now 32-bit platforms get a 100% make testJarkko Hietaniemi1999-08-011-2/+2
| | | | | | | | | | | | | | | 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
* warnings identified by Borland compilerGurusamy Sarathy1999-07-261-3/+3
| | | p4raw-id: //depot/perl@3777
* alpha-stage support for user-hooks in @INCKen Fox1999-07-261-16/+207
| | | | | | Message-Id: <199907200213.WAA02816@mailfw2.ford.com> Subject: Re: loading remote modules p4raw-id: //depot/perl@3771
* change#3534 didn't preserve undef return values from caller()Gurusamy Sarathy1999-07-261-3/+6
| | | | | p4raw-link: @3534 on //depot/perl: f3aa04c29a85dd63d563ae8e27316ff34501ccd5 p4raw-id: //depot/perl@3751
* remove spurious newSTATEOP() that causes goto to enter one too manyGurusamy Sarathy1999-07-181-8/+11
| | | | | contexts when jumping between if and elsif blocks p4raw-id: //depot/perl@3692
* minor efficiency tweakGurusamy Sarathy1999-07-141-0/+9
| | | p4raw-id: //depot/perl@3672
* fixups for sundry warnings about function pointersGurusamy Sarathy1999-07-121-13/+7
| | | p4raw-id: //depot/perl@3669
* more PERL_OBJECT cleanups (changes still untested on Unix!)Gurusamy Sarathy1999-07-081-153/+180
| | | p4raw-id: //depot/perl@3660
* lexical warnings update (warning.t fails one testPaul Marquess1999-07-071-5/+8
| | | | | | | 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
* Eliminate CONDOPsStephen McCamant1999-07-071-5/+5
| | | | | Message-ID: <14193.25034.113373.245377@alias-2.pr.mcs.net> p4raw-id: //depot/perl@3637
* slightly tweaked version of suggested patchDan Sugalski1999-07-061-9/+18
| | | | | | 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
* make overload, Data::Dumper, and dumpvar understand qr// stringifyGurusamy Sarathy1999-07-041-1/+1
| | | | | overloading p4raw-id: //depot/perl@3570
* 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-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* implement C<use caller 'encoding'>Gurusamy Sarathy1999-06-111-1/+6
| | | p4raw-id: //depot/perl@3534
* more complete support for implicit thread/interpreter pointer,Gurusamy Sarathy1999-06-091-104/+104
| | | | | | | | | | | | | | | | | | | | | 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-59/+36
| | | | | | | | | | | | 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-23/+23
| | | p4raw-id: //depot/perl@3518
* remove stray K&R-ismsGurusamy Sarathy1999-06-021-4/+1
| | | p4raw-id: //depot/perl@3515
* fix memory leak in C<eval 'return sub {...}'>Gurusamy Sarathy1999-05-311-29/+42
| | | p4raw-id: //depot/perl@3511
* REx engine improvementsIlya Zakharevich1999-05-251-14/+15
| | | | | Message-Id: <199905250642.CAA06208@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@3475
* avoid enumerating @INC contents in diagnostic if @INC was neverGurusamy Sarathy1999-05-251-16/+21
| | | | | searched p4raw-id: //depot/perl@3466
* change#3455 had a typoGurusamy Sarathy1999-05-241-1/+1
| | | | | p4raw-link: @3455 on //depot/perl: 288ec9e31566cfd8e9a63e1dd3d7e670d6e519b8 p4raw-id: //depot/perl@3463
* name PL_in_eval bitsHugo van der Sanden1999-05-241-4/+4
| | | | | Message-Id: <199905231535.QAA00032@crypt.compulink.co.uk> p4raw-id: //depot/perl@3457
* return 0 rather than "" when scalar grep has nothing to iterateGurusamy Sarathy1999-05-241-1/+1
| | | | | on (brings behavior in line with documentation) p4raw-id: //depot/perl@3455
* straighten some code to avoid NeXT compiler bugs (fromGurusamy Sarathy1999-05-241-1/+4
| | | | | Geoff Kuenning <geoff@cs.hmc.edu>) p4raw-id: //depot/perl@3452
* valist vs va_list typoNick Ing-Simmons1999-05-131-1/+1
| | | p4raw-id: //depot/perl@3414
* docatch_body() declaration mismatchGurusamy Sarathy1999-05-131-1/+1
| | | p4raw-id: //depot/perl@3411
* various fixes for clean build and test on win32; configpm broken,Gurusamy Sarathy1999-05-111-19/+22
| | | | | | | | | | 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