summaryrefslogtreecommitdiff
path: root/pp_ctl.c
Commit message (Collapse)AuthorAgeFilesLines
* move PL_linestr from the interpreter struct to the parser structDave Mitchell2007-04-241-1/+1
| | | p4raw-id: //depot/perl@31058
* Re: [PATCH (incomplete)] Make regcomp use SV* sv, instead of char* exp, ↵Ævar Arnfjörð Bjarmason2007-04-231-5/+5
| | | | | | | char* xend Message-ID: <51dd1af80704211430m6ad1b4afy49b069faa61e33a9@mail.gmail.com> p4raw-id: //depot/perl@31027
* Fix problems caused by downsizing in change 31017. (Which don't showNicholas Clark2007-04-221-1/+1
| | | | | up until you test on a "real" architecture) p4raw-id: //depot/perl@31023
* Where possible, use SvIV instead of SvIVX, SvNV instead of SvNVX,Nicholas Clark2007-04-211-1/+1
| | | | | | | | | SvUV instead of SvUVX, and SvPV* variants instead of SvPVX*. Document that the non-x variants are preferable whenever the expression has no side effects. (Compilers perform common subexression elimination). Likewise SvREFCNT_inc simple variants are valid for all cases apart from expressions with side effects. p4raw-id: //depot/perl@31010
* PL_madskills is a bool, so save it as one (else Solaris rightlyNicholas Clark2007-04-121-1/+1
| | | | | SIGBUSes) p4raw-id: //depot/perl@30939
* Merge op_pmreplstart and op_pmstash/op_pmstashpv into a union inNicholas Clark2007-04-061-1/+1
| | | | | PMOP, as both pointers never need to be set at the same time. p4raw-id: //depot/perl@30860
* S_op_destroy() was not static. Also tidy all other STATIC/staticNicholas Clark2007-04-051-8/+4
| | | | | | declarations onto the same line as the return type, to make checking this easier. p4raw-id: //depot/perl@30846
* Re: pmdynflags and thread safetyYves Orton2007-04-041-24/+17
| | | | | Message-ID: <9b18b3110704031646p7ac8dbearf9e41397a5f884d8@mail.gmail.com> p4raw-id: //depot/perl@30841
* In struct regexp replace the two arrays of I32s accessed via startpNicholas Clark2007-03-261-6/+6
| | | | | | | | | | and endp with a single array of struct regexp_paren_pair, which has 2 I32 members. PL_regstartp and PL_regendp are replaced with a pointer to regexp_paren_pair. The regexp swap structure now only has one member, so abolish it and store the pointer to the swap array directly. Hopefully keeping the corresponding start and end adjacent in memory will help with cache coherency. p4raw-id: //depot/perl@30769
* Resolve PL_curpm issues with (??{}) and fix corruption of match results when ↵Yves Orton2007-03-221-2/+2
| | | | | | | | | pattern is a qr. Message-ID: <9b18b3110703210239x540f5ad9mdb41c2ea6229ac31@mail.gmail.com> plus two follow-up patches (minor tweaks) p4raw-id: //depot/perl@30678
* Upgrade to version.pm 0.71, by John PeacockRafael Garcia-Suarez2007-03-191-2/+2
| | | p4raw-id: //depot/perl@30629
* As SvUPGRADE() is a macro wrapping a call to sv_upgrade() insideNicholas Clark2007-03-051-2/+1
| | | | | | | a check on the existing SvTYPE(), there's no need to wrap it inside another explcit check of SvTYPE(). This won't make any difference to the output of an optimising compiler, but it makes the source clearer. p4raw-id: //depot/perl@30481
* Make use VERSION also load feature.pmRafael Garcia-Suarez2007-03-031-1/+12
| | | p4raw-id: //depot/perl@30446
* Add a new API function newSV_type, to replace the idiom:Nicholas Clark2007-02-181-4/+2
| | | | | | sv = newSV(0); sv_upgrade(sv, type); p4raw-id: //depot/perl@30347
* Re: Change 29193 is a regressionRick Delaney2007-02-081-0/+1
| | | | | Message-ID: <20070208132137.GA24202@bort.ca> p4raw-id: //depot/perl@30171
* Purge all references to 5005 threads variables in the code.Nicholas Clark2007-02-031-1/+0
| | | | | (Retain the aides memoire in makedef.pl) p4raw-id: //depot/perl@30105
* A few more places where we know the length for sv_setpv() or sv_catpv()Nicholas Clark2007-02-021-1/+1
| | | p4raw-id: //depot/perl@30101
* Remove duplicate assignment to PL_eval_root in Perl_create_eval_scopeNicholas Clark2007-01-221-1/+0
| | | p4raw-id: //depot/perl@29921
* Let the regex parser decide if we have a special pattern or not.Yves Orton2007-01-091-1/+1
| | | | | Message-ID: <9b18b3110701081546n2c3f19acy29adc0d233bb848c@mail.gmail.com> p4raw-id: //depot/perl@29730
* Turn taint warnings (-t) into severe warnings, so they'reRafael Garcia-Suarez2007-01-081-4/+0
| | | | | | on by default, without having to play games with the warning bits. Add a test for -t. p4raw-id: //depot/perl@29717
* Fix the interaction of -w and -t when provided on the command-lineRafael Garcia-Suarez2007-01-051-1/+1
| | | | | | and/or on the shebang line : do not reset the warning bits to 'only taint'. p4raw-id: //depot/perl@29698
* Update copyright years in .c filesRafael Garcia-Suarez2007-01-051-1/+1
| | | p4raw-id: //depot/perl@29696
* 4th patch from: Marcus Holland-Moritz2007-01-041-6/+6
| | | | | | | | | Subject: [PATCH] Cleanup SVf arguments (2nd try) Message-ID: <20070101201613.4120d9ef@r2d2> Introduce an SVfARG() macro for %SVf (%-p here) arguments to perl's printf p4raw-id: //depot/perl@29687
* Rationalise the logic in lex_start for creating a new temporary if theNicholas Clark2006-12-311-1/+1
| | | | | | | passed in SV is read only or doesn't end in ';'. Also, allow a NULL pointer to imply a zero length string, which saves creating a mortal in pp_require, only for it to be ignored in favour of a new SV. p4raw-id: //depot/perl@29647
* Re: [perl #41071] require stringifies code references in tied @INCRick Delaney2006-12-181-0/+2
| | | | | Message-ID: <20061216042825.GB23501@localhost.localdomain> p4raw-id: //depot/perl@29584
* Make get_db_sub non-static, and call it from pp_goto, which allows theNicholas Clark2006-12-011-15/+1
| | | | | | | removal of duplicate code. (The conversion of GvSV(PL_DBsub) to GvSVn(PL_DBsub) implicit in this change should fix a failure with Devel::SmallProf.) p4raw-id: //depot/perl@29434
* Looks like I didn't actually test the COW conditional code inNicholas Clark2006-11-121-1/+1
| | | | | | change 27533. Perl now compiles, but ext/Compress/Raw/Zlib/t/07bufsize.t fails. p4raw-id: //depot/perl@29247
* assert() that SvPV_set() isn't used on arrays.Nicholas Clark2006-11-061-2/+2
| | | p4raw-id: //depot/perl@29221
* When code is loaded through an @INC-hook, and when this hookRafael Garcia-Suarez2006-11-031-0/+6
| | | | | | has set a filename entry in %INC, make sure __FILE__ is set for this code accordingly to the contents of that %INC entry. p4raw-id: //depot/perl@29197
* eval $undef should emit one warning, not three.Dave Mitchell2006-11-021-2/+0
| | | | | Also ensure that eval $undef clears $@ (it did, but only by luck) p4raw-id: //depot/perl@29193
* Silence some warningsRafael Garcia-Suarez2006-10-201-4/+3
| | | p4raw-id: //depot/perl@29058
* Re: Off by one in the trie code?Yves Orton2006-10-191-1/+14
| | | | | | | | | | Message-ID: <9b18b3110610181151i3ca438cdied769ebaa4255079@mail.gmail.com> 1. code necessary to make patterns with interpolated vars behave correctly under lexical re 'debug', including additional tests. 2. changes necessary to resolve the off by one error, 3. tweaks to re.pm to document that re 'debug' is lexical, p4raw-id: //depot/perl@29057
* stab at UNITCHECK blocksAlexander Gough2006-10-191-0/+7
| | | | | Message-ID: <20061019120412.GA12290@the.earth.li> p4raw-id: //depot/perl@29053
* Re: [PATCH] Add hook for re_dup() into regex engine as reg_dupe (make re ↵Yves Orton2006-09-291-2/+2
| | | | | | | pluggable under threads) Message-ID: <9b18b3110609290341p11767110sec20a6fee2038a00@mail.gmail.com> p4raw-id: //depot/perl@28900
* Store a pointer to the op in struct block_loop, rather than the Nicholas Clark2006-09-171-4/+4
| | | | | | | pointers to last and redo. (for ithreads also drop the next pointer, as pp_ctl.c doesn't re-write it for ithreads). This shrinks the struct to 40 bytes on ILP32 systems, and therefore struct block to 64 bytes. p4raw-id: //depot/perl@28858
* Revert changes 28772, 28773, 28774 as they won't gain us anything - INicholas Clark2006-09-161-8/+8
| | | | | | failed to realise that struct block_sub is not the largest of the 4 structures in the block.blk_u union. (It's actually block_loop) p4raw-id: //depot/perl@28853
* cxtype is a U16, not a U32 (Stops VC++ complaining)Steve Hay2006-09-061-1/+1
| | | p4raw-id: //depot/perl@28793
* Access to cx->blk_sub.lval via macros (as it's about to move).Nicholas Clark2006-09-011-2/+2
| | | p4raw-id: //depot/perl@28773
* Access cx->blk_sub.hasargs via a pair of macros (as it's about toNicholas Clark2006-09-011-6/+6
| | | | | move) p4raw-id: //depot/perl@28772
* g++ large patchJarkko Hietaniemi2006-08-071-62/+70
| | | | | Message-ID: <44D2E203.5050201@iki.fi> p4raw-id: //depot/perl@28662
* Change existing uses of strlcpy()/strlcat() to use new my_strlcpy()/Steve Peters2006-07-101-7/+1
| | | | | | my_strlcat() API. Convert ext/File/Glob/bsd_glob.c to use my_strlcat(). Add to the strlcy()/strlcat() todo entry. p4raw-id: //depot/perl@28528
* The smart match table was duplicated in source code and in perlsyn,Rafael Garcia-Suarez2006-06-041-36/+2
| | | | | so remove the one in the source code p4raw-id: //depot/perl@28349
* make require report too many open files errorDave Mitchell2006-05-291-0/+3
| | | | | ie don't continue searching the rest of @INC p4raw-id: //depot/perl@28331
* Abolish cop_io (the simple way) by storing the value in cop_hints_hash.Nicholas Clark2006-05-201-9/+0
| | | | | | Todo - store the in and out values under 2 keys, and avoid the need to create a temporary mortal SV while checking it. p4raw-id: //depot/perl@28258
* eval { s/$foo/die/e } leaked a scalarDave Mitchell2006-05-201-1/+0
| | | p4raw-id: //depot/perl@28254
* Rename cop_hints to cop_hints_hashNicholas Clark2006-05-201-8/+8
| | | p4raw-id: //depot/perl@28252
* [perl #32332] Perl segfaults; test case availableDave Mitchell2006-05-201-2/+1
| | | | | sub f { s/$var/f()/e } could free the wrong RE p4raw-id: //depot/perl@28251
* Re: [PATCH] my_snprintfJarkko Hietaniemi2006-05-121-17/+4
| | | | | Message-ID: <4464E1F1.9010706@gmail.com> p4raw-id: //depot/perl@28183
* no 5.9.4; should fail in version 5.9.4.Nicholas Clark2006-05-101-1/+1
| | | | | Improve the diagnostics and test names in t/comp/use.t p4raw-id: //depot/perl@28150
* Some more SvREFCNT_inc updatesAndy Lester2006-05-021-3/+3
| | | | | Message-ID: <20060430182414.GA18094@petdance.com> p4raw-id: //depot/perl@28049