summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>1999-06-23 18:27:42 +0100
committerGurusamy Sarathy <gsar@cpan.org>1999-07-23 17:24:42 +0000
commit7399586d384137f7ae66bcc82a83b0df7dd429e5 (patch)
tree0614d50805aadb4a38255926340fe1c5a3bdeff8 /pp_hot.c
parent59af01353dbbede40ae5b5d1b0330b847ffb82dc (diff)
downloadperl-7399586d384137f7ae66bcc82a83b0df7dd429e5.tar.gz
applied suggested patch for tracking line numbers correctly in
optimized blocks with a single statement; changed setcop to setstate and added code for -Dx dumps Message-Id: <199906231627.RAA24033@crypt.compulink.co.uk> Subject: [PATCH 5.005_57] Line number error in optimised else() p4raw-id: //depot/perl@3728
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 81a4f5699f..30b44064ef 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -69,6 +69,12 @@ PP(pp_null)
return NORMAL;
}
+PP(pp_setstate)
+{
+ PL_curcop = (COP*)PL_op;
+ return NORMAL;
+}
+
PP(pp_pushmark)
{
PUSHMARK(PL_stack_sp);