summaryrefslogtreecommitdiff
path: root/cop.h
Commit message (Collapse)AuthorAgeFilesLines
* assert() that SvPV_set() isn't used on arrays.Nicholas Clark2006-11-061-1/+1
| | | p4raw-id: //depot/perl@29221
* Fix change 28770 to cope with the strange 32 bit bool type on VMS.Nicholas Clark2006-10-161-2/+3
| | | | | | (I should have seen this one coming - the two structures weren't textually identical) p4raw-id: //depot/perl@29024
* Some notes about struct block_loopNicholas Clark2006-09-171-0/+17
| | | p4raw-id: //depot/perl@28859
* Store a pointer to the op in struct block_loop, rather than the Nicholas Clark2006-09-171-6/+14
| | | | | | | 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
* Shrink the interpreter structure by 4 bytes (usually) by makingNicholas Clark2006-09-161-2/+2
| | | | | | PL_in_eval a U8 and PL_delaymagic a U16. (And corresponding changes in struct block_eval in cop.h to avoid any possible compiler warnings) p4raw-id: //depot/perl@28855
* Revert changes 28772, 28773, 28774 as they won't gain us anything - INicholas Clark2006-09-161-17/+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
* Merge lval and hasargs into one U8 in struct block_subNicholas Clark2006-09-011-8/+9
| | | p4raw-id: //depot/perl@28774
* Access to cx->blk_sub.lval via macros (as it's about to move).Nicholas Clark2006-09-011-6/+11
| | | p4raw-id: //depot/perl@28773
* Access cx->blk_sub.hasargs via a pair of macros (as it's about toNicholas Clark2006-09-011-3/+6
| | | | | move) p4raw-id: //depot/perl@28772
* Save 4 bytes from struct context (on ILP32) by moving cx_type intoNicholas Clark2006-08-311-4/+6
| | | | | struct block and struct subst. p4raw-id: //depot/perl@28770
* Silence a couple of Borland compiler warningsSteve Hay2006-08-011-1/+1
| | | p4raw-id: //depot/perl@28643
* Refactoring in av.cAndy Lester2006-05-241-1/+1
| | | | | Message-ID: <20060524051640.GA4713@petdance.com> p4raw-id: //depot/perl@28296
* Abolish cop_io (the simple way) by storing the value in cop_hints_hash.Nicholas Clark2006-05-201-1/+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-5/+5
| | | | | | 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-5/+5
| | | p4raw-id: //depot/perl@28252
* [perl #32332] Perl segfaults; test case availableDave Mitchell2006-05-201-2/+4
| | | | | sub f { s/$var/f()/e } could free the wrong RE p4raw-id: //depot/perl@28251
* Abolish cop_arybase. Signal a non zero $[ with a hint flag, and storeNicholas Clark2006-05-201-5/+20
| | | | | the value in the hints structure used for %^H. p4raw-id: //depot/perl@28250
* Some more SvREFCNT_inc updatesAndy Lester2006-05-021-2/+2
| | | | | Message-ID: <20060430182414.GA18094@petdance.com> p4raw-id: //depot/perl@28049
* more -ansi -pedantic cleanlinessJarkko Hietaniemi2006-04-291-2/+2
| | | | | Message-ID: <44532024.9070303@gmail.com> p4raw-id: //depot/perl@28010
* Change cop_warnings from an SV holding the warnings bitmask to aNicholas Clark2006-04-121-1/+2
| | | | | | | 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
* Abstract all reads/writes of the hints in COPs with 2 new macros,Nicholas Clark2006-04-021-0/+7
| | | | | CopHINTS_get() and CopHINTS_set(). p4raw-id: //depot/perl@27677
* Abstract all the accesses to cop_arybase (apart from ByteLoader)Nicholas Clark2006-04-021-0/+5
| | | p4raw-id: //depot/perl@27671
* Serialise changes to %^H onto the current COP. Return the compile timeNicholas Clark2006-03-311-0/+13
| | | | | | 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-1/+1
| | | | | Message-ID: <20060331054228.GA18940@petdance.com> p4raw-id: //depot/perl@27641
* Merge the cut & paste code from Perl_call_sv/Perl_fold_constants withNicholas Clark2006-03-271-0/+2
| | | | | | | 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
* Speedups and shrinkages of SvREFCNT_incAndy Lester2006-02-271-3/+3
| | | | | Message-ID: <20060224205434.GA17867@petdance.com> p4raw-id: //depot/perl@27334
* PVFMs don't need CvDEPTH, and PVCVs don't use SvIVX, so movingNicholas Clark2006-02-201-1/+1
| | | | | | | | | xcv_depth into the IV union saves 4(ish) bytes per CV and format. "ish" because it was a long, but has been changed to I32 (along with the corresponding field in struct block_sub) so as not to enlarge the IV union on platforms where sizeof(long) > sizeof(IV), or struct block_sub where sizeof(long) > sizeof(I32) p4raw-id: //depot/perl@27247
* More NullXXX macro removal from Andy LesterRafael Garcia-Suarez2006-02-201-1/+1
| | | p4raw-id: //depot/perl@27238
* Trying my "remove the pTHXes" patch againAndy Lester2006-02-091-5/+3
| | | | | Message-ID: <20060209154018.GA14610@petdance.com> p4raw-id: //depot/perl@27136
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-9/+9
| | | | | | 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-1/+1
| | | | | | 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-5/+5
| | | | | Message-ID: <20060202093849.GD12591@accognoscere.homeunix.org> p4raw-id: //depot/perl@27054
* More copyright updatesRafael Garcia-Suarez2006-01-041-1/+1
| | | p4raw-id: //depot/perl@26652
* Fix release mode builds following change 26598Steve Hay2006-01-031-2/+10
| | | p4raw-id: //depot/perl@26608
* silence some compiler warningsDave Mitchell2006-01-031-0/+3
| | | p4raw-id: //depot/perl@26598
* latest switch/say/~~Robin Houston2005-12-191-1/+21
| | | | | Message-Id: <20051217204431.GB28940@rpc142.cs.man.ac.uk> p4raw-id: //depot/perl@26400
* s/Nullhv/NULL/g;Nicholas Clark2005-12-161-1/+1
| | | | | # Although I see that Robin is proposing to add some :-) p4raw-id: //depot/perl@26381
* s/Nullav/NULL/gNicholas Clark2005-12-161-3/+3
| | | p4raw-id: //depot/perl@26380
* Const & local: Special Victims UnitAndy Lester2005-11-111-3/+3
| | | | | Message-ID: <20051111044700.GA24161@petdance.com> p4raw-id: //depot/perl@26082
* Re: [perl #32383] DProf breaks List::Util::shuffleRobin Houston2005-11-091-4/+7
| | | | | Message-ID: <20051108190234.GA25953@rpc142.cs.man.ac.uk> p4raw-id: //depot/perl@26054
* [perl #24254] Attempt to free unreferenced scalar Chris Heath2005-11-071-3/+8
| | | | | | From: "Chris Heath via RT" <perlbug-followup@perl.org> Message-ID: <rt-3.0.11-24254-123984.4.44134155985068@perl.org> p4raw-id: //depot/perl@26027
* sort/multicall patchRobin Houston2005-11-021-0/+66
| | | | | Message-ID: <20051029203307.GA8869@rpc142.cs.man.ac.uk> p4raw-id: //depot/perl@25953
* Etta James presents: More constingAndy Lester2005-10-311-1/+1
| | | | | Message-ID: <20051031054413.GA10767@petdance.com> p4raw-id: //depot/perl@25915
* Re: $^CHILD_ERROR_NATIVE issues (with attachment)Gisle Aas2005-10-041-1/+1
| | | | | Message-ID: <lrd5ml7i8s.fsf@caliper.activestate.com> p4raw-id: //depot/perl@25688
* CopSTASH_eq againAndy Lester2005-06-151-10/+3
| | | | | Message-ID: <20050615044926.GA29087@petdance.com> p4raw-id: //depot/perl@24847
* Replace all uses of HvNAME with the appropriate HvNAME_get orNicholas Clark2005-05-251-5/+5
| | | | | HvNAME_set p4raw-id: //depot/perl@24573
* Goodbye AvFLAGSNicholas Clark2005-05-201-1/+1
| | | p4raw-id: //depot/perl@24518
* Better fix for #8738 (Core dump in 'leavetry')Dave Mitchell2005-05-021-0/+2
| | | | | | | | | | | | | | | | When in an inner runops loop (eg via a tie or sort), an eval needs a new JMPENV pushing by S_docatch. If an exception is raised, control is returned to S_docatch, and it must determine whether the eval that trapped the exception is an inner eval or an outer one. In the former case, restart the loop, in the latter case, rethrow the exception. This is determined by whether we are still at the same PL_curstackinfo level. This fails in the case of SPLICE(), which pushes a new SETJMP and runops level, but not a new stackinfo level. There may be other code which does similar. The solution is to store the current value of PL_top_env in each pushed CxEVAL, and see if it's still the same as PL_top_env when the exception is handled. p4raw-id: //depot/perl@24363
* move the SETJMP exception-handing definitions from scope.h to cop.hDave Mitchell2005-05-021-0/+120
| | | | | so that a JMPENV* entry can be added to struct block_eval p4raw-id: //depot/perl@24361
* Refactoring to Sv*_set() macros - patch #4Steve Peters2005-04-181-1/+1
| | | | | | | Message-ID: <20050416160502.GA26957@mccoy.peters.homeunix.org> plus fix to Perl_rvpv_dup assigning to an RV with SvPVX p4raw-id: //depot/perl@24239