summaryrefslogtreecommitdiff
path: root/dump.c
Commit message (Collapse)AuthorAgeFilesLines
* op_dump() tweakGurusamy Sarathy2000-02-171-2/+0
| | | p4raw-id: //depot/perl@5121
* set SvUTF8 on vectors only if there are chars > 127; update copyrightGurusamy Sarathy2000-02-061-3/+4
| | | | | years (from Gisle Aas) p4raw-id: //depot/perl@5009
* add patch for printf-style format typechecks (from Robin BarkerGurusamy Sarathy2000-01-221-8/+8
| | | | | <rmb1@cise.npl.co.uk>); fixes for problems so identified p4raw-id: //depot/perl@4836
* nailed "our" declarations, and better warnings on duplicateGurusamy Sarathy2000-01-141-0/+2
| | | | | "our" declarations p4raw-id: //depot/perl@4801
* avoid spurious "Useless use of variable" warning on C<our $foo;>Gurusamy Sarathy2000-01-141-0/+2
| | | p4raw-id: //depot/perl@4800
* more complete pseudo-fork() support for WindowsGurusamy Sarathy1999-12-011-0/+2
| | | p4raw-id: //depot/perl@4602
* sundry cleanups for cloned interpreters (only known failure modeGurusamy Sarathy1999-11-141-1/+5
| | | | | | is due to regexps keeping non-constant data in their compiled structures) p4raw-id: //depot/perl@4579
* Integrate with Sarathy.Jarkko Hietaniemi1999-11-131-2/+7
|\ | | | | p4raw-id: //depot/cfgperl@4555
| * cloned interpreters now actually run and pass all but 55/10386Gurusamy Sarathy1999-11-131-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | subtests; various subtle bugs, new and old, observed when running cloned interpreters have been fixed still to do: | * dup psig_ptr table | * merge PADOP GVs support with "our" SVs (existing PADOPs are too | simple-minded and grab one pad entry each, heavily bloating | the pad by not avoiding dups) | * overloaded constants are not really immutable--they need to | be PADOPs | * allocator for constants and OPs need to be spelled differently | (shared vs interpreter-local allocations) | * optree refcounting is still missing locking (macros are in place) | * curstackinfo, {mark,scope,save,ret}stack need to be cloned so | perl_clone() can be called from within runops*() p4raw-id: //depot/perl@4553
* | Integrate with Sarathy.Jarkko Hietaniemi1999-11-111-4/+5
|\ \ | |/ | | p4raw-id: //depot/cfgperl@4549
| * another change towards a shareable optree: avoid pointer to filegvGurusamy Sarathy1999-11-111-2/+3
| | | | | | | | | | | | | | | | | | 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
| * preliminary support for GVOP indirection via padGurusamy Sarathy1999-11-081-2/+2
| | | | | | p4raw-id: //depot/perl@4539
* | ...and fewer.Jarkko Hietaniemi1999-11-061-2/+4
| | | | | | p4raw-id: //depot/cfgperl@4527
* | More printf miscasts flushed out.Jarkko Hietaniemi1999-11-061-1/+1
|/ | | p4raw-id: //depot/cfgperl@4525
* more cleanup: avoid unused knowledge of "file GV" notion in CV and GVGurusamy Sarathy1999-10-291-2/+1
| | | p4raw-id: //depot/perl@4485
* usurp GVOP slot for new PADOP (one small step to making optreeGurusamy Sarathy1999-10-291-2/+11
| | | | | shareable across interpreters) p4raw-id: //depot/perl@4484
* Integrate with Sarathy; manual resolve on regcomp.c conflictsJarkko Hietaniemi1999-10-271-1/+1
|\ | | | | | | | | (Ilya's changes won). p4raw-id: //depot/cfgperl@4468
| * remove unused interpreter globalsGurusamy Sarathy1999-10-241-1/+1
| | | | | | p4raw-id: //depot/perl@4448
* | More printf-fixes (see also #4426).Jarkko Hietaniemi1999-10-231-7/+8
|/ | | p4raw-id: //depot/cfgperl@4429
* fix typos in change#4288Gurusamy Sarathy1999-10-061-2/+2
| | | | | p4raw-link: @4288 on //depot/cfgperl: 57def98fcb6c98601beaf31e3c48ad681bfdc2a3 p4raw-id: //depot/perl@4304
* Untangle the IV_IS_QUAD jungle by introdudingJarkko Hietaniemi1999-10-021-238/+68
| | | | | | macros to be used when doing formatted printing: IVdf, UVuf, UVxf, UVof. Also introduce Uid_t_SIGN. p4raw-id: //depot/cfgperl@4288
* Replace change #4100 withRobin Barker1999-09-131-23/+23
| | | | | | | | | | 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-23/+23
| | | | | | | | 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
* initial implementation of lvalue subroutines (slightly fixedGurusamy Sarathy1999-09-051-0/+3
| | | | | | 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
* Speeding up XSUB calls up to 66%Ilya Zakharevich1999-08-291-1/+4
| | | | | | | | To: perl5-porters@perl.org (Mailing list Perl5) Message-Id: <199908270733.DAA16927@monk.mps.ohio-state.edu> Addendum: it's "only" 33% speedup. p4raw-id: //depot/cfgperl@4044
* Batch of small 64-bit/long double/large file support tweaks:Jarkko Hietaniemi1999-08-161-5/+1
| | | | | | | | | | | | | | | | | | | | | - scan for LDBL_DIG - from DBL_DIG and LDBL_DIG select NV_DIG - introduce IVSIZE, UVSIZE, NVSIZE - introduce IV_DIG - remove stdio64 - AIX uses `oslevel` when others use `uname -r` - already AIX 4.2 goes 64-bit - in HP-UX require the 64-bit libc, just the directory isn't enough - group ids are not NVs - #undef USE_LONG_DOUBLE if long double is no better than double - introduce NV_WITHIN_*() and IV_FITS_IN_IV - mention large file support in perldelta - introduce quad TOPpin' and POPpin' - the svcat... buffer was tiny for printing quads in %b - fix the multiplication test in 64bit.t - try to make VMS to comply with all this removal and "introducal" of symbols p4raw-id: //depot/cfgperl@3995
* Fix some of the {IV_IS_QUAD,UV_IS_QUAD} cases so thatJarkko Hietaniemi1999-08-021-1/+2
| | | | | | emacs code indentation doesn't get wrong ideas-- in other words, introduce a couple of "redundant" if:s. p4raw-id: //depot/cfgperl@3887
* 64-bit work. Now 32-bit platforms get a 100% make testJarkko Hietaniemi1999-08-011-5/+181
| | | | | | | | | | | | | | | 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
* optimize method name lookupChip Salzenberg1999-07-261-0/+1
| | | | | | Message-ID: <19990722134336.Q391@perlsupport.com> Subject: [PATCH] OP_METHOD_NAMED p4raw-id: //depot/perl@3768
* fix bug in change#3728 that might free COPs prematurely;Gurusamy Sarathy1999-07-251-1/+1
| | | | | | | | null(op) now does more thorough scrubbing of the op, which fixes a few compile-time memory "leaks" p4raw-link: @3728 on //depot/perl: 7399586d384137f7ae66bcc82a83b0df7dd429e5 p4raw-id: //depot/perl@3739
* applied suggested patch for tracking line numbers correctly inHugo van der Sanden1999-07-231-1/+2
| | | | | | | | optimized blocks with a single statement; changed setcop to setstate and added code for -Dx dumps Message-Id: <199906231627.RAA24033@crypt.compulink.co.uk> Subject: [PATCH 5.005_57] Line number error in optimised else() p4raw-id: //depot/perl@3728
* yet more cleanups of the PERL_OBJECT, MULTIPLICITY and USE_THREADSGurusamy Sarathy1999-07-121-4/+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
* Eliminate CONDOPsStephen McCamant1999-07-071-11/+1
| | | | | Message-ID: <14193.25034.113373.245377@alias-2.pr.mcs.net> p4raw-id: //depot/perl@3637
* applied slightly tweaked version of suggested patch forIlya Zakharevich1999-07-061-0/+1
| | | | | | | 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-1/+1
| | | | | | 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
* Fixed two long-standing locale bugs.Jarkko Hietaniemi1999-06-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-133/+133
| | | | | | | | | | | | | | | | | | | | | 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/+21
| | | | | | | | | | | | 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
* redo change#2061 and parts of change#1169 with code in theGurusamy Sarathy1999-05-241-0/+2
| | | | | | | | | | | parser; PL_last_proto hackery gone, strict 'subs' in now implemented in the optimizer where specifying the exceptional cases is much more robust; '*' (bareword) prototype now works reliably when used in second and subsequent arguments p4raw-link: @2061 on //depot/perl: bf8481137c02593eb36f8d0e234a2ec41a1c92e4 p4raw-link: @1169 on //depot/perl: 2a841d1398ee9bbf30a942905192cc2591b3e92a p4raw-id: //depot/perl@3447
* "weak" references internals, still needs perlguts documentationGurusamy Sarathy1999-05-101-1/+5
| | | | | | (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-4/+17
| | | | | Message-Id: <199905010226.WAA19127@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@3378
* do_sv_dump does dump (core) on IO handlesAlbert Dvornik1999-05-101-4/+10
| | | | | Message-ID: <tqlnf6gm52.fsf@puma.genscan.com> p4raw-id: //depot/perl@3368
* correct places that said newSVpv() when they meant newSVpvn()Gurusamy Sarathy1999-04-041-5/+5
| | | p4raw-id: //depot/perl@3217
* update copyright yearsGurusamy Sarathy1999-03-221-1/+1
| | | p4raw-id: //depot/perl@3124
* remove OVERLOAD conditionalsJan Dubois1999-02-121-4/+0
| | | | | Message-ID: <36b66479.62756298@smtp1.ibm.net> p4raw-id: //depot/perl@2903
* fix bugs in do_sv_dump() from Devel::Peek integrationJan Dubois1999-01-181-2/+2
| | | | | Message-Id: <36a271cd.2105507@smtp1.ibm.net> p4raw-id: //depot/perl@2638
* 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
* add ext/Devel/PeekJan Dubois1998-11-271-139/+839
| | | | | | Message-ID: <36589ec9.49964585@smtp1.ibm.net> Subject: [PATCH 5.005_53] Devel::Peek integration p4raw-id: //depot/perl@2322
* phase 1 of somewhat major rearrangement of PERL_OBJECT stuffGurusamy Sarathy1998-10-301-2/+2
| | | | | | | | | | (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
* PL_ prefix to all perlvars, part1Nick Ing-Simmons1998-07-181-13/+13
| | | | | Builds and passes all tests at one limit i.e. -DPERL_GLOBAL_STRUCT p4raw-id: //depot/ansiperl@1532