diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2001-03-14 07:01:29 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2001-03-14 07:01:29 +0000 |
commit | 9a135c90b92a02e2daa86f93310af425135463f4 (patch) | |
tree | f827ea54a94fcdcd6ec684a8fb23109327b1ed83 /op.h | |
parent | f06c8e5ba202f1bd58e7b5728b75fa5fa0032675 (diff) | |
download | perl-9a135c90b92a02e2daa86f93310af425135463f4.tar.gz |
reenable change#9145 (the test was busted due to a missing
C<print "ok 27\n">)
p4raw-link: @9145 on //depot/perl: 4af0bda917eceeead6e59e5dc7c6b28fce055a0a
p4raw-id: //depot/perl@9151
Diffstat (limited to 'op.h')
-rw-r--r-- | op.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -242,6 +242,11 @@ struct pmop { U16 op_pmflags; U16 op_pmpermflags; U8 op_pmdynflags; +#ifdef USE_ITHREADS + char * op_pmstashpv; +#else + HV * op_pmstash; +#endif }; #define PMdf_USED 0x01 /* pm has been used once already */ @@ -271,6 +276,20 @@ struct pmop { /* mask of bits stored in regexp->reganch */ #define PMf_COMPILETIME (PMf_MULTILINE|PMf_SINGLELINE|PMf_LOCALE|PMf_FOLD|PMf_EXTENDED) +#ifdef USE_ITHREADS +# define PmopSTASHPV(o) ((o)->op_pmstashpv) +# define PmopSTASHPV_set(o,pv) ((o)->op_pmstashpv = ((pv) ? savepv(pv) : Nullch)) +# define PmopSTASH(o) (PmopSTASHPV(o) \ + ? gv_stashpv(PmopSTASHPV(o),GV_ADD) : Nullhv) +# define PmopSTASH_set(o,hv) PmopSTASHPV_set(o, (hv) ? HvNAME(hv) : Nullch) +#else +# define PmopSTASH(o) ((o)->op_pmstash) +# define PmopSTASH_set(o,hv) ((o)->op_pmstash = (hv)) +# define PmopSTASHPV(o) (PmopSTASH(o) ? HvNAME(PmopSTASH(o)) : Nullch) + /* op_pmstash is not refcounted */ +# define PmopSTASHPV_set(o,pv) PmopSTASH_set((o), gv_stashpv(pv,GV_ADD)) +#endif + struct svop { BASEOP SV * op_sv; |