diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-04-02 10:08:04 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-04-02 10:08:04 +0000 |
commit | fc15ae8fb67c31ee845fb33ce00b1c24c4c1a908 (patch) | |
tree | 8306f0557f5c1b6c97046a2464316004f44554d3 /scope.h | |
parent | 2ee88f01016d2541e1f47423d3e348014e311bc8 (diff) | |
download | perl-fc15ae8fb67c31ee845fb33ce00b1c24c4c1a908.tar.gz |
Abstract all the accesses to cop_arybase (apart from ByteLoader)
p4raw-id: //depot/perl@27671
Diffstat (limited to 'scope.h')
-rw-r--r-- | scope.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -49,6 +49,7 @@ #define SAVEt_BOOL 38 #define SAVEt_SET_SVFLAGS 39 #define SAVEt_SAVESWITCHSTACK 40 +#define SAVEt_COP_ARYBASE 41 #ifndef SCOPE_SAVES_SIGNAL_MASK #define SCOPE_SAVES_SIGNAL_MASK 0 @@ -180,6 +181,15 @@ Closing bracket on a callback. See C<ENTER> and L<perlcall>. PL_curstackinfo->si_stack = (t); \ } STMT_END +#define SAVECOPARYBASE(c) \ + STMT_START { \ + SSCHECK(3); \ + SSPUSHINT(CopARYBASE_get(c)); \ + SSPUSHPTR(c); \ + SSPUSHINT(SAVEt_COP_ARYBASE); \ + } STMT_END + + #ifdef USE_ITHREADS # define SAVECOPSTASH(c) SAVEPPTR(CopSTASHPV(c)) # define SAVECOPSTASH_FREE(c) SAVESHAREDPV(CopSTASHPV(c)) |