diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2007-01-03 22:17:48 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2007-01-03 22:17:48 +0000 |
commit | 7c197c94dc644853d0512a443fd0e99a5f287ad0 (patch) | |
tree | 1ba6b14de8f6cd9ad2c4814d1c35f491e4b74cad /scope.h | |
parent | 0e4c4423f4f1412e4eeb73b8af7f846ea7b0c4bc (diff) | |
download | perl-7c197c94dc644853d0512a443fd0e99a5f287ad0.tar.gz |
handle cloning of parsers on the save stack
p4raw-id: //depot/perl@29678
Diffstat (limited to 'scope.h')
-rw-r--r-- | scope.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -53,6 +53,7 @@ #define SAVEt_RE_STATE 42 #define SAVEt_COMPILE_WARNINGS 43 #define SAVEt_STACK_CXPOS 44 +#define SAVEt_PARSER 45 #ifndef SCOPE_SAVES_SIGNAL_MASK #define SCOPE_SAVES_SIGNAL_MASK 0 @@ -214,6 +215,13 @@ Closing bracket on a callback. See C<ENTER> and L<perlcall>. SSPUSHINT(SAVEt_STACK_CXPOS); \ } STMT_END +#define SAVEPARSER(p) \ + STMT_START { \ + SSCHECK(2); \ + SSPUSHPTR(p); \ + SSPUSHINT(SAVEt_PARSER); \ + } STMT_END + #ifdef USE_ITHREADS # define SAVECOPSTASH(c) SAVEPPTR(CopSTASHPV(c)) # define SAVECOPSTASH_FREE(c) SAVESHAREDPV(CopSTASHPV(c)) |