summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-20 21:05:26 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-20 21:05:26 +0000
commit8e6639977ceec4416fe89fd83cf666f06787f259 (patch)
tree412ea4db23f6e3eebb4e39908fbdd6d63d9673ba /cop.h
parenta61a7064557baa67e0ffb901e9b818027edd3eb7 (diff)
downloadperl-8e6639977ceec4416fe89fd83cf666f06787f259.tar.gz
Move retop first in structs block_sub, block_format and block_eval.
This simplifies some code in Perl_deb_stack_all(). p4raw-id: //depot/perl@33016
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/cop.h b/cop.h
index f8b32f8d6b..209ee2a1cb 100644
--- a/cop.h
+++ b/cop.h
@@ -279,8 +279,9 @@ struct cop {
/* subroutine context */
struct block_sub {
- CV * cv;
OP * retop; /* op to execute on exit from sub */
+ /* Above here is the same for sub, format and eval. */
+ CV * cv;
U8 hasargs;
U8 lval; /* XXX merge lval and hasargs? */
/* Above here is the same for sub and format. */
@@ -293,8 +294,9 @@ struct block_sub {
/* format context */
struct block_format {
- CV * cv;
OP * retop; /* op to execute on exit from sub */
+ /* Above here is the same for sub, format and eval. */
+ CV * cv;
U8 hasargs;
U8 lval; /* XXX merge lval and hasargs? */
/* Above here is the same for sub and format. */
@@ -394,13 +396,14 @@ struct block_format {
/* eval context */
struct block_eval {
+ OP * retop; /* op to execute on exit from eval */
+ /* Above here is the same for sub, format and eval. */
U8 old_in_eval;
U16 old_op_type;
SV * old_namesv;
OP * old_eval_root;
SV * cur_text;
CV * cv;
- OP * retop; /* op to execute on exit from eval */
JMPENV * cur_top_env; /* value of PL_top_env when eval CX created */
};