summaryrefslogtreecommitdiff
path: root/perl.c
Commit message (Collapse)AuthorAgeFilesLines
* In Perl_get_debug_opts(), restructure the message into fewer string literals.Nicholas Clark2010-04-171-26/+26
| | | | This reduces the object code size slightly.
* In S_usage(), restructure the storage of the help message into fewer literals.Nicholas Clark2010-04-171-36/+36
| | | | This reduces the object code size slightly.
* revert "revert perl -h changes"David Golden2010-04-131-2/+6
| | | | | Reapplies commit 482d21b3db741a7f6b59279ab7ad289307e2186b that was reverted in commit bb87c82accf79d3e15da7fc9b646232a4c2bd47c
* Fix comments about @INC orderingRafael Garcia-Suarez2010-03-081-2/+2
|
* revert perl -h changesDavid Golden2010-02-111-6/+2
|
* keep -h to 80 characters or lessDavid Golden2010-02-101-2/+2
|
* Help new users learn how to get helpDavid Golden2010-02-101-0/+4
|
* Improvements to 31c9a3 - CPAN code did depend on the previous behaviour of ↵Nicholas Clark2010-02-061-0/+24
| | | | | | | | | | | | | | | | | | | blessing filehandles into FileHandle It turns out that it's not quite as simple as blessing into IO::File. If you do (just) that, then it breaks any existing code that does C<require IO::Handle;> to allow it to call methods on file handles, because they're blessed into IO::File, which isn't loaded. (Note this code doesn't assume that methods in IO::Seekable are there to be called) So, it all should work if you also set @IO::File:::ISA correctly? That way, code that assumes that methods from IO::Handle can be called will work. However, gv.c now starts complaining (but not failing) if IO::Handle, IO::Seekable and Exporter aren't present, because it goes looking for methods in them. So the solution seems to be to set @IO::File::ISA *and* create (empty) stashes for the other 3 packages. Patch appended, but not applied.
* Add USE_PERL_ATOF to the list of -V's compile-time options.Nicholas Clark2010-01-211-0/+3
|
* Changed Copyright year as suggested by karl williamson in ↵Abigail2010-01-131-2/+3
| | | | http://nntp.perl.org/group/perl.perl5.porters/155493
* include sv_debug_serial field in debugging outputDavid Mitchell2010-01-081-2/+3
|
* Sort the initialisers to non_bincompat_options[], and fix a whitespace "error".Nicholas Clark2010-01-051-4/+4
|
* Add USE_ATTRIBUTES_FOR_PERLIO to the list of -V's compile-time options.Nicholas Clark2010-01-051-0/+3
|
* Free the PL_scopestack_nameGerard Goossen2009-12-181-0/+3
| | | | | | | | | | | | | Free the PL_scopestack_name Gerard Goossen From 4652807944b1b7efc8a66b3fe8d7562d23a2189f Mon Sep 17 00:00:00 2001 From: Gerard Goossen <gerard@ggoossen.net> Date: Fri, 18 Dec 2009 15:09:49 +0100 Subject: [PATCH 2/2] Free the PL_scopestack_name Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
* Correct some #ifdef USE_ITHREADS / USE_MULTIMax Maischein2009-12-171-2/+0
|
* Silence Win32 compiler warningNicholas Clark2009-12-041-1/+1
| | | | | | | Subject: Re: Smoke [5.11.2] v5.11.2-105-gc2123ae FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu) Message-ID: <20091204140536.GD2582@plum.flirble.org> (amended to fix the obvious typo)
* Change perl -v version formatDavid Golden2009-11-141-3/+5
| | | | | | | | | | | | | | | | | | New format: This is perl 5, version 11, subversion 1 (v5.11.1) ... The rationale for this change is that the Perl 5 interpreter will never increment PERL_REVISION from 5 to 6, so we want people to start focusing on the PERL_VERSION number as most significant and PERL_SUBVERSION as equivalent to a "release number". In other words, "perl 5" is a language, this is the 11th version of it, and the second release of that version (counting from zero). Among other things, this makes the output of -v and -V more consistent. The old v-string style is included for familiarity and usage in code. For builds from git, it will include the same extended format as it did before, e.g. "(v5.11.1-176-gaf24cc9*)"
* Add ENTER_with_name and LEAVE_with_name to automaticly check for matching ↵Gerard Goossen2009-11-121-0/+3
| | | | ENTER/LEAVE when debugging is enabled
* Make my_exit behave the same as the Perl exit. And add tests for itGerard Goossen2009-11-081-14/+0
| | | | | | | Rationale: This makes the behaviour of my_exit consistent, so it no longer depends on whether a subroutine was called using call_sv or as a normal using an entersub op. Previously, the exit code was sometimes converted to an exception.
* Add assertions about there being no leftover scopes when enter perl_destruct.Gerard Goossen2009-11-081-0/+3
|
* Add a line directive to op.c and perl.c such that error messages refer to ↵Gerard Goossen2009-11-061-0/+1
| | | | the original files insted of to the copied files perlmini.c and opmini.c
* Add Perl_ck_warner_d(), which combines Perl_ckwarn_d() and Perl_warner().Nicholas Clark2009-10-121-11/+11
| | | | | Replace ckWARN_d{,2,3,4}() && Perl_warner() with it, which trades reduced code size for 1 more function call if warnings are not enabled.
* Add Perl_ck_warner(), which combines Perl_ckwarn() and Perl_warner().Nicholas Clark2009-10-121-3/+2
| | | | | | | Replace ckWARN{,2,3,4}() && Perl_warner() with it, which trades reduced code size (about 0.2%), for 1 more function call if warnings are not enabled. However, if we're now in the L1 or L2 cache when we weren't previously, that's still going to be a speed win.
* In Perl_moreswitches(), merge 2 string constants in the code implementing -v.Nicholas Clark2009-10-051-3/+2
|
* $^O is initalised to OSNAME, so no need to return the latter from Internals::V.Nicholas Clark2009-10-051-3/+1
| | | | Saves having object code to build one SV that Config::_V can find out by itself.
* Move initialising PL_osname from S_init_predump_symbols to perl_construct().Nicholas Clark2009-10-051-3/+2
|
* Simplify building the Perl code invoked for perl -VNicholas Clark2009-09-301-4/+3
|
* Move the implementation of ./perl -V to Internals::V and Config::_VNicholas Clark2009-09-291-83/+89
| | | | | | Previously it was a Perl program generated by code embedded in perl.c, with conditional compilation logic, hence a combination of C pre-processor, C and Perl.
* For miniperl, disable PERL_UNICODE and -C.Nicholas Clark2009-09-231-0/+2
| | | | | | This allows a build to complete with PERL_UNICODE set and a UTF-8 locale. Without this there's a bootstrapping problem, as miniperl can't load the UTF-8 components of the regexp engine, because they're not yet built.
* Restrict miniperl to just -I..., the split of $ENV{PERL5LIB}, and "." in @INCNicholas Clark2009-09-231-0/+5
|
* Declare PERL_IS_MINIPERL in the output of ./{mini,}perl -VNicholas Clark2009-09-231-0/+3
| | | | | (It should never happen that miniperl gets into production, but make something foolproof and ...)
* Ensure that the perl build doesn't read any installed sitecustomize script.Nicholas Clark2009-09-151-1/+1
| | | | | | | But not the tests yet. We need to avoid running a sitecustomize script as it may have side effects that cause the build to fail, or worse, complete but with buggy side effects.
* Avoid setting $! if the sitecustomize script doesn't exist.Nicholas Clark2009-09-151-1/+6
|
* Remove obsolete interpreter variable PL_utf8_alnumcRafael Garcia-Suarez2009-09-131-2/+0
|
* call_method() uses newSVpvn_flags(), instead of sv_2mortal(newSVpv(...)), ↵gfx2009-09-051-1/+5
| | | | | | because newSVpvn_flags() is now optimized. Signed-off-by: Yves Orton <demerphq@gemini.(none)>
* finish implementing -DB vs. -DxChip Salzenberg2009-08-301-1/+2
|
* New debugging flag -DB now dumps subroutine definitions,Chip Salzenberg2009-08-261-1/+2
| | | | leaving -Dx for its original purpose of dumping syntax trees.
* add -DM flag to track smartmatch resolutionDavid Mitchell2009-08-201-1/+2
|
* Add PERL_DISABLE_PMC to the list of -V's compile-time options.Nicholas Clark2009-08-191-0/+3
|
* Remove the port to MiNT. It's a dead platform that hasn't had any love ↵Jesse Vincent2009-08-031-4/+0
| | | | since 5.005
* Don't enqueue pending signals during global destructionLubomir Rintel2009-06-251-0/+7
| | | | | | Global destruction is not signal-safe. PL_psig_pend may already be gone when the signal handler is called (with destruct_level > 0). NULL it before freeing it to prevent a race condition.
* drop remaining mentions of PERL_MEM_LOG_FOO envarsJim Cromie2009-06-211-9/+0
| | | | | | perl.c has the last mentions of PERL_MEM_LOG_ENV*. drop them too. (rgs: plus some in handy.h's comments too)
* Also replace PERL_MEM_LOG_STDERR by PERL_MEM_LOG_NOIMPL in the -V outputRafael Garcia-Suarez2009-06-211-2/+2
|
* Move the code to add magic to $0 into Perl_gv_fetchpvn_flags().Nicholas Clark2009-05-231-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Curiously, this appears to always have been implemented slightly inefficiently. It dates from perl 4.000, which added the functionality to make assigning to $0 set the process name. The equivalent fix for 4.000 is: --- a/perl.c +++ b/perl.c @@ -738,7 +738,7 @@ FIX YOUR KERNEL, PUT A C WRAPPER AROUND THIS SCRIPT, OR USE -u AND UNDUMP!\n"); (void)hadd(sigstab); } - magicalize("!#?^~=-%.+&*()<>,\\/[|`':\004\t\020\024\027\006"); + magicalize("!#?^~=-%.+&*()<>,\\/[|`':0\004\t\020\024\027\006"); userinit(); /* in case linked C routines want magical variables */ amperstab = stabent("&",allstabs); @@ -828,7 +828,6 @@ FIX YOUR KERNEL, PUT A C WRAPPER AROUND THIS SCRIPT, OR USE -u AND UNDUMP!\n"); #endif if (tmpstab = stabent("0",allstabs)) { str_set(stab_val(tmpstab),origfilename); - magicname("0", Nullch, 0); } if (tmpstab = stabent("\030",allstabs)) str_set(stab_val(tmpstab),origargv[0]);
* Use only one block of memory for both PL_psig_name and PL_psig_ptr.Nicholas Clark2009-05-211-2/+1
|
* Remove binary compatibility scaffolding for the change to PL_bitcount.Nicholas Clark2009-05-201-4/+0
|
* Replace run-time on-demand initialisation of PL_bitcount with a constant table.Nicholas Clark2009-05-201-2/+4
| | | | | | | | | | | | | | | | (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.
* Simplifications to S_incpush() now possible without MACOS_TRADITIONAL.Nicholas Clark2009-04-271-10/+4
|
* Remove all #ifdef MACOS_TRADITIONAL code in core and non-dual-life XS code.Nicholas Clark2009-04-271-129/+2
| | | | | | | | (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.)
* [PATCH] Allow PERL5OPT=-WMichael G Schwern2009-04-251-1/+1
|