diff options
author | syber <syber@crazypanda.ru> | 2014-11-23 02:30:32 +0300 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-11-23 22:09:27 -0800 |
commit | e3384dcea386322f748cca779e4b8d80c8644024 (patch) | |
tree | a5b2e1b0a1e5eee4f66bc2ff8b30b2c11ccb0d35 /op.h | |
parent | b55b14d0f234ed20e6c2a0b6fd8609fa418cddf3 (diff) | |
download | perl-e3384dcea386322f748cca779e4b8d80c8644024.tar.gz |
op_class_sv removed for threaded perls op_class_targ removed for non-threaded perls
Diffstat (limited to 'op.h')
-rw-r--r-- | op.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -202,8 +202,11 @@ struct methop { OP* op_first; /* optree for method name */ SV* op_meth_sv; /* static method name */ } op_u; - SV* op_class_sv; /* static class name */ +#ifdef USE_ITHREADS PADOFFSET op_class_targ; /* pad index for class name if threaded */ +#else + SV* op_class_sv; /* static class name */ +#endif }; struct pmop { @@ -444,7 +447,7 @@ struct loop { # define cSVOPx_svp(v) (cSVOPx(v)->op_sv \ ? &cSVOPx(v)->op_sv : &PAD_SVl((v)->op_targ)) # define cMETHOPx_class(v) (cMETHOPx(v)->op_class_targ ? \ - PAD_SVl(cMETHOPx(v)->op_class_targ) : cMETHOPx(v)->op_class_sv) + PAD_SVl(cMETHOPx(v)->op_class_targ) : NULL) #else # define cGVOPx_gv(o) ((GV*)cSVOPx(o)->op_sv) # ifndef PERL_CORE |