summaryrefslogtreecommitdiff
path: root/perl.c
Commit message (Collapse)AuthorAgeFilesLines
* don't run END blocks when running under -c switch (older,Gurusamy Sarathy1999-10-091-3/+3
| | | | | | rarely useful behavior may still be obtained by putting BEGIN { $^C = 0; exit; } at the end of the script) p4raw-id: //depot/perl@4323
* remove kludgey duplicate background error avoidance (causedGurusamy Sarathy1999-10-081-1/+0
| | | | | | "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-15/+16
| | | | | | to point at; change places that meant Perl_debug_log rather than PerlIO_stderr() p4raw-id: //depot/perl@4302
* (Was: deprecating SIGDIE)Kurt D. Starsinic1999-09-301-2/+0
| | | | | | | | To: Gurusamy Sarathy <gsar@ActiveState.com> Cc: tchrist@perl.com, Larry Wall <larry@wall.org>, The Perl Porters Mailing List <perl5-porters@perl.org> Message-ID: <19990929151650.E26675@O2.chapin.edu> p4raw-id: //depot/cfgperl@4257
* queue errors due to strictures rather than printing them asGurusamy Sarathy1999-09-201-0/+4
| | | | | | | | | | | 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
* make sprintf("%g",...) threadsafe; only taint its result iff theGurusamy Sarathy1999-09-121-0/+5
| | | | | formatted result looks nonstandard p4raw-id: //depot/perl@4130
* avoid leaking static local_patches unless patchlevel.h isGurusamy Sarathy1999-09-101-0/+1
| | | | | explicitly included p4raw-id: //depot/perl@4119
* sub : attrlistSpider Boardman1999-08-291-0/+1
| | | | | | To: Mailing list Perl5 <perl5-porters@perl.org> Message-Id: <199908290702.DAA32191@Orb.Nashua.NH.US> p4raw-id: //depot/cfgperl@4043
* perl_free() should use PerlMem_free()Gurusamy Sarathy1999-08-201-2/+2
| | | p4raw-id: //depot/perl@4015
* win32 tweaksGurusamy Sarathy1999-08-201-1/+1
| | | p4raw-id: //depot/perl@4014
* integrate cfgperl contents into mainlineGurusamy Sarathy1999-08-201-4/+4
|\ | | | | p4raw-id: //depot/perl@4008
| * Integrate with Nick.Jarkko Hietaniemi1999-08-161-2/+8
| |\ | | | | | | p4raw-id: //depot/cfgperl@3999
| * | Gratuitous uid and gid casts to I32s and ints removed.Jarkko Hietaniemi1999-08-101-4/+4
| | | | | | | | | | | | | | | | | | There are still problem spots in printfing such ids: width (%d vs %ld) and signedness %d vs %u. p4raw-id: //depot/cfgperl@3945
| * | Integrate with Sarathy. perl.h and util.c required manual resolving.Jarkko Hietaniemi1999-08-011-0/+1
| | | | | | | | | p4raw-id: //depot/cfgperl@3864
* | | support USE_THREADS+MULTIPLICITY; source compat tweaks forGurusamy Sarathy1999-08-201-10/+17
| |/ |/| | | | | | | USE_THREADS and MULTIPLICITY; minor pod adjustments p4raw-id: //depot/perl@4007
* | New lightweight Carp has a require. If Carp is used in a __DIE__ handlerNick Ing-Simmons1999-08-141-2/+8
| | | | | | | | | | | | | | | | | | | | | | this causes a POPSTACK panic. The problem seems to be that although die_where() has unwound the tail of perl_vdie() top_env setjmp has been set to resume execution there. Avoiding setting CATCH_SET(TRUE) in call_sv() avoids this. So invent a new G_NOCATCH flag to disable messing with CATCH_SET() in call_sv, use it in perl_vdie(). Add test to op/eval.t which will fail (panic) if bug comes back. >>> I AM NOT CONVINCED THIS IS CORRECT LONG TERM FIX <<< p4raw-id: //depot/perl@3988
* | More optimizations to REx engineIlya Zakharevich1999-08-011-0/+1
|/ | | | | Message-Id: <199907311407.IAA25038@localhost.frii.com> p4raw-id: //depot/perl@3857
* INSTALL =~ s/5.006/5.6/; delay loading Errno until neededGurusamy Sarathy1999-07-261-1/+1
| | | | | (%! has the necessary magic); misc typos p4raw-id: //depot/perl@3754
* Cut-and-pasto in #3737.Jarkko Hietaniemi1999-07-251-0/+1
| | | p4raw-id: //depot/cfgperl@3741
* Use vendorprefixlib.Jarkko Hietaniemi1999-07-251-0/+6
| | | p4raw-id: //depot/cfgperl@3737
* Segfaults if $^PIlya Zakharevich1999-07-171-3/+6
| | | | | Message-Id: <199907130944.FAA04473@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@3683
* fixups for sundry warnings about function pointersGurusamy Sarathy1999-07-121-11/+11
| | | p4raw-id: //depot/perl@3669
* yet more cleanups of the PERL_OBJECT, MULTIPLICITY and USE_THREADSGurusamy Sarathy1999-07-121-34/+9
| | | | | | | | | | | | | | | | builds; passing the implicit context is unified among the three flavors; PERL_IMPLICIT_CONTEXT is auto-enabled under all three flavors (see the top of perl.h) for testing; all varargs functions foo() have a va_list-taking variant vfoo() for generating the context-free versions; the PERL_OBJECT build should now be hyper-compatible with CPAN extensions (C++ is totally out of the picture) result has only been tested on Windows TODO: write docs on the THX rationale and idiomatic usage of the Perl API p4raw-id: //depot/perl@3667
* more PERL_OBJECT cleanups (changes still untested on Unix!)Gurusamy Sarathy1999-07-081-2/+5
| | | p4raw-id: //depot/perl@3660
* lexical warnings update (warning.t fails one testPaul Marquess1999-07-071-11/+19
| | | | | | | 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
* better diagnostics on read operations from write-onlyGurusamy Sarathy1999-07-071-6/+10
| | | | | filehandles p4raw-id: //depot/perl@3632
* applied slightly tweaked version of suggested patch forIlya Zakharevich1999-07-061-0/+3
| | | | | | | 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
* Hack SOCKS support some more plus a patch from Andy DoughertyJarkko Hietaniemi1999-07-051-0/+4
| | | | | that addresses the notorious "Additional libraries" question. p4raw-id: //depot/cfgperl@3597
* Integrate with mainperl.Jarkko Hietaniemi1999-07-041-0/+2
| | | p4raw-id: //depot/cfgperl@3576
* EPOC port to Psion5.Olaf Flebbe1999-06-271-1/+1
| | | | | | | | To: Jarkko Hietaniemi <jhi@iki.fi> Cc: perl5-porters@perl.org Subject: Re: Psion5 Message-ID: <Pine.GHP.4.02.9906272048130.17736-100000@io.science-computing.de> p4raw-id: //depot/cfgperl@3555
* somewhat untested PERL_OBJECT cleanups (C++isms mostlyGurusamy Sarathy1999-06-271-11/+13
| | | | | | | | | 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-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* various little tweaks; most globals are now in intrpvar.h, ninterpsGurusamy Sarathy1999-06-111-5/+0
| | | | | is temporarily gone p4raw-id: //depot/perl@3535
* most globals are now interpreter local; locale initializationGurusamy Sarathy1999-06-101-0/+1
| | | | | | | was too early, defer it until interpreter is allocated and initialized; multiple interpreters should now be concurrency-safe (untested) p4raw-id: //depot/perl@3527
* win32 build fixesGurusamy Sarathy1999-06-101-2/+2
| | | p4raw-id: //depot/perl@3525
* more complete support for implicit thread/interpreter pointer,Gurusamy Sarathy1999-06-091-139/+157
| | | | | | | | | | | | | | | | | | | | | 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-132/+65
| | | | | | | | | | | | 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-26/+26
| | | p4raw-id: //depot/perl@3518
* tighter -help outputGurusamy Sarathy1999-05-311-17/+17
| | | p4raw-id: //depot/perl@3512
* name PL_in_eval bitsHugo van der Sanden1999-05-241-2/+2
| | | | | Message-Id: <199905231535.QAA00032@crypt.compulink.co.uk> p4raw-id: //depot/perl@3457
* avoid creating spurious subroutine stubs on failed subroutineGurusamy Sarathy1999-05-111-0/+3
| | | | | | | call and other places of sv_2cv() misuse; fixes problems with failed subroutine calls "hiding" later attempts to lookup methods in base classes p4raw-id: //depot/perl@3388
* various fixes for clean build and test on win32; configpm broken,Gurusamy Sarathy1999-05-111-14/+14
| | | | | | | | | | 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
* gutsupport for C++ exceptionsChip Salzenberg1999-05-111-103/+140
| | | | | | Message-ID: <19990309115157.E7911@perlsupport.com> Subject: [PATCH 5.005] Flexible Exceptions p4raw-id: //depot/perl@3386
* applied non-conflicting parts of suggested patchCharles Bailey1999-05-051-1/+5
| | | | | | Message-id: <01J9AZY8I2PW001O2S@mail.newman.upenn.edu> Subject: [Patch 5.005_56] Revised VMS patch p4raw-id: //depot/perl@3306
* correct places that said newSVpv() when they meant newSVpvn()Gurusamy Sarathy1999-04-041-13/+13
| | | p4raw-id: //depot/perl@3217
* Integrate from mainperl.Jarkko Hietaniemi1999-03-231-11/+11
|\ | | | | p4raw-id: //depot/cfgperl@3128
| * update copyright yearsGurusamy Sarathy1999-03-221-11/+11
| | | | | | p4raw-id: //depot/perl@3124
* | First pass of integrating the Rhapsody port,Wilfredo Sánchez1999-03-151-1/+1
|/ | | | | | | | Subject: Keeping the world in sync. Reply-To: wsanchez@apple.com To: perlbug@perl.com Message-Id: <199811140111.RAA41784@scv4.apple.com> p4raw-id: //depot/cfgperl@3108
* tolerate CRs after optionsGurusamy Sarathy1999-03-061-0/+3
| | | p4raw-id: //depot/perl@3089
* destroy PL_svref_mutex in perl_destruct()Gurusamy Sarathy1999-03-011-0/+3
| | | p4raw-id: //depot/perl@3045