summaryrefslogtreecommitdiff
path: root/pp_ctl.c
Commit message (Collapse)AuthorAgeFilesLines
* REGEXPs are now stored directly in PL_regex_padav, rather thanNicholas Clark2008-01-111-0/+5
| | | | | | indirectly via RVs. This saves memory, and removes 1 level of pointer indirection. p4raw-id: //depot/perl@32950
* Introduce macro PERL_MAX_SUB_DEPTHRafael Garcia-Suarez2008-01-111-1/+1
| | | p4raw-id: //depot/perl@32949
* Revert change #32920, since it was solved another way by #32890.Rafael Garcia-Suarez2008-01-091-5/+3
| | | | | p4raw-link: @32920 on //depot/perl: e3dd4663a7a9c4d106a591d5b1511f7c9d1bfa1e p4raw-id: //depot/perl@32922
* RE: compile warnings w/ PM_SETRE and ReREFCNT_incRobin Barker2008-01-091-3/+5
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <46A0F33545E63740BC7563DE59CA9C6D0939AE@exchsvr2.npl.ad.local> p4raw-id: //depot/perl@32920
* newSV() + sv_upgrade() => newSV_type()Nicholas Clark2008-01-091-2/+1
| | | p4raw-id: //depot/perl@32912
* Remove the warning "v-string in require/use non portable"Rafael Garcia-Suarez2008-01-091-21/+1
| | | p4raw-id: //depot/perl@32910
* Fix a compilation warning created when RX_PRELEN() was changed toNicholas Clark2008-01-051-1/+1
| | | | | | | SvCUR(), which is an unsigned value. [Mmm, how many remaining parts of the regexp struct should be unsigned] p4raw-id: //depot/perl@32862
* Make REGEXP a type distinct from SV. (Much like AV, CV, GV, HV).Nicholas Clark2008-01-051-4/+4
| | | p4raw-id: //depot/perl@32861
* Abolish RXf_UTF8. Store the UTF-8-ness of the pattern with SvUTF8().Nicholas Clark2008-01-051-1/+0
| | | p4raw-id: //depot/perl@32852
* Make Perl_pregcomp() use SvUTF8() of the pattern, rather than the flagNicholas Clark2008-01-051-2/+12
| | | | | bit in pmflags, to decide whether the pattern is UTF-8. p4raw-id: //depot/perl@32851
* Fix the compile for -DPERL_OLD_COPY_ON_WRITE (apart from the tenaciousNicholas Clark2008-01-051-5/+5
| | | | | broken window: ../ext/Compress/Raw/Zlib/t/07bufsize.t) p4raw-id: //depot/perl@32837
* Add macros mPUSHs() and mXPUSHs() for pushing SVs on the stackMarcus Holland-Moritz2008-01-041-14/+14
| | | | | | and mortalizing them. Use these macros where possible. And also mX?PUSH[inpu] where possible. p4raw-id: //depot/perl@32821
* Add newSVpvs_flags() as a wrapper to newSVpvn_flags(), and reworkNicholas Clark2008-01-031-2/+2
| | | | | sv_2mortal(newSVpvs(...)) constructions to use it. p4raw-id: //depot/perl@32819
* Make struct regexp the body of SVt_REGEXP SVs, REGEXPs become SVs,Nicholas Clark2008-01-021-4/+4
| | | | | | and regexp reference counting is via the regular SV reference counting. This was not as easy at it looks. p4raw-id: //depot/perl@32804
* Convert some "regexp" and "struct regexp" to REGEXP where they areNicholas Clark2008-01-021-3/+3
| | | | | currently equivalent but will be wrong once the equivalence vanishes. p4raw-id: //depot/perl@32803
* Wrap all deferences of struct regexp* in macros RX_*() [and forNicholas Clark2008-01-021-23/+23
| | | | | | | regcomp.c and regexec.c RXp_* where necessary] so that in future we can maintain source compatibility when we add an extra level of dereferencing. p4raw-id: //depot/perl@32802
* Wrap all accesses to the members precomp and prelen of struct regexp inNicholas Clark2007-12-281-3/+3
| | | | | | the macros RX_PRECOMP() and RX_PRELEN(). This will allow us to reduce the regexp storage overhead by computing them at retrieve time. p4raw-id: //depot/perl@32753
* First class regexps.Nicholas Clark2007-12-281-17/+13
| | | p4raw-id: //depot/perl@32751
* Re: smart match: array ~~ hashDmitry Karasik2007-11-301-12/+8
| | | | | | | Message-ID: <20071128204959.GA68977@tetsuo.karasik.eu.org> plus more tests. p4raw-id: //depot/perl@32559
* As we know the length, replace strEQ with memEQs in S_doopen_pm().Nicholas Clark2007-10-091-1/+1
| | | p4raw-id: //depot/perl@32089
* If PERL_DISABLE_PMC is defined, doopen_pm() is just a direct call toNicholas Clark2007-10-091-3/+3
| | | | | | check_type_and_open(). So for this case make it a macro, to save a level of function call. p4raw-id: //depot/perl@32088
* Replace Perl_sv_setpvf(aTHX_ namesv, "%s/%s", dir, name); in require'sNicholas Clark2007-10-091-2/+31
| | | | | | | loop over @INC with direct perl API calls that allocate sufficient memory up front, avoid the need to parse a format string, and avoid the need to call strlen() on either parameter. p4raw-id: //depot/perl@32087
* Remove the strlen in doopen_pm() by passing in the length. (As we knowNicholas Clark2007-10-091-11/+10
| | | | | | it already in the caller). Remove the unchanging mode parameter from doopen_pm() and check_type_and_open(), as it's always PERL_SCRIPT_MODE. p4raw-id: //depot/perl@32086
* Remove a call to *printf from the require code.Nicholas Clark2007-10-091-2/+7
| | | p4raw-id: //depot/perl@32085
* With the demise of PERL_FLEXIBLE_EXCEPTIONS, S_docatch_body() can beNicholas Clark2007-10-051-9/+1
| | | | | inlined and eliminated. p4raw-id: //depot/perl@32033
* As PL_hinthv is actually tied, need to call SvSETMAGIC() after theNicholas Clark2007-10-051-2/+5
| | | | | store to it. Gosh, the tied hash API is clunky. p4raw-id: //depot/perl@32032
* New [PATCH] use 5.006; use 5.10.0Robin Barker2007-10-051-6/+20
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <2C2E01334A940D4792B3E115F95B7226016048DB@exchsvr1.npl.ad.local> p4raw-id: //depot/perl@32031
* S_dopoptosub() is just a wrapper for S_dopoptosub_at(), so make it aNicholas Clark2007-10-041-7/+2
| | | | | macro. (Also slightly shrinks the object code for x86 with -Os) p4raw-id: //depot/perl@32024
* Reverse change #31978Rafael Garcia-Suarez2007-10-031-8/+1
| | | | | p4raw-link: @31978 on //depot/perl: d804f4346b490171e547d5cc512063e53da10708 p4raw-id: //depot/perl@32015
* was Re: Freeze ?John Peacock2007-10-021-3/+38
| | | | | Message-ID: <47020F3F.9070604@havurah-software.org> p4raw-id: //depot/perl@32003
* RE: [PATCH] use 5.010 is ugly; use 5.10.0 warnsRobin Barker2007-09-261-1/+8
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <2C2E01334A940D4792B3E115F95B7226C9D1C3@exchsvr1.npl.ad.local> p4raw-id: //depot/perl@31978
* Re: [PATCH 5.10] Improve diagnostic for reloads of bad modulesRick Delaney2007-09-251-1/+2
| | | | | Message-ID: <20070922203040.GK11931@bort.ca> p4raw-id: //depot/perl@31965
* Silence a load of "value computed is not used" warningsRafael Garcia-Suarez2007-09-211-6/+6
| | | p4raw-id: //depot/perl@31936
* Re: INC handlers and shutdown-time warningsRafael Garcia-Suarez2007-09-011-1/+1
| | | | | | From: "Rafael Garcia-Suarez" <rgarciasuarez@gmail.com> Message-ID: <b77c1dce0708090556k68768897yb8ccc1c0dd2ce714@mail.gmail.com> p4raw-id: //depot/perl@31778
* From: "Robin Barker" <Robin.Barker@npl.co.uk>Robin Barker2007-08-281-0/+2
| | | | | Message-ID: <2C2E01334A940D4792B3E115F95B7226C9D18B@exchsvr1.npl.ad.local> p4raw-id: //depot/perl@31757
* [patch@31735] Module-load/require fixes for VMSJohn E. Malmberg2007-08-221-6/+33
| | | | | | | | From: "John E. Malmberg" <wb8tyw@qsl.net> Message-id: <46CA540B.4070001@qsl.net> Avoid double module loads by populating %INC keys in unix format. p4raw-id: //depot/perl@31746
* Use Perl_croak() rather than DIE() in S_doeval() because "DIE()"Steve Hay2007-07-111-2/+2
| | | | | | becomes "return Perl_die()" and Perl_die() returns an OP*, which isn't appropriate to return from S_doeval. p4raw-id: //depot/perl@31586
* Fix assertion failure on failed magic eval - eg FETCH {eval'('}Dave Mitchell2007-07-101-12/+20
| | | | | | | | | | S_doeval()'s behaviour varies depending on whether the code compiles or not; on failure it pops the EVAL context block. This is bad because later on, S_docatch() assumes that the block is still there. Make docatch() return a boolean instead, indicating success. The value it formerly returned (the next op) can be deduced as PL_eval_start or PL_op->op_next on success/failure. p4raw-id: //depot/perl@31582
* move PL_error_count into the PL_parser structDave Mitchell2007-05-211-5/+4
| | | p4raw-id: //depot/perl@31255
* move PL_rsfp_filters into the parser structDave Mitchell2007-05-121-5/+3
| | | p4raw-id: //depot/perl@31200
* move PL_rsfp into the PL_parser structDave Mitchell2007-05-111-4/+3
| | | | | and simplify its creation and destruction p4raw-id: //depot/perl@31199
* move PL_lex_state into the PL_parser structDave Mitchell2007-05-051-1/+1
| | | p4raw-id: //depot/perl@31154
* 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