summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-07-01 12:24:28 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-07-01 12:24:28 +0000
commit462e5cf694f345fbf34a1f95e9a82957e59dcc2b (patch)
treeca9bf97cf7ce9e08168a2f31060050ca5073d42c /scope.c
parent3bc5dc61eb7997c904fe06e07f74e776f3ee17eb (diff)
downloadperl-462e5cf694f345fbf34a1f95e9a82957e59dcc2b.tar.gz
Support for op in global register (still buggy)
p4raw-id: //depot/perl@34
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index 50c843d108..01b1fa9f59 100644
--- a/scope.c
+++ b/scope.c
@@ -438,6 +438,15 @@ void* p;
}
void
+save_op()
+{
+ dTHR;
+ SSCHECK(2);
+ SSPUSHPTR(op);
+ SSPUSHINT(SAVEt_OP);
+}
+
+void
leave_scope(base)
I32 base;
{
@@ -636,6 +645,9 @@ I32 base;
stack_sp = stack_base + delta;
}
break;
+ case SAVEt_OP:
+ op = (OP*)SSPOPPTR;
+ break;
default:
croak("panic: leave_scope inconsistency");
}