summaryrefslogtreecommitdiff
path: root/perl.c
Commit message (Collapse)AuthorAgeFilesLines
* Serialise changes to %^H onto the current COP. Return the compile timeNicholas Clark2006-03-311-0/+2
| | | | | | state of %^H as an eleventh value from caller. This allows users to write pragmas. p4raw-id: //depot/perl@27643
* Random accumulated patchesAndy Lester2006-03-311-2/+2
| | | | | Message-ID: <20060331054228.GA18940@petdance.com> p4raw-id: //depot/perl@27641
* Introduce d_sitearch and d_inc_version_list config.sh variables.Gisle Aas2006-03-301-1/+2
| | | | | | | | These allow me to set sitearch and sitelib to be the same without ending up with duplicate entries in @INC. Basically the same way the old d_archlib variable is used. p4raw-id: //depot/perl@27632
* Merge the cut & paste code from Perl_call_sv/Perl_fold_constants withNicholas Clark2006-03-271-33/+4
| | | | | | | the near identical code in pp_entertry into Perl_create_eval_scope. Move the cut & paste code from Perl_call_sv/Perl_fold_constants into Perl_delete_eval_scope. p4raw-id: //depot/perl@27617
* PL_multiline isn't referenced, and can be removed.Nicholas Clark2006-03-251-1/+0
| | | p4raw-id: //depot/perl@27602
* Move the 12 static MAD variables from toke.c into the interpeterNicholas Clark2006-03-101-0/+4
| | | | | structure. p4raw-id: //depot/perl@27466
* Avoid scribbling on the passed in command line string for -i in Nicholas Clark2006-03-091-5/+9
| | | | | moreswitches. p4raw-id: //depot/perl@27451
* Further MAD changes.Nicholas Clark2006-03-081-1/+39
| | | p4raw-id: //depot/perl@27428
* Oops. Didn't mean to commit 27426 to maint first. Integrate it:Nicholas Clark2006-03-081-2/+1
| | | | | | | Avoid writing over the input string in the case 'F' in moreswitches. p4raw-id: //depot/perl@27427 p4raw-integrated: from //depot/maint-5.8/perl@27425 'merge in' perl.c (@27318..)
* Add a Configure question for mad (Misc Attribute Decoration - Larry'sNicholas Clark2006-03-071-0/+3
| | | | | perl5 to perl[56] convertor), which if set defines PERL_MAD in config.h p4raw-id: //depot/perl@27407
* Don't free thread memory if PERL_DESTRUCT_LEVEL is set to a non-zeroMarcus Holland-Moritz2006-03-061-4/+13
| | | | | value as we're probably hunting memory leaks then p4raw-id: //depot/perl@27396
* Don't put strings with embedded NULs in the environment.Rafael Garcia-Suarez2006-03-011-1/+3
| | | | | This makes things like -d:Foo=bar work again. p4raw-id: //depot/perl@27359
* Speedups and shrinkages of SvREFCNT_incAndy Lester2006-02-271-11/+10
| | | | | Message-ID: <20060224205434.GA17867@petdance.com> p4raw-id: //depot/perl@27334
* unused context warningsAndy Lester2006-02-241-3/+4
| | | | | Message-ID: <20060221062711.GA16160@petdance.com> p4raw-id: //depot/perl@27300
* More NullXXX macro removal from Andy LesterRafael Garcia-Suarez2006-02-201-2/+2
| | | p4raw-id: //depot/perl@27238
* Re: Perl_sighandler voodoo (was Re: Smoke [5.8.7] 26127 FAIL(XF) MSWin32 ↵Robin Houston2006-02-171-11/+2
| | | | | | | | | | WinXP/.Net SP2 (x86/2 cpu)) Message-ID: <20051127004313.GA7007@rpc142.cs.man.ac.uk> Simplification of the code in my_exit_jump() that unwinds context stacks p4raw-id: //depot/perl@27207
* Get perl_fini() running on HP-UX again.Gisle Aas2006-02-151-1/+1
| | | | | | | | It was effectively disabled by change 24667 since __ux_version is only available under DCE threads which isn't used when perl is built on HP-UX 11 and later. p4raw-id: //depot/perl@27194
* Trying my "remove the pTHXes" patch againAndy Lester2006-02-091-8/+7
| | | | | Message-ID: <20060209154018.GA14610@petdance.com> p4raw-id: //depot/perl@27136
* Handle unused argsAndy Lester2006-02-081-2/+4
| | | | | Message-ID: <20060207223656.GA5177@petdance.com> p4raw-id: //depot/perl@27129
* Expunge USE_5005THREADS from perl.cNicholas Clark2006-02-061-108/+5
| | | p4raw-id: //depot/perl@27105
* Yes, I broke Win32 with change 27089 by having a { in the wrong place.Nicholas Clark2006-02-051-1/+1
| | | p4raw-id: //depot/perl@27093
* Without this Windows and Netware compilers should be complaining Nicholas Clark2006-02-051-5/+7
| | | | | | | about perl.c having code before a declaration, *but only if compiling with PERL_TRACK_MEMPOOL*. So, will it fix the smoke failures? Place bets now. p4raw-id: //depot/perl@27089
* Enhance PERL_TRACK_MEMPOOL so that it also emulates the PerlHostNicholas Clark2006-02-041-0/+14
| | | | | | | | behaviour of freeing up all memory at thread exit. With this and tools such as valgrind you will now get warnings as soon as you read from the deallocated memory, rather than just a warning much later about freeing to the wrong pool. p4raw-id: //depot/perl@27084
* Remove obsolete comment.Nicholas Clark2006-02-041-1/+0
| | | p4raw-id: //depot/perl@27077
* S_find_beginning is only called from one place, so by hoisting theNicholas Clark2006-02-031-7/+8
| | | | | | forbid_setid check for -x into the caller, we can eliminate the suidscript parameter from S_find_beginning. p4raw-id: //depot/perl@27076
* And as we've now got to the point where all calls to Perl_moreswitchesNicholas Clark2006-02-031-12/+16
| | | | | | | have -1 as the second argument, we can remove the second argument, which gets us back to where we started, only with the elimination of a per-thread variable. p4raw-id: //depot/perl@27075
* The MSDOS-only call to moreswitches will never reach forbid_setid, soNicholas Clark2006-02-031-2/+2
| | | | | | | | | | | it can have a parameter of -1 without changing any behaviour. I see no reason to forbid "command line" switches when they are actually coming from the #! line of the script itself (as read by perl) as they must have been written by the owner of the script, rather than being crafted by the user manipulating the command line, and therefore cannot be subverted. (Or alternatively, can be subverted as easily as the rest of the script, and we're permitting *that* to be run) p4raw-id: //depot/perl@27074
* Pull the variables fdscript and suidscript into a much smaller scope.Nicholas Clark2006-02-031-30/+31
| | | | | | | Replace suidscript with literal -1 where it could only have been -1. (Re-indent the other code inside the new block creating the scope. Rejig the indentation of the conditionals) p4raw-id: //depot/perl@27073
* Change 27070 failed to initialise a variable. (But despite that stillNicholas Clark2006-02-031-1/+1
| | | | | passed all tests locally.) p4raw-id: //depot/perl@27072
* Eliminating PL_suidscript is more tricky, and requires changing theNicholas Clark2006-02-031-32/+33
| | | | | prototype of Perl_moreswitches. p4raw-id: //depot/perl@27070
* Passing the flag to S_forbit_setid as a single char rather than aNicholas Clark2006-02-031-18/+30
| | | | | string is a slight space optimisation. p4raw-id: //depot/perl@27069
* It's actually easier to get rid of PL_fdscript than we thought.Nicholas Clark2006-02-031-14/+16
| | | p4raw-id: //depot/perl@27066
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-67/+67
| | | | | | Message-ID: <20060203152449.GI12591@accognoscere.homeunix.org> Date: Fri, 3 Feb 2006 16:24:49 +0100 p4raw-id: //depot/perl@27065
* s/Nullcv/NULL/gSteven Schubiger2006-02-031-4/+4
| | | | | | Message-ID: <20060202150241.GF12591@accognoscere.homeunix.org> Date: Thu, 2 Feb 2006 16:02:41 +0100 p4raw-id: //depot/perl@27060
* Re: [PATCH] s/Null(av|ch)/NULL/gSteven Schubiger2006-02-021-20/+20
| | | | | Message-ID: <20060202093849.GD12591@accognoscere.homeunix.org> p4raw-id: //depot/perl@27054
* gv_fetchpvn_flags ranks highly in the profile, and the ::/' scanningNicholas Clark2006-02-021-18/+20
| | | | | | | loop is iterated over millions of times. Add a flag GV_NOTQUAL purely as an optimisation, when the caller is passing in a string that is known not to contain any package separators. p4raw-id: //depot/perl@27053
* Yet more instances of gv_fetchpv... that should be GV_ADD rather thanNicholas Clark2006-02-021-20/+20
| | | | | | TRUE. Convert two gv_fetchpvn_flags to gv_fetchpvs. p4raw-id: //depot/perl@27050
* Make Perl_gv_fetchpvn_flags actually heed the passed in length.Nicholas Clark2006-01-311-3/+3
| | | | | This means that \0 bytes in symbolic references now work. p4raw-id: //depot/perl@27028
* Use a union for storing the shared hash key reference count, ratherNicholas Clark2006-01-301-1/+1
| | | | | than messy pointer hacks. p4raw-id: //depot/perl@27000
* Avoid using space to create 2 functions just to force mathoms to beNicholas Clark2006-01-291-9/+0
| | | | | | linked. Instead, force the link via the perl interpreter structure via a function pointer that gets replaced at run time anyway. p4raw-id: //depot/perl@26990
* Add gv_fetchpvs, which uses STR_WITH_LEN to call gv_fetchpvn_flags.Nicholas Clark2006-01-281-28/+30
| | | | | Many strlen()s saved. p4raw-id: //depot/perl@26983
* Make dump and -u croak on Win32 and Cygwin to avoid confusionYves Orton2006-01-261-0/+2
| | | | | | | | such as was seen here: Subject: Weird Win32 error: "This application has requested the Runtime to terminate it in an unusual way." Message-ID: <9b18b3110601260640x34b2442cnf5379d2f83b74187@mail.gmail.com> p4raw-id: //depot/perl@26947
* Fix a regression on suidperl : the error message "No #! line" wasRafael Garcia-Suarez2006-01-241-3/+5
| | | | | | produced in erroneous cases, because we used to read values in a string buffer that pointed to nothing. p4raw-id: //depot/perl@26940
* SPRINTF_RETURNS_STRLEN isn't really a compile-time option Steve Hay2006-01-241-3/+0
| | | | | | | | | | | | From: Gisle Aas <gisle@ActiveState.com> Date: 23 Jan 2006 02:12:04 -0800 Message-ID: <lr3bjfb6dn.fsf@caliper.activestate.com> Subject: RE: SPRINTF_RETURNS_STRLEN isn't really a compile-time option From: "Jan Dubois" <jand@ActiveState.com> Date: Mon, 23 Jan 2006 11:30:51 -0800 Message-ID: <008001c62053$86adf680$2217a8c0@candy> p4raw-id: //depot/perl@26935
* Change all NEWSV() to newSV() in the core and non-dual-lived modules.Steve Hay2006-01-181-12/+12
| | | | | | | | Keep NEWSV() itself for backwards-compatibility outside of the core, but don't advertise it any more. (cf. change #25101). p4raw-link: @25101 on //depot/perl: a02a5408b2f199007c4dcb74559cc79066307ada p4raw-id: //depot/perl@26901
* Make setting 'PL_origalen = 1' before perl_parse() disableGisle Aas2006-01-111-1/+4
| | | | | argv[0] munging when $0 is assigned to. p4raw-id: //depot/perl@26779
* Avoid possible dereference of NULL in the initialization of PL_origalen.Gisle Aas2006-01-101-2/+2
| | | | | | This can only happen when perlparse is called with no argv. Don't try to update PL_origargv unless PL_origalen is at least 2. p4raw-id: //depot/perl@26760
* sprinkle dVARJarkko Hietaniemi2006-01-061-2/+28
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* Move "DEVEL####" marker to the 'perl -v' output.Gisle Aas2006-01-061-1/+5
| | | | | | This avoids problem with using STRINGIFY in patchlevel.h (ref msg <43BE4BAC.6010701@uk.radan.com> posted to p5p). p4raw-id: //depot/perl@26672
* Replacing broken call to savepvn() with savepvs() to get threadedSteve Peters2006-01-061-1/+1
| | | | | Cygwin to compile again. p4raw-id: //depot/perl@26671