summaryrefslogtreecommitdiff
path: root/mg.c
Commit message (Collapse)AuthorAgeFilesLines
* slightly tweaked version of suggested patchDan Sugalski1999-07-061-7/+7
| | | | | | 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
* Setting $^E wipes out $!Ilya Zakharevich1999-07-051-3/+5
| | | | | Message-Id: <199906080844.EAA03784@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@3595
* somewhat untested PERL_OBJECT cleanups (C++isms mostlyGurusamy Sarathy1999-06-271-9/+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
* win32 build fixesGurusamy Sarathy1999-06-101-1/+1
| | | p4raw-id: //depot/perl@3525
* more complete support for implicit thread/interpreter pointer,Gurusamy Sarathy1999-06-091-34/+36
| | | | | | | | | | | | | | | | | | | | | 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-69/+68
| | | | | | | | | | | | 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-1/+1
| | | p4raw-id: //depot/perl@3518
* remove stray K&R-ismsGurusamy Sarathy1999-06-021-2/+1
| | | p4raw-id: //depot/perl@3515
* REx engine improvementsIlya Zakharevich1999-05-251-21/+27
| | | | | Message-Id: <199905250642.CAA06208@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@3475
* "weak" references internals, still needs perlguts documentationGurusamy Sarathy1999-05-101-0/+21
| | | | | | (somewhat modified version of patch suggested by Tuomas J. Lukka <lukka@fas.harvard.edu>) p4raw-id: //depot/perl@3385
* correct places that said newSVpv() when they meant newSVpvn()Gurusamy Sarathy1999-04-041-1/+1
| | | p4raw-id: //depot/perl@3217
* update copyright yearsGurusamy Sarathy1999-03-221-1/+1
| | | p4raw-id: //depot/perl@3124
* add const qualifier to most char* prototypes, handle ripple effectGurusamy Sarathy1999-02-151-1/+1
| | | p4raw-id: //depot/perl@2924
* remove OVERLOAD conditionalsJan Dubois1999-02-121-3/+0
| | | | | Message-ID: <36b66479.62756298@smtp1.ibm.net> p4raw-id: //depot/perl@2903
* support win32_putenv()Gurusamy Sarathy1999-02-121-1/+1
| | | p4raw-id: //depot/perl@2898
* make safesysmalloc() etc., always available; safemalloc() et al areGurusamy Sarathy1999-02-081-6/+9
| | | | | | now macros that point to the right malloc; fix various places in sources that need to always use safesysmalloc() et al p4raw-id: //depot/perl@2834
* another threads reliability fix: serialize writes to thr->threadsvGurusamy Sarathy1998-11-291-16/+25
| | | | | | | | 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
* Change $#+Ilya Zakharevich1998-11-281-2/+7
| | | | | Message-Id: <199811280651.BAA18095@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@2373
* Finishing off SNOBOL: $1 in (?{})Ilya Zakharevich1998-11-281-2/+2
| | | | | Message-Id: <199811280533.AAA25654@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@2372
* Implement $^C to allow perl access to -c flag - I think this Nick Ing-Simmons1998-11-281-0/+9
| | | | | was agreed once... p4raw-id: //depot/perl@2352
* use PL_mess_sv only during global destruction (fixes problems withGurusamy Sarathy1998-11-181-4/+5
| | | | | | overlapping invocations of form()/warn()/die()/croak() trampling on each other's messages) p4raw-id: //depot/perl@2249
* indeterminate order-of-evaluation fixesGurusamy Sarathy1998-11-041-3/+8
| | | p4raw-id: //depot/perl@2192
* phase 1 of somewhat major rearrangement of PERL_OBJECT stuffGurusamy Sarathy1998-10-301-26/+26
| | | | | | | | | | (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
* various win32 tweaks; disable new xs_cpp section (it createsGurusamy Sarathy1998-10-261-0/+1
| | | | | ambiguous inference graph for %.xs --> %.o) p4raw-id: //depot/perl@2086
* integrate changes#1982,2014,2021 (from maint-5.005)Gurusamy Sarathy1998-10-251-9/+11
| | | | | | | p4raw-link: @2021 on //depot/maint-5.005/perl: ece095e7b265a16d4ec3543b1418100f9c635a87 p4raw-link: @2014 on //depot/maint-5.005/perl: cca0b9804acab4b7678c0f185888d57497a5c2a9 p4raw-link: @1982 on //depot/maint-5.005/perl: fe676099d996f70caaedeb6ae85adc3ee59d2240 p4raw-id: //depot/perl@2059
* avoid the circular refcnt logic in magic_mutexfree()Gurusamy Sarathy1998-10-251-1/+0
| | | p4raw-id: //depot/perl@2052
* Some C compilers get upset about 8-bit characters in /* comments. */Jarkko Hietaniemi1998-10-231-1/+1
| | | p4raw-id: //depot/cfgperl@2035
* fix globals caught by change#1927; builds and tests on SolarisGurusamy Sarathy1998-10-061-10/+10
| | | | | p4raw-link: @1927 on //depot/perl: eb07465ebe1238598e948058857ec948c6697f86 p4raw-id: //depot/perl@1936
* Cumulative OS/2-related patchIlya Zakharevich1998-10-061-2/+5
| | | | | Message-Id: <199810050637.CAA07781@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@1930
* fix various 5.00552 mishaps (fixes suggested by Jan Dubois,Gurusamy Sarathy1998-09-281-3/+6
| | | | | | Kurt Starsinic, Spider Boardman, Dan Sugalski and Albert Dvornik) p4raw-id: //depot/perl@1899
* bump patchlevel to 52; other little tweaks for threads, win32 buildsGurusamy Sarathy1998-09-251-0/+4
| | | p4raw-id: //depot/perl@1888
* tweaks to enable PERL_OBJECT to build & test on win32Gurusamy Sarathy1998-09-251-2/+2
| | | p4raw-id: //depot/perl@1879
* SSNEW() API for allocating memory on the savestackAlbert Dvornik1998-09-231-35/+60
| | | | | | Message-Id: <tqemtae338.fsf@puma.genscan.com> Subject: [PATCH 5.005_51] (was: why SAVEDESTRUCTOR()...) p4raw-id: //depot/perl@1852
* support match indices via special variables @- and @+Ilya Zakharevich1998-09-231-0/+42
| | | | | | Message-Id: <199807220300.XAA16081@monk.mps.ohio-state.edu> Subject: [PATCH 5.004_76] @- and @+ p4raw-id: //depot/perl@1800
* lexical warnings; tweaks to places that didn't apply correctlyPaul Marquess1998-08-091-6/+64
| | | | | | Message-Id: <9807290828.AA26286@claudius.bfsec.bt.co.uk> Subject: lexical warnings patch for 5.005_50 p4raw-id: //depot/perl@1773
* integrate maint-5.005 changes into mainlineGurusamy Sarathy1998-08-081-6/+5
|\ | | | | p4raw-id: //depot/perl@1760
| * tweaked version of suggested patchIlya Zakharevich1998-08-021-1/+1
| | | | | | | | | | | | Message-Id: <199807210140.VAA17186@monk.mps.ohio-state.edu> Subject: [PATCH 5.004_75] Enable -DS p4raw-id: //depot/maint-5.005/perl@1701
| * support OE/MVSJarkko Hietaniemi1998-08-021-2/+2
| | | | | | | | | | | | Message-Id: <199808010903.MAA09371@alpha.hut.fi> Subject: [PATCH] 5.005_01: OE MVS p4raw-id: //depot/maint-5.005/perl@1697
| * Remove redundant dTHRAndy Dougherty1998-08-021-1/+0
| | | | | | | | | | Message-Id: <Pine.SUN.3.96.980730101627.17514B-100000@newton.phys> p4raw-id: //depot/maint-5.005/perl@1689
| * fix typo in change#1489 that prevented magic-autovivificationGurusamy Sarathy1998-07-291-2/+2
| | | | | | | | | | p4raw-link: @1489 on //depot/perl: 74e13ce44e4508bd9e7db3e72533836d36277ca3 p4raw-id: //depot/maint-5.005/perl@1673
* | Add dTHR so that it compiles miniperl in threaded modeNick Ing-Simmons1998-07-261-1/+2
| | | | | | p4raw-id: //depot/perl@1667
* | Here are the long-expected Unicode/UTF-8 modifications.Larry Wall1998-07-241-1/+21
|/ | | p4raw-id: //depot/utfperl@1651
* complete s/foo/PL_foo/ changes (all escaped cases identified withGurusamy Sarathy1998-07-201-11/+11
| | | | | | brute force search script). Result builds and passes all tests on Solaris. win32 and PERL_OBJECT are still untested. p4raw-id: //depot/perl@1578
* PL_ scheme Builds under Minw32 - some SEGFAULT snagsNick Ing-Simmons1998-07-181-20/+20
| | | p4raw-id: //depot/ansiperl@1537
* PL_ stuff for threadsNick Ing-Simmons1998-07-181-2/+2
| | | p4raw-id: //depot/ansiperl@1534
* PL_ prefix to all perlvars, part1Nick Ing-Simmons1998-07-181-203/+203
| | | | | Builds and passes all tests at one limit i.e. -DPERL_GLOBAL_STRUCT p4raw-id: //depot/ansiperl@1532
* fix lvalue leaks stemming from failure to free LvTARG(sv)Gurusamy Sarathy1998-07-181-7/+0
| | | p4raw-id: //depot/perl@1528
* fix function parameter autovivification for pseudohashesGurusamy Sarathy1998-07-141-9/+25
| | | p4raw-id: //depot/perl@1489
* rename s/\bSI_/PERLSI_/ to avoid collisions with sysinfo headersGurusamy Sarathy1998-07-061-6/+6
| | | p4raw-id: //depot/perl@1339