summaryrefslogtreecommitdiff
path: root/op.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-1/+1
| | | | | | | | 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
* [perl #38955] exists(): error message on wrong argument type is incorrect ↵Bram2008-05-181-1/+1
| | | | | | | | (5.8.7 cygwin) From: "Bram via RT" <perlbug-followup@perl.org> Message-ID: <rt-3.6.HEAD-11257-1211022849-1634.38955-15-0@perl.org> p4raw-id: //depot/perl@33849
* Double magic/warnings with binmode $fh, undefVincent Pit2008-04-301-2/+6
| | | | | | From: "Vincent Pit" <perl@profvince.com> Message-ID: <63615.92.128.97.94.1209490401.squirrel@92.128.97.94> p4raw-id: //depot/perl@33766
* Fix the line-number-in-elsif longstanding bug.Rafael Garcia-Suarez2008-04-181-0/+2
| | | | | | | | | | This patch does two things : - newSTATEOP now nullifies the state op it just created if OPf_SPECIAL is passed to it in flags - the parser now inserts a nullified stateop in the expression block of an elsif p4raw-id: //depot/perl@33710
* Call cop_free on nullified cops tooRafael Garcia-Suarez2008-04-151-1/+4
| | | | | (this is a followup to 33687) p4raw-id: //depot/perl@33695
* invalid cop_free of nullified cop. How to fix?Reini Urban2008-04-151-2/+3
| | | | | | From: "Reini Urban" <rurban@x-ray.at> Message-ID: <6910a60804150509j3c100fc4t2ed303ae0124ba15@mail.gmail.com> p4raw-id: //depot/perl@33687
* Re: Solaris build warningsAndy Dougherty2008-04-141-2/+2
| | | | | | | Message-ID: <Pine.LNX.4.64.0803261337130.22919@fractal.phys.lafayette.edu> Rename the "optype" typedef to "Optype" p4raw-id: //depot/perl@33679
* Split out S_refcounted_he_new_common() fromNicholas Clark2008-04-071-7/+1
| | | | | | | | | Perl_refcounted_he_new_common(), so that Perl_store_cop_label() can call it without needing to create two temporary SVs. Use it in newSTATEOP() and eliminate the two temporary SVs. Make Perl_fetch_cop_label() more defensive by not assuming that the value for ":" is always a PV. Remove its "compatibility" macro. p4raw-id: //depot/perl@33657
* Eliminate cop_label from struct cop by storing a label as the firstNicholas Clark2008-04-071-5/+16
| | | | | | entry in the hints hash. Most statements don't have labels, so this will save memory. Not sure how much. p4raw-id: //depot/perl@33656
* Re: [PATCH] MAD fix p55 $[Gerard Goossen2008-03-101-4/+5
| | | | | Message-ID: <20080310144403.GC28994@ostwald> p4raw-id: //depot/perl@33467
* Ensure that constant folding runs with IN_PERL_RUNTIME true, by copyingNicholas Clark2008-02-251-0/+9
| | | | | | the current compiling cop to a different address. This ensures that lexical hints are correctly honoured, and allows us to fold sprintf. p4raw-id: //depot/perl@33369
* Two break; statements that aren't (yet) needed, but may trip someone upNicholas Clark2008-02-251-0/+2
| | | | | in the future. p4raw-id: //depot/perl@33368
* Re: [patch] optimize OP_IS_(FILETEST|SOCKET) macrosJim Cromie2008-02-251-1/+1
| | | | | | From: "Jim Cromie" <jim.cromie@gmail.com> Message-ID: <cfe85dfa0802101152n4e1b9e07pc7fb7ad9241a9794@mail.gmail.com> p4raw-id: //depot/perl@33364
* Re: [PATCH] Splitting OP_CONST (Was: pp_const, not, that, hot?)Vincent Pit2008-02-231-7/+6
| | | | | | Message-ID: <47B60D72.50708@profvince.com> Date: Fri, 15 Feb 2008 23:08:50 +0100 p4raw-id: //depot/perl@33356
* Eliminate ck_lengthconst.Nicholas Clark2008-02-201-9/+0
| | | p4raw-id: //depot/perl@33338
* Fix macro name in commentRafael Garcia-Suarez2008-02-161-1/+1
| | | p4raw-id: //depot/perl@33323
* Silence compiler warnings on Win32/VC6Jan Dubois2008-02-151-2/+2
| | | | | | | Subject: RE: Bit-fields patch causes warnings on Win32/VC6 From: "Jan Dubois" <jand@activestate.com> Message-ID: <002f01c86f3f$27e23ca0$77a6b5e0$@com> p4raw-id: //depot/perl@33315
* Make the new warning report undef constants as undefRafael Garcia-Suarez2008-02-141-2/+7
| | | p4raw-id: //depot/perl@33309
* Fix leak when issuing new warning implemented by #33305Rafael Garcia-Suarez2008-02-141-1/+1
| | | p4raw-id: //depot/perl@33308
* Fix linker error introduced by #33305Steve Hay2008-02-141-1/+1
| | | p4raw-id: //depot/perl@33306
* Show constant in "Useless use of a constant in void context"Rick Delaney2008-02-141-1/+2
| | | | | Message-ID: <20080214042916.GA12678@bort.ca> p4raw-id: //depot/perl@33305
* assert() that every NN argument is not NULL. Otherwise we have theNicholas Clark2008-02-121-3/+256
| | | | | | | | | | | | ability to create landmines that will explode under someone in the future when they upgrade their compiler to one with better optimisation. We've already done this at least twice. (Yes, some of the assertions are after code that would already have SEGVd because it already deferences a pointer, but they are put in to make it easier to automate checking that each and every case is covered.) Add a tool, checkARGS_ASSERT.pl, to check that every case is covered. p4raw-id: //depot/perl@33291
* FW: [PATCH] RE: [PATCH] volatile, avoid clobberedRobin Barker2008-01-281-1/+1
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <46A0F33545E63740BC7563DE59CA9C6D093A06@exchsvr2.npl.ad.local> p4raw-id: //depot/perl@33085
* Eliminate the OP_SETSTATE, which had been disabled by change 4309.Nicholas Clark2008-01-261-6/+2
| | | p4raw-id: //depot/perl@33072
* Pack the recycled pad offsets into an SV at PL_regex_pad[0]. This willNicholas Clark2008-01-111-6/+15
| | | | | use less memory than an AV. p4raw-id: //depot/perl@32959
* REGEXPs are now stored directly in PL_regex_padav, rather thanNicholas Clark2008-01-111-8/+5
| | | | | | indirectly via RVs. This saves memory, and removes 1 level of pointer indirection. p4raw-id: //depot/perl@32950
* Real regexps are stored via RVs, IVs can only mean spare slots. HenceNicholas Clark2008-01-101-1/+1
| | | | | | it's safe to make the scalar undefined, rather than calling out to write a 0 that would also be interpreted as a NULL pointer. p4raw-id: //depot/perl@32943
* Change 32899 missed undoing the reference count increase when the SVNicholas Clark2008-01-101-1/+5
| | | | | | | | | | is popped off the AV. "There's Something Wrong with our Bloody Leak Checking Today", as Beattie didn't put it. It seems that we really can't check for leaking scalars in perl_destruct, because we do our damndest to free them brute force, rather than by undefining the symbol table and seeing what sticks around. p4raw-id: //depot/perl@32942
* With regexps stored as real RVs, we can eliminate SvREPADTMP().Nicholas Clark2008-01-081-2/+0
| | | | | Exterminate! Exterminate! Exterminate! p4raw-id: //depot/perl@32902
* Correct a long-standing ithreads reference counting anonamly - theNicholas Clark2008-01-081-2/+3
| | | | | | reference count only needs "doubling" when the scalar is pushed onto PL_regex_padav for the second time. p4raw-id: //depot/perl@32899
* Big slowdown in 5.10 @_ parameter passingRick Delaney2008-01-071-49/+61
| | | | | Message-ID: <20080106191439.GF13935@bort.ca> p4raw-id: //depot/perl@32891
* Let's remove the grep in void context warning.Rafael Garcia-Suarez2008-01-071-3/+1
| | | p4raw-id: //depot/perl@32888
* Re: grep and smart match should warn in void contextMichael G. Schwern2008-01-061-1/+5
| | | | | Message-ID: <476EBD58.9050505@pobox.com> p4raw-id: //depot/perl@32876
* Enforce some type safety in PM_SETRE by adding PM_SETRE_OFFSET.Nicholas Clark2008-01-061-1/+1
| | | p4raw-id: //depot/perl@32868
* Clarify the intent of the code in Perl_op_clear. Under ithreads, avoidNicholas Clark2008-01-061-4/+6
| | | | | | calling sv_ivset twice. As a side effect, eliminate PM_GETRE_SAFE and PM_SETRE_SAFE, as we're doing "safe" explicitly in Perl_op_clear(). p4raw-id: //depot/perl@32867
* Fix compilation issues and warnings with exotic configuration.Marcus Holland-Moritz2008-01-061-2/+4
| | | p4raw-id: //depot/perl@32865
* 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-3/+13
| | | | | bit in pmflags, to decide whether the pattern is UTF-8. p4raw-id: //depot/perl@32851
* Follow up on change #32680. This fixes compilationMarcus Holland-Moritz2008-01-041-1/+1
| | | | | | with -DPERL_GLOBAL_STRUCT. p4raw-link: @32680 on //depot/perl: 878d132a73f5d089e821fedd49aa4835a2786d1d p4raw-id: //depot/perl@32828
* Wrap all deferences of struct regexp* in macros RX_*() [and forNicholas Clark2008-01-021-1/+1
| | | | | | | 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
* Typo in op.cVincent Pit2007-12-291-1/+1
| | | | | | | | | Message-ID: <47712BF1.9060200@profvince.com> (And then an update to make the tests in gv.t expect the right thing, and test the behaviour that my change 26482 was originally supposed to produce, but didn't until this typo was fixed) p4raw-id: //depot/perl@32779
* Wrap all accesses to the members precomp and prelen of struct regexp inNicholas Clark2007-12-281-2/+2
| | | | | | 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
* Implement each @array.Nicholas Clark2007-12-201-0/+21
| | | | | | Documentation needed, FIXME for proper 64 bit support of arrays longer than 2**32, re-order the new ops at the end if merging to 5.10.x. p4raw-id: //depot/perl@32680
* Fix an off by one error, found by valgrindRafael Garcia-Suarez2007-10-241-1/+1
| | | p4raw-id: //depot/perl@32183
* Fix a few segfaults and a when() bugjosh2007-10-171-0/+5
| | | | | | From: "josh" <twists@gmail.com> Message-ID: <20071015043708.GA10981@grenekatz.org> p4raw-id: //depot/perl@32120
* Perl_ck_smartmatch needs a dVAR too.Nicholas Clark2007-10-161-0/+1
| | | p4raw-id: //depot/perl@32110
* Remove some strlen()s and replace one strlcpy() with memcpy() becauseNicholas Clark2007-10-121-4/+9
| | | | | we already know the string length. p4raw-id: //depot/perl@32105
* newCONTSUB() wasn't thread-safe ([perl #45053])Dave Mitchell2007-10-101-0/+7
| | | p4raw-id: //depot/perl@32091
* Silence a load of "value computed is not used" warningsRafael Garcia-Suarez2007-09-211-1/+2
| | | p4raw-id: //depot/perl@31936