summaryrefslogtreecommitdiff
path: root/sv.c
Commit message (Collapse)AuthorAgeFilesLines
* make reset() behave with high-bit charactersIan Phillipps1999-07-261-3/+3
| | | | | | Message-ID: <19990722224859.A27987@homer.diplex.co.uk> Subject: [PATCH 5.005_57] sv_reset can cause stack corruption p4raw-id: //depot/perl@3758
* ensure implicitly closed handles don't set $? or $!Gurusamy Sarathy1999-07-261-1/+1
| | | p4raw-id: //depot/perl@3752
* cache [NIUP]V conversions of defined READONLY valuesIlya Zakharevich1999-07-181-66/+29
| | | | | | Message-ID: <19990711043944.A25944@monk.mps.ohio-state.edu> Subject: [PATCH 5.005_57] Allow caching of numeric/string conversion p4raw-id: //depot/perl@3694
* fixups for sundry warnings about function pointersGurusamy Sarathy1999-07-121-4/+4
| | | p4raw-id: //depot/perl@3669
* yet more cleanups of the PERL_OBJECT, MULTIPLICITY and USE_THREADSGurusamy Sarathy1999-07-121-16/+42
| | | | | | | | | | | | | | | | 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-58/+72
| | | p4raw-id: //depot/perl@3660
* fixes for logical bugs in the lexwarn patch; other tweaks to avoidGurusamy Sarathy1999-07-081-2/+2
| | | | | type mismatch problems p4raw-id: //depot/perl@3658
* lexical warnings update (warning.t fails one testPaul Marquess1999-07-071-7/+18
| | | | | | | 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
* bug in change#3602 (cpp conditionals not allowed inside macro args)Gurusamy Sarathy1999-07-061-22/+28
| | | | | p4raw-link: @3602 on //depot/perl: 6520202708b2a849ca8538ed88e0f75376c3b2d7 p4raw-id: //depot/perl@3605
* slightly tweaked version of suggested patchDan Sugalski1999-07-061-40/+63
| | | | | | 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
* EPOC port to Psion5.Olaf Flebbe1999-06-271-0/+8
| | | | | | | | 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
* Fixed two long-standing locale bugs.Jarkko Hietaniemi1999-06-171-35/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-93/+155
| | | | | | | | | | | | | | | | | | | | | 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-159/+133
| | | | | | | | | | | | 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-19/+19
| | | p4raw-id: //depot/perl@3518
* remove stray K&R-ismsGurusamy Sarathy1999-06-021-13/+7
| | | p4raw-id: //depot/perl@3515
* 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
* "weak" references internals, still needs perlguts documentationGurusamy Sarathy1999-05-101-3/+75
| | | | | | (somewhat modified version of patch suggested by Tuomas J. Lukka <lukka@fas.harvard.edu>) p4raw-id: //depot/perl@3385
* Self-consistent numeric conversion againIlya Zakharevich1999-05-101-117/+376
| | | | | Message-Id: <199905010226.WAA19127@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@3378
* Re: Using existing memory for an SV's PV Jan Dubois1999-05-101-3/+11
| | | | | Message-ID: <373318ae.19292461@smtp1.ibm.net> p4raw-id: //depot/perl@3375
* add test case for change#3298Gurusamy Sarathy1999-05-021-3/+3
| | | | | p4raw-link: @3298 on //depot/perl: 93578b34124e8a3b976cd7f68c60e871e698c9d5 p4raw-id: //depot/perl@3299
* close directory handles properly when localizedGurusamy Sarathy1999-05-021-0/+6
| | | p4raw-id: //depot/perl@3298
* avoid duplicate codeGurusamy Sarathy1999-04-031-90/+66
| | | p4raw-id: //depot/perl@3216
* grow PL_tmps_stack more efficiently; make it more amenable toGurusamy Sarathy1999-04-031-18/+6
| | | | | STRESS_REALLOC testing p4raw-id: //depot/perl@3215
* remove duplicate code and an extra branch in sv_setsv() andGurusamy Sarathy1999-04-031-56/+15
| | | | | other hot code by making SvTHINKFIRST() think about FAKE SVs p4raw-id: //depot/perl@3213
* fix a few places that said 'int', but meant 'STRLEN'Gurusamy Sarathy1999-03-251-1/+1
| | | p4raw-id: //depot/perl@3162
* avoid typeglob persistence in pp_readline()Gurusamy Sarathy1999-03-231-1/+7
| | | p4raw-id: //depot/perl@3125
* update copyright yearsGurusamy Sarathy1999-03-221-1/+1
| | | p4raw-id: //depot/perl@3124
* improved error message [PATCH _55] [RESEND]Joshua Pritikin1999-02-241-6/+8
| | | | | Message-ID: <Pine.GSO.4.02.9902221128200.500-100000@eq1062.wks.na.deuba.com> p4raw-id: //depot/perl@3018
* add const qualifier to most char* prototypes, handle ripple effectGurusamy Sarathy1999-02-151-13/+13
| | | p4raw-id: //depot/perl@2924
* provide SvPV_nolen(sv) to avoid use of PL_naJan Dubois1999-02-141-0/+18
| | | | | | Message-ID: <36bb7ada.68485547@smtp1.ibm.net> Subject: [PATCH 5.005_54] _54 version of SvPV_nolen patch p4raw-id: //depot/perl@2912
* remove OVERLOAD conditionalsJan Dubois1999-02-121-33/+10
| | | | | Message-ID: <36b66479.62756298@smtp1.ibm.net> p4raw-id: //depot/perl@2903
* make EMBEDMYMALLOC the default and provide PERL_POLLUTE_MALLOC to letGurusamy Sarathy1999-02-081-1/+1
| | | | | them ask for insanity (untested) p4raw-id: //depot/perl@2832
* various win32-ish changes merged from maint-5.005Gurusamy Sarathy1999-02-011-11/+7
| | | p4raw-id: //depot/perl@2746
* REV2: Binary number supportWilson P. Snyder II1998-12-311-0/+12
| | | | | | To: perl5-porters@perl.org Message-ID: <199811301543.KAA15689@vulcan.maker.com> p4raw-id: //depot/cfgperl@2546
* another threads reliability fix: serialize writes to thr->threadsvGurusamy Sarathy1998-11-291-4/+6
| | | | | | | | 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
* backout change#2334Gurusamy Sarathy1998-11-291-1/+1
| | | | | p4raw-link: @2334 on //depot/perl: 60ad88b8fe9480f2f097fca26f4f3a9f83a4f830 p4raw-id: //depot/perl@2383
* s/Regexp/re/ and clarify policy on lowercased object namespacesGurusamy Sarathy1998-11-281-1/+1
| | | p4raw-id: //depot/perl@2334
* integrate change#2315 from maint-5.005Gurusamy Sarathy1998-11-271-6/+11
| | | | | | | p4raw-link: @2315 on //depot/maint-5.005/perl: 7a4920e67d1e2d67a4397a908141c6608866ebb0 p4raw-id: //depot/perl@2327 p4raw-integrated: from //depot/maint-5.005/perl@2326 'ignore' op.c (@2310..) 'merge in' sv.c (@2174..)
* add ext/Devel/PeekJan Dubois1998-11-271-420/+0
| | | | | | Message-ID: <36589ec9.49964585@smtp1.ibm.net> Subject: [PATCH 5.005_53] Devel::Peek integration p4raw-id: //depot/perl@2322
* Integrate from mainperl.Jarkko Hietaniemi1998-11-051-0/+1
|\ | | | | p4raw-id: //depot/cfgperl@2202
| * another POPSTACK victimGurusamy Sarathy1998-11-051-0/+1
| | | | | | p4raw-id: //depot/perl@2201
* | (IV) vs (I32) vs I_V()Jarkko Hietaniemi1998-11-031-1/+1
|/ | | | | | | | | | | | | | | Subject: [PATCH 5.005_53] Reverting typecast in sv_upgrade() From: Anton Berezin <tobez@plab.ku.dk> To: "p5p" <perl5-porters@perl.org> Date: 01 Nov 1998 15:09:11 +0100 Message-ID: <86hfwjtshk.fsf@lion.plab.ku.dk> and From: Andy Dougherty <doughera@lafcol.lafayette.edu> Date: Mon, 2 Nov 1998 10:17:34 -0500 (EST) Message-Id: <Pine.SUN.3.96.981102101433.4479B-100000@newton.phys> p4raw-id: //depot/cfgperl@2185
* bump patchlevel; other minor fixes for clean build and test onGurusamy Sarathy1998-10-311-0/+1
| | | | | Solaris and win32 p4raw-id: //depot/perl@2163
* Overloaded <> and deref againIlya Zakharevich1998-10-301-0/+3
| | | | | 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-58/+54
| | | | | | | | | | (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
* Re: Auto-incrementing tied scalar causes SEGVGraham Barr1998-10-251-4/+4
| | | | | Message-ID: <19981024124521.C512@pobox.com> p4raw-id: //depot/perl@2076
* remove FAST_SV_GETS remnant (as suggested by Gisle Aas)Gurusamy Sarathy1998-10-251-4/+0
| | | p4raw-id: //depot/perl@2065
* utf8 substr can access memory outside PVX bufferGisle Aas1998-10-171-0/+4
| | | | | Message-ID: <m3iuhonl4h.fsf@furu.g.aas.no> p4raw-id: //depot/perl@2000