summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* various shenanigans in change#5342Gurusamy Sarathy2000-02-291-0/+8
| | | | | p4raw-link: @5342 on //depot/perl: ba869debd80c55cfae8e9d4de0991d62f9efcb9b p4raw-id: //depot/perl@5343
* support fetching current interpreter from TLS under useithreadsGurusamy Sarathy2000-02-291-12/+30
| | | p4raw-id: //depot/perl@5342
* make change#3386 a build-time option (avoids problems due toGurusamy Sarathy2000-02-201-0/+2
| | | | | | | perl_run() longjmping out) p4raw-link: @3386 on //depot/perl: 312caa8e97f1c7ee342a9895c2f0e749625b4929 p4raw-id: //depot/perl@5162
* some rearrangement of the includes for easier "microperl" build;Gurusamy Sarathy2000-02-191-8/+1
| | | | | add PERL_MICRO guards supplied by Simon Cozens <simon@brecon.co.uk> p4raw-id: //depot/perl@5143
* more purification (pp_require() could access free memory; vdie()Gurusamy Sarathy2000-02-131-0/+1
| | | | | | | | could think message was random length when passed a null argument; utilize() didn't set up the hash for the method name leading to pp_method_named() accessing random state; PL_curpm wasn't zeroed properly) p4raw-id: //depot/perl@5072
* set SvUTF8 on vectors only if there are chars > 127; update copyrightGurusamy Sarathy2000-02-061-1/+1
| | | | | years (from Gisle Aas) p4raw-id: //depot/perl@5009
* use builtin __CYGWIN__ rather than -DCYGWIN (from Eric FiferGurusamy Sarathy2000-02-061-3/+3
| | | | | <EFifer@sanwaint.com>) p4raw-id: //depot/perl@5008
* autogenerate API listing from comments in the source (from BenjaminGurusamy Sarathy2000-01-281-0/+57
| | | | | | | Stuhl <sho_pi@hotmail.com>); fix the markup format to be more flexible for better readability; add missing docs in sv.c; regenerate perltoc p4raw-id: //depot/perl@4915
* patch to report warnings on bogus filehandles passed to flock(),Gurusamy Sarathy2000-01-211-1/+22
| | | | | | more consistent warnings, from Greg Bacon <gbacon@itsc.uah.edu> (slightly modified) p4raw-id: //depot/perl@4830
* cygwin support tweaks (from Eric Fifer <EFifer@sanwaint.com>)Gurusamy Sarathy2000-01-051-1/+1
| | | p4raw-id: //depot/perl@4755
* usethreads build fixups for NeXTstep (as suggested by Hans Mulder)Gurusamy Sarathy2000-01-021-4/+8
| | | p4raw-id: //depot/perl@4746
* cygwin update from Eric Fifer <EFifer@sanwaint.com>Gurusamy Sarathy1999-12-281-3/+3
| | | p4raw-id: //depot/perl@4717
* bring in basic threads stuff under USE_ITHREADSGurusamy Sarathy1999-12-231-3/+3
| | | p4raw-id: //depot/perl@4704
* more complete pseudo-fork() support for WindowsGurusamy Sarathy1999-12-011-2/+2
| | | p4raw-id: //depot/perl@4602
* sundry cleanups for cloned interpreters (only known failure modeGurusamy Sarathy1999-11-141-2/+2
| | | | | | is due to regexps keeping non-constant data in their compiled structures) p4raw-id: //depot/perl@4579
* typoGurusamy Sarathy1999-11-131-1/+1
| | | p4raw-id: //depot/perl@4557
* Integrate with Sarathy.Jarkko Hietaniemi1999-11-111-17/+7
|\ | | | | p4raw-id: //depot/cfgperl@4549
| * another change towards a shareable optree: avoid pointer to filegvGurusamy Sarathy1999-11-111-2/+2
| | | | | | | | | | | | | | | | | | 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 thorough cleanup in perl_destroy()Gurusamy Sarathy1999-11-081-15/+5
| | | | | | p4raw-id: //depot/perl@4537
* | So many printfs, so little time.Jarkko Hietaniemi1999-11-061-1/+2
| | | | | | p4raw-id: //depot/cfgperl@4530
* | ...and they are getting fewer.Jarkko Hietaniemi1999-11-061-5/+5
| | | | | | p4raw-id: //depot/cfgperl@4526
* | Integrate with Sarathy.Jarkko Hietaniemi1999-11-041-1/+1
|\ \ | |/ | | p4raw-id: //depot/cfgperl@4513
| * macros for COP.cop_filegv accessGurusamy Sarathy1999-11-011-1/+1
| | | | | | p4raw-id: //depot/perl@4505
* | Incremental Mac integration from Matthias.Jarkko Hietaniemi1999-11-041-31/+3
| | | | | | p4raw-id: //depot/cfgperl@4512
* | Initial integration of the MacPerl changes form Matthias.Jarkko Hietaniemi1999-11-021-5/+53
|/ | | p4raw-id: //depot/cfgperl@4508
* More printf-fixes (see also #4426).Jarkko Hietaniemi1999-10-231-3/+3
| | | p4raw-id: //depot/cfgperl@4429
* Fix the printfing nits pointed out by using gcc -Wall andJarkko Hietaniemi1999-10-231-8/+8
| | | | | | Configure -Duse64bits -Dccflags=-DDEBUGGING in Solaris, plus few other warnings in Dumper.xs. p4raw-id: //depot/cfgperl@4426
* fix POPSTACK panics that ensued from bad interaction betweenGurusamy Sarathy1999-10-141-5/+1
| | | | | | | | | 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
* PL_numeric_radix used without being defined (from IlyaGurusamy Sarathy1999-10-131-2/+0
| | | | | Zakharevich) p4raw-id: //depot/perl@4361
* 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
* integrate cfgperl contents into mainlineGurusamy Sarathy1999-10-061-15/+2
|\ | | | | p4raw-id: //depot/perl@4303
| * Untangle the IV_IS_QUAD jungle by introdudingJarkko Hietaniemi1999-10-021-15/+2
| | | | | | | | | | | | macros to be used when doing formatted printing: IVdf, UVuf, UVxf, UVof. Also introduce Uid_t_SIGN. p4raw-id: //depot/cfgperl@4288
* | make die/warn and other diagnostics go to wherever STDERR happensGurusamy Sarathy1999-10-061-55/+67
|/ | | | | | to point at; change places that meant Perl_debug_log rather than PerlIO_stderr() p4raw-id: //depot/perl@4302
* off-by-one in fbm_compile() (spotted by John BleyGurusamy Sarathy1999-09-301-20/+25
| | | | | <jbley@cs.cmu.edu>); whitespace adjustments p4raw-id: //depot/perl@4253
* queue errors due to strictures rather than printing them asGurusamy Sarathy1999-09-201-8/+49
| | | | | | | | | | | 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
* dos-djgpp update (from Laszlo Molnar <laszlo.molnar@eth.ericsson.se>)Gurusamy Sarathy1999-09-101-15/+3
| | | p4raw-id: //depot/perl@4121
* Fix UV_SIZEOF to UVSIZE; change the overflow testsJarkko Hietaniemi1999-09-061-3/+3
| | | | | so that they overflow also on 64-bit platforms. p4raw-id: //depot/cfgperl@4093
* DEBUG_m() adjusted to internalize dTHXGurusamy Sarathy1999-08-201-4/+2
| | | p4raw-id: //depot/perl@4013
* integrate cfgperl contents into mainlineGurusamy Sarathy1999-08-201-25/+25
|\ | | | | p4raw-id: //depot/perl@4008
| * Integrate with Nick.Jarkko Hietaniemi1999-08-161-1/+5
| |\ | | | | | | p4raw-id: //depot/cfgperl@3999
| * | Use Pid_t.Jarkko Hietaniemi1999-08-101-7/+7
| | | | | | | | | p4raw-id: //depot/cfgperl@3950
| * | lexwarn maintenance: new warning class unsafeJarkko Hietaniemi1999-08-091-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | subclasses 'overflow' and 'portable' created, used by the recent integer overflow warnings. Class syntax subclass 'octal' renamed to 'digit', binary and hexadecimal parsing errors also 'digit' warnings. p4raw-id: //depot/cfgperl@3942
* | | support USE_THREADS+MULTIPLICITY; source compat tweaks forGurusamy Sarathy1999-08-201-25/+10
| |/ |/| | | | | | | 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-1/+5
|/ | | | | | | | | | | 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
* Integrate with Sarathy.Jarkko Hietaniemi1999-08-021-0/+1
|\ | | | | p4raw-id: //depot/cfgperl@3889
| * fix coredump under usethreads+debugGurusamy Sarathy1999-08-021-0/+1
| | | | | | p4raw-id: //depot/perl@3876
* | 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
* Simplicate duplicated code.Jarkko Hietaniemi1999-08-011-23/+0
| | | p4raw-id: //depot/cfgperl@3865
* Integrate with Sarathy. perl.h and util.c required manual resolving.Jarkko Hietaniemi1999-08-011-4/+27
| | | p4raw-id: //depot/cfgperl@3864
* 64-bit work. Now 32-bit platforms get a 100% make testJarkko Hietaniemi1999-08-011-0/+12
| | | | | | | | | | | | | | | 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