summaryrefslogtreecommitdiff
path: root/perl.h
Commit message (Collapse)AuthorAgeFilesLines
* New debugging flag -DB now dumps subroutine definitions,Chip Salzenberg2009-08-261-2/+8
| | | | leaving -Dx for its original purpose of dumping syntax trees.
* Eliminate *_ALLOCATED_HEAD and *_HEAD macros which are now used only once.Nicholas Clark2009-08-221-1/+0
|
* Add clear magic to %^H so that the HE chain is reset when you empty it.Zefram2009-08-211-2/+14
| | | | This fixes [perl #68590] : %^H not lexical enough.
* add -DM flag to track smartmatch resolutionDavid Mitchell2009-08-201-1/+7
|
* The op_free() hook doesn't need to return an OP*, so introduce a new typedef ↵Vincent Pit2009-07-151-0/+1
| | | | for OP hooks
* Added missing 2009 to perl.h copyright headerOffer Kaye2009-07-061-1/+1
|
* Add test to make sure everything that outputs an exception or warning has a ↵James Mastros2009-06-271-0/+1
| | | | matching entry in perldiag (and fix it so that more of the existing ones do).
* Remove binary compatibility scaffolding for the change to PL_bitcount.Nicholas Clark2009-05-201-15/+0
|
* Replace run-time on-demand initialisation of PL_bitcount with a constant table.Nicholas Clark2009-05-201-0/+19
| | | | | | | | | | | | | | | | (The table is 256 bytes; the run-time initialisation code is larger than this!) Adapt generate_uudmap.c to generate the initalisation block for PL_bitcount, writing the code to bitcount.h, using the same approach as uudmap.h. To preserve binary compatibility: for MULTIPLICITY: keep Ibitcount in the interpreter structure, but remove all the macros that access it. PL_bitcount is a new symbol in the object file, which won't clash with anything as that name wasn't used before. otherwise: keep PL_bitcount as a char *, but initialise it at compile time to a new constant array PL_bitcount array. Remove the code that attempts to Safefree() it at interpreter destruction time.
* Fix -p function and Fcntl::S_IFIFO constant under Microsoft VC compilerJan Dubois2009-04-281-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Create S_IFIFO macro as an alias for _S_IFIFO if only the latter is being defined by the standard headers (e.g. Microsoft Visual C++). This is necessary to get the C<-p> function working, and also to define the Fcntl::S_IFIFO constant. See also http://bugs.activestate.com/show_bug.cgi?id=82665 Cheers, -Jan From 6386a37b103723e3c473119b95dd0b8edc59a1ed Mon Sep 17 00:00:00 2001 From: Jan Dubois <jand@activestate.com> Date: Mon, 27 Apr 2009 15:44:23 -0700 Subject: [PATCH] Create S_IFIFO macro as an alias for _S_IFIFO if only the latter is being defined by the standard headers (e.g. Microsoft Visual C++). This is necessary to get the C<-p> function working, and also to define the Fcntl::S_IFIFO constant. See also http://bugs.activestate.com/show_bug.cgi?id=82665 Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
* Remove all #ifdef MACOS_TRADITIONAL code in core and non-dual-life XS code.Nicholas Clark2009-04-271-10/+3
| | | | | | | | (MacOS support was removed from MakeMaker in 6.22, and merged to blead on 15th December 2004 with 5dca256ec738057dc331fb644a93eca44ad5fa14. After this point MacOS wouldn't even have been able to build the perl binary, because it would not have been able to build DynaLoader. If anyone wishes to resurrect MacOS, start by reversing this commit and the relevant part of that commit.)
* document PERL_SYS_INIT, PERL_SYS_TERM and that they should only be used onceDavid Mitchell2009-04-021-0/+19
|
* Move PERL_VERSION_STRING from patchlevel.h to perl.hNicholas Clark2009-02-161-0/+4
| | | | | | (and revert a89d24b9fe54d44395806c16ac1c19f3c678cbbb) It's getting too complex to work around some versions of awk which don't want to implement the regular expressions that they are documented to implement.
* PERL_FS_VER_FMT is only used with the current perl version, which is known atNicholas Clark2009-02-161-2/+10
| | | | compile time, so replace it with PERL_FS_VERSION, a compile time constant.
* suidperl goes.Nicholas Clark2009-01-231-76/+0
|
* Ensure that C++ modules can be built against a perl configured with ↵Marcus Holland-Moritz2009-01-231-14/+14
| | | | | | | | | | -DPERL_GLOBAL_STRUCT_PRIVATE. Perl_GetVarsPrivate() could not be seen from within a module built with a C++ compiler if the perl binary was built with a C compiler, as the prototype was not 'extern "C"' for C++. The change moves the EXTERN_C defines so they can be used for the prototype of Perl_GetVarsPrivate().
* VMS posix exit fixesJohn Malmberg2009-01-041-27/+28
| | | | | | | | | | | | | | | | | | | | | | | perl.h and perl.c need further fixes to get VMS to return the expected POSIX exit codes when that is enabled. This fix gets the correct numbers except for the SIGTERM case, which will need some more work. It also gets the posix exit code to set an error severity on a fatal exit so that DCL and MMS/MMK or VMS native programs can easily detect a script failure. This patch does not address an issue in vms.c where the feature logicals may not be correctly read. That will follow in a future patch. The tests have been adjusted to detect when VMS is in the POSIX exit mode and perform properly. -John wb8tyw@gmail.com -- My qsl.net e-mail address is temporarily out of order.
* 'overloading' pragmaYuval Kogman2009-01-021-0/+2
|
* WCOREDUMP is in <sys/wait.h>Niko Tyni2008-12-211-0/+5
| | | | | Without this, $? & 128 doesn't get set properly on some (glibc) systems when dumping core.
* standardize save/restore of errno & vaxc$errnoChip Salzenberg2008-12-051-0/+10
| | | | | Message-ID: <20081127070141.GD17663@tytlal.topaz.cx> p4raw-id: //depot/perl@35018
* The gcc attribute "deprecated" seems to have been available since gcc 3.1Rafael Garcia-Suarez2008-12-031-0/+3
| | | | | | So encode this knowledge in perl.h, so we don't rely on the version of gcc used by Configure to get the macro definition right. p4raw-id: //depot/perl@34995
* Configure detection of __attribute__((deprecated))Rafael Garcia-Suarez2008-12-031-0/+6
| | | | | | From: "Rafael Garcia-Suarez" <rgarciasuarez@gmail.com> Message-ID: <b77c1dce0812030351j33d7b75ci3e2640b33f36acd9@mail.gmail.com> p4raw-id: //depot/perl@34994
* Implement PERLDBf_SAVESRC_INVALID, which saves source lines for stringNicholas Clark2008-12-021-4/+0
| | | | | evals that fail to compile. p4raw-id: //depot/perl@34985
* Followup to change 34979. Tests are good, m'kay. Particularly when theyNicholas Clark2008-12-021-0/+4
| | | | | | | show you that something you thought worked doesn't. Sadly it's not possible to trivially make it work, so for now they're todo_skip(). p4raw-id: //depot/perl@34981
* Remove last reference to PERLDB_ASSERTIONNicholas Clark2008-12-021-2/+1
| | | p4raw-id: //depot/perl@34980
* Add two more flags, PERLDBf_SAVESRC_NOSUBS and PERLDBf_SAVESRC_INVALID,Nicholas Clark2008-12-021-0/+4
| | | | | | which give total control over when source code from evals is stored. The debugger doesn't need them, but I forsee that profilers might. p4raw-id: //depot/perl@34979
* [patch@34779] Get posix exit mode working/tested on VMSJohn E. Malmberg2008-11-101-6/+10
| | | | | | From: "John E. Malmberg" <wb8tyw@qsl.net> Message-id: <4916872B.5040500@qsl.net> p4raw-id: //depot/perl@34790
* Assigning to DEFSV leaks if PL_defgv's gp_sv isn't set.Marcus Holland-Moritz2008-11-081-2/+6
| | | | | | | | | As Nicholas already noted in a FIXME, assigning to DEFSV should use GvSV instead of GvSVn. This change ensures that, at least under -DPERL_CORE, DEFSV cannot be assigned to and introduces a DEFSV_set macro to allow setting DEFSV. This fixes #53038: map leaks memory. p4raw-id: //depot/perl@34776
* Add a flag PERLDBf_SAVESRC, which enables the saved lines part ofNicholas Clark2008-11-011-1/+4
| | | | | | | | PERLDBf_LINE, so that profilers (such as NYTProf) have access to the lines of the eval, without the speed impact of other parts of the debugger infrastructure. PERLDBf_LINE is unchanged. Based largely on a patch by Tim Bunce in <20081028152749.GA12500@timac.local> p4raw-id: //depot/perl@34693
* Haiku PortIngo Weinhold2008-10-291-7/+11
| | | | | Message-Id: <20081029022544.413.1@knochen-vm.localdomain> p4raw-id: //depot/perl@34630
* Update copyright years.Nicholas Clark2008-10-251-2/+2
| | | p4raw-id: //depot/perl@34585
* Rename the new macro clear_errsv() from last patch to CLEAR_ERRSV()Rafael Garcia-Suarez2008-06-171-1/+1
| | | p4raw-id: //depot/perl@34069
* [perl #51370] length($@)>0 for empty $@ if utf8 is in use Bram2008-06-171-0/+2
| | | | | | | | From: "Bram via RT" <perlbug-followup@perl.org> Message-ID: <rt-3.6.HEAD-18229-1213179984-1708.51370-15-0@perl.org> (The first patch) p4raw-id: //depot/perl@34068
* Cast the result of fpsetmask(0) to (void), as some implementationsNicholas Clark2008-04-281-1/+5
| | | | | | | | expand it via a macro, with a comma expression to calculate the return value, at which point gcc has the gall to warn that an expression calcualted is not used. Blame SCO for having to have fpsetmask(0) in the code to start with. p4raw-id: //depot/perl@33762
* Fix bug in change 33379 - if we're using malloc_size() as well as beingNicholas Clark2008-04-021-5/+13
| | | | | | careful to work with PERL_TRACK_MEMPOOL, we also have to be careful to work *without* it. p4raw-id: //depot/perl@33629
* Re: Smoke [5.11.0] 33456 PASS darwin 9.2.0 (macppcG5/1 cpu)Dominic Dunlop2008-03-291-0/+5
| | | | | | | | Message-Id: <3B7752C8-D5A2-452C-B3E0-C453FFCBCAFA@mac.com> [but rename ******* to i_mallocmalloc.U, and then fix up all the files that Porting/checkcfgvar.pl says need i_mallocmalloc declared] p4raw-id: //depot/perl@33598
* Silence some warnings on Win32 with VC6Steve Hay2008-03-061-1/+1
| | | | | | | | VC7 onwards didn't seem to mind (perhaps thanks to #33411): http://www.nntp.perl.org/group/perl.daily-build.reports/2008/03/msg54118.html but VC6 wasn't happy: http://www.nntp.perl.org/group/perl.daily-build.reports/2008/03/msg54099.html p4raw-id: //depot/perl@33448
* Use malloc_good_size() to round up the size of requested arenas to theNicholas Clark2008-02-271-0/+9
| | | | | | size that will actually be allocated, to squeeze last few bytes into use. p4raw-id: //depot/perl@33390
* Fix preprocessor syntaxRafael Garcia-Suarez2008-02-271-3/+5
| | | p4raw-id: //depot/perl@33380
* If the C library provides malloc_size(), we can use that in the sameNicholas Clark2008-02-261-0/+6
| | | | | | | places as Perl's malloced_size(), except that we need to be careful of any PERL_TRACK_MEMPOOL manipulations in force. Wrap both as Perl_safesysmalloc_size(), to give a consistent name and interface. p4raw-id: //depot/perl@33379
* Chainsaw DEBUG_S out, as suggested by Vincent Pit.Rafael Garcia-Suarez2008-02-261-8/+2
| | | p4raw-id: //depot/perl@33376
* Silence Borland compiler warnings (except for warnings from zlib) here:Steve Hay2008-02-251-1/+1
| | | | | http://www.nntp.perl.org/group/perl.daily-build.reports/2008/02/msg53937.html p4raw-id: //depot/perl@33370
* Fix Win32/VC6 compiler warnings caused by #33231Steve Hay2008-02-201-1/+1
| | | p4raw-id: //depot/perl@33336
* Fix bit-fields for VC [was RE: [perl #50386] GIMME_V broken with 5.10.0/GCC ↵Jan Dubois2008-02-121-0/+11
| | | | | | | | and XS?] From: "Jan Dubois" <jand@activestate.com> Message-ID: <02ee01c8651b$17ef72f0$47ce58d0$@com> p4raw-id: //depot/perl@33292
* Micro-optimise the order of the context types. [Because I can :-)]Nicholas Clark2008-02-041-4/+4
| | | | | Here saves 72 bytes in pp_ctl.o. Small, but in the right direction. p4raw-id: //depot/perl@33232
* don't forbid brace groups with g++ 4.2.2Robin Barker2008-01-311-2/+6
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <46A0F33545E63740BC7563DE59CA9C6D093A17@exchsvr2.npl.ad.local> p4raw-id: //depot/perl@33152
* FW: [PATCH] RE: [PATCH] volatile, avoid clobberedRobin Barker2008-01-281-4/+0
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <46A0F33545E63740BC7563DE59CA9C6D093A06@exchsvr2.npl.ad.local> p4raw-id: //depot/perl@33085
* Re: struct context now 12.5% smaller than 5.10Benjamin Smith2008-01-261-2/+5
| | | | | | Message-ID: <20080124215537.GB10198@vtrl.co.uk> Date: Thu, 24 Jan 2008 21:55:37 +0000 p4raw-id: //depot/perl@33070
* Eliminate all PERL_UNUSED_ARG()s in S_validate_suid() by changing itsNicholas Clark2008-01-181-0/+18
| | | | | | prototype depending on the compile time options. In turn, this finds things that are unused in its callers. p4raw-id: //depot/perl@33000
* Rename PERL_MAX_SUB_DEPTH to PERL_SUB_DEPTH_WARN, per Tim Bunce'sRafael Garcia-Suarez2008-01-111-2/+2
| | | | | suggestion p4raw-id: //depot/perl@32955