summaryrefslogtreecommitdiff
path: root/op.c
Commit message (Collapse)AuthorAgeFilesLines
* Use %^H instead of $^H for the assertions pragmaRafael Garcia-Suarez2006-09-081-2/+9
| | | p4raw-id: //depot/perl@28808
* Change the generation of {} and [] from 3 ops to 1, and avoid 1 mortalNicholas Clark2006-08-311-4/+4
| | | | | | | on the tempstack, by augmenting pp_anonlist and pp_anonhash to accept OPf_SPECIAL to mean "return a reference to the aggregate" on the stack rather than the aggregate itself. p4raw-id: //depot/perl@28771
* A couple const's and a cast to get Sun CC to compile these files.Steve Peters2006-08-091-1/+1
| | | | | Perl, however, still will not build with the Sun CC. p4raw-id: //depot/perl@28686
* g++ stage 1 reachedJarkko Hietaniemi2006-08-081-39/+25
| | | | | Message-ID: <44D7AA6B.4040802@iki.fi> p4raw-id: //depot/perl@28674
* g++ large patchJarkko Hietaniemi2006-08-071-26/+40
| | | | | Message-ID: <44D2E203.5050201@iki.fi> p4raw-id: //depot/perl@28662
* Clear up most of the VC6 compiler warnings in the following smoke:Steve Hay2006-07-271-1/+1
| | | | | http://www.nntp.perl.org/group/perl.daily-build.reports/39733 p4raw-id: //depot/perl@28626
* Add another volatile modifier to protect against longjmp clobberingRafael Garcia-Suarez2006-07-231-1/+1
| | | p4raw-id: //depot/perl@28606
* Clear up a few more warnings from blead.Steve Peters2006-07-131-1/+1
| | | p4raw-id: //depot/perl@28565
* Fix the implementation of list assignment to state().Rafael Garcia-Suarez2006-07-071-11/+28
| | | p4raw-id: //depot/perl@28499
* Add a new warning, "State variable %s will be reinitialized"Rafael Garcia-Suarez2006-07-061-4/+10
| | | p4raw-id: //depot/perl@28496
* Implement handling of state variables in list assignmentRafael Garcia-Suarez2006-07-051-0/+7
| | | p4raw-id: //depot/perl@28489
* Fix a bug on setting OPpASSIGN_COMMON on a AASSIGN op when the leftRafael Garcia-Suarez2006-07-051-2/+0
| | | | | | side is made out a list declared with our(). In this case OPpLVAL_INTRO isn't set on the left op, so we just remove that check. Add new tests. p4raw-id: //depot/perl@28488
* remove some unnecessary uses of WITH_THRDave Mitchell2006-07-021-4/+4
| | | p4raw-id: //depot/perl@28465
* Proper use of enumsAndy Lester2006-06-121-5/+5
| | | | | Message-ID: <20060612034434.GA21588@petdance.com> p4raw-id: //depot/perl@28381
* Abolish cop_io (the simple way) by storing the value in cop_hints_hash.Nicholas Clark2006-05-201-16/+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
* Move the hints from op_private into cop_hints. This allows all 32 bitsNicholas Clark2006-05-201-1/+1
| | | | | | to be stored. Make B::Concise display the new hints field, and modify B::Deparse to use it. p4raw-id: //depot/perl@28257
* Rename cop_hints to cop_hints_hashNicholas Clark2006-05-201-8/+9
| | | p4raw-id: //depot/perl@28252
* Abolish cop_arybase. Signal a non zero $[ with a hint flag, and storeNicholas Clark2006-05-201-1/+2
| | | | | the value in the hints structure used for %^H. p4raw-id: //depot/perl@28250
* disable WARN and DIE hooks during constant foldingDave Mitchell2006-05-101-7/+11
| | | p4raw-id: //depot/perl@28148
* Change 28145 means that Perl_allocmy() can take a const char *name.Nicholas Clark2006-05-091-1/+1
| | | p4raw-id: //depot/perl@28146
* Simplify the non-printable name error reporting code in Perl_allocmy().Nicholas Clark2006-05-091-23/+4
| | | p4raw-id: //depot/perl@28145
* Fix another Coverity problem by adding an assert that says thatRafael Garcia-Suarez2006-05-091-0/+1
| | | | | some string we got from the lexer is null-terminated p4raw-id: //depot/perl@28137
* Fix a logic error in conditional found by CoverityRafael Garcia-Suarez2006-05-091-3/+4
| | | p4raw-id: //depot/perl@28136
* allow exit during fold_constantsDave Mitchell2006-05-091-1/+6
| | | | | eg BEGIN { $SIG{__WARN__} = sub{exit};} "a" == "b" p4raw-id: //depot/perl@28135
* Introduce a new keyword, state, for state variables.Rafael Garcia-Suarez2006-05-031-5/+20
| | | p4raw-id: //depot/perl@28086
* Remove an unnecessary gotoAndy Lester2006-05-031-9/+8
| | | | | Message-ID: <20060503055430.GA4922@petdance.com> p4raw-id: //depot/perl@28079
* Change 28063 forgot 1 key line - acutally use the correct filenameNicholas Clark2006-05-021-0/+1
| | | | | storage. p4raw-id: //depot/perl@28064
* Fix bug in DynaLoader, which has been passing a filename in dynamicNicholas Clark2006-05-021-8/+48
| | | | | | | storage to newXS() seemingly forever. This involves creating newXS_flags(), with the first flag being "arrange to copy the filename and free it at the right time". p4raw-id: //depot/perl@28063
* reduce gcc -ansi -pedantic noise plus a suggestionJarkko Hietaniemi2006-04-281-12/+12
| | | | | Message-ID: <44527402.8000506@gmail.com> p4raw-id: //depot/perl@28008
* Re: [PATCH] use snprintf/strlcpy/strlcat when usefulJarkko Hietaniemi2006-04-281-3/+7
| | | | | Message-ID: <444E3EFB.8020503@gmail.com> p4raw-id: //depot/perl@27987
* Re: [PATCH] cleanup 212 warnings emitted by gcc-4.2Marcus Holland-Moritz2006-04-261-3/+3
| | | | | Message-ID: <20060424232038.7550f9b6@r2d2> p4raw-id: //depot/perl@27962
* use NOOP macroAndy Lester2006-04-251-6/+6
| | | | | Message-ID: <20060424184451.GA1479@petdance.com> p4raw-id: //depot/perl@27958
* A couple of casts to PADOFFSET.Marcus Holland-Moritz2006-04-241-4/+4
| | | | | | | 2nd patch from : Subject: Re: [PATCH] cleanup 212 warnings emitted by gcc-4.2 Message-ID: <20060423044704.6a383ee8@r2d2> p4raw-id: //depot/perl@27945
* newCONSTSUB needs to be robust in case CopFILE is NULL.Nicholas Clark2006-04-191-2/+2
| | | p4raw-id: //depot/perl@27901
* Avoid temporarily writing over the prototype when reporting an error.Nicholas Clark2006-04-191-8/+6
| | | | | (And beef up the relevant tests to really check that it all works). p4raw-id: //depot/perl@27898
* Calling cv_undef() on the CV created by newCONSTSUB() would leak likeNicholas Clark2006-04-191-13/+40
| | | | | | | | | | a Jumblie's preferred maritime craft. To free CvFILE for this case, take advantage of the 0 length prototype that will also be there, and hang it from the prototype. To do this properly means changing code to actually pay attention to SvCUR() on prototypes. It turns out that we always know the length of the prototype string, so this may be faster. Certainly, it's a memory saving (even ignoring the leak). p4raw-id: //depot/perl@27896
* Add assertions to cover cases where the Coverity scanner thinks weNicholas Clark2006-04-171-0/+3
| | | | | | could are deferencing a NULL pointer, but we think it missed something it should have been capable of figuring out. p4raw-id: //depot/perl@27867
* op.c patch, 2nd versionAndy Lester2006-04-161-70/+73
| | | | | | Message-ID: <20060415042924.GA1786@petdance.com> Date: Fri, 14 Apr 2006 23:29:24 -0500 p4raw-id: //depot/perl@27850
* Change SAVECOPWARNINGS(c) to SAVECOMPILEWARNINGS() - it's only used toNicholas Clark2006-04-141-1/+1
| | | | | | | save the warnings on PL_compiling, so constraining its use to what we can test seems to make sense. Particularly as testing Perl_ss_dup is tricky. p4raw-id: //depot/perl@27805
* Change cop_warnings from an SV holding the warnings bitmask to aNicholas Clark2006-04-121-11/+5
| | | | | | | directly (shared) malloc()ed buffer holding the warnings bitmask. This avoids bugs/crashes when the interpreter that created an optree is freed but the optree remains in use by other interpreters. p4raw-id: //depot/perl@27779
* As OPs are shared between threads, they should be usingNicholas Clark2006-04-121-1/+1
| | | | | PerlMemShared_*alloc functions, rather than per-thread *alloc()s. p4raw-id: //depot/perl@27773
* First stab at using the pad to store the serialised hints data.Nicholas Clark2006-04-111-0/+2
| | | | | | This approach is almost certainly not only wrong, but also doomed. But it's needed to build a correct solution. p4raw-id: //depot/perl@27768
* es: quiet some warnings (with a free AIX cpp insanity avoidance tip)Jarkko Hietaniemi2006-04-101-1/+2
| | | | | | Message-ID: <44375F23.6030900@gmail.com> Date: Sat, 08 Apr 2006 09:58:43 +0300 p4raw-id: //depot/perl@27754
* SvREFCNT_inc tweaksAndy Lester2006-04-031-1/+1
| | | | | Message-ID: <20060401080130.GA19372@petdance.com> p4raw-id: //depot/perl@27701
* Re: [perl #38293] chr(65535) should be allowed in regexesSADAHIRO Tomoyuki2006-04-021-6/+7
| | | | | Message-Id: <20060402224657.B942.BQW10602@nifty.com> p4raw-id: //depot/perl@27688
* Abstract all reads/writes of the hints in COPs with 2 new macros,Nicholas Clark2006-04-021-4/+4
| | | | | CopHINTS_get() and CopHINTS_set(). p4raw-id: //depot/perl@27677
* Abstract all the accesses to cop_arybase (apart from ByteLoader)Nicholas Clark2006-04-021-6/+7
| | | p4raw-id: //depot/perl@27671
* Automatically set HINT_LOCALIZE_HH whenever %^H is modified.Nicholas Clark2006-04-011-1/+2
| | | p4raw-id: //depot/perl@27666
* I can't spell.Nicholas Clark2006-03-311-2/+2
| | | p4raw-id: //depot/perl@27645
* Serialise changes to %^H onto the current COP. Return the compile timeNicholas Clark2006-03-311-1/+27
| | | | | | state of %^H as an eleventh value from caller. This allows users to write pragmas. p4raw-id: //depot/perl@27643