summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-09-14 10:12:33 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-09-14 22:29:46 -0700
commitbb5a0ddc2479daec4187d55d77d2e37d4aad78bb (patch)
tree7aebde2f918291c90faba2dea71016a81cdfd254 /cop.h
parent2f8e87a8913461b1a55ef9ecbf91d7846701cf35 (diff)
downloadperl-bb5a0ddc2479daec4187d55d77d2e37d4aad78bb.tar.gz
cop.h: Remove obsolete comment
623e6609 (2 Apr 2006) added this to cop.h: +/* FIXME NATIVE_HINTS if this is changed from op_private (see perl.h) */ +#define CopHINTS_get(c) ((c)->op_private + 0) +#define CopHINTS_set(c, h) STMT_START { \ + (c)->op_private \ + = (U8)((h) & HINT_PRIVATE_MASK); \ + } STMT_END + d5ec2987 (20 May 2006) made this change, ignoring the FIXME: /* FIXME NATIVE_HINTS if this is changed from op_private (see perl.h) */ -#define CopHINTS_get(c) ((c)->op_private + 0) +#define CopHINTS_get(c) ((c)->cop_hints + 0) #define CopHINTS_set(c, h) STMT_START { \ - (c)->op_private \ - = (U8)((h) & HINT_PRIVATE_MASK); \ + (c)->cop_hints = (h); \ } STMT_END There is nothing to be fixed here, as vmsish.h uses ->op_private directly, instead of using the CopHINTS macros. Even having caller return cop_hints instead of op_private doesn’t hurt, as newly-created cops copy the vms hints from PL_hints to op_private. So assigning (caller $n)[8] to $^H will still work.
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/cop.h b/cop.h
index e05c89ec5e..4c7b710595 100644
--- a/cop.h
+++ b/cop.h
@@ -544,7 +544,6 @@ be zero.
/* OutCopFILE() is CopFILE for output (caller, die, warn, etc.) */
#define OutCopFILE(c) CopFILE(c)
-/* FIXME NATIVE_HINTS if this is changed from op_private (see perl.h) */
#define CopHINTS_get(c) ((c)->cop_hints + 0)
#define CopHINTS_set(c, h) STMT_START { \
(c)->cop_hints = (h); \