summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorArtur Bergman <sky@nanisky.com>2001-08-27 18:21:27 +0000
committerArtur Bergman <sky@nanisky.com>2001-08-27 18:21:27 +0000
commit438c221d2a8e6fa132b664b70062215bf9c6ef42 (patch)
treef6bbff6e0ad787fe5163fea9bd63dd33d8e2f49d /opcode.h
parent2ac1ef3d129ac2446fc0d2ea08ecbbd4bd583ff4 (diff)
downloadperl-438c221d2a8e6fa132b664b70062215bf9c6ef42.tar.gz
Regen headers
p4raw-id: //depot/perl@11760
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/opcode.h b/opcode.h
index 28f1345335..a8a0439999 100644
--- a/opcode.h
+++ b/opcode.h
@@ -11,6 +11,16 @@
START_EXTERN_C
+#ifdef PERL_CUSTOM_OPS
+#define OP_NAME(o) (o->op_type == OP_CUSTOM ? custom_op_name(o) : \
+ PL_op_name[o->op_type])
+#define OP_DESC(o) (o->op_type == OP_CUSTOM ? custom_op_desc(o) : \
+ PL_op_desc[o->op_type])
+#else
+#define OP_NAME(o) PL_op_name[o->op_type]
+#define OP_DESC(o) PL_op_desc[o->op_type]
+#endif
+
#ifndef DOINIT
EXT char *PL_op_name[];
#else
@@ -366,6 +376,7 @@ EXT char *PL_op_name[] = {
"threadsv",
"setstate",
"method_named",
+ "custom",
};
#endif
@@ -724,6 +735,7 @@ EXT char *PL_op_desc[] = {
"per-thread value",
"set statement info",
"method with known name",
+ "unknown custom operator",
};
#endif
@@ -1445,6 +1457,7 @@ EXT OP * (CPERLscope(*PL_check)[]) (pTHX_ OP *op) = {
MEMBER_TO_FPTR(Perl_ck_null), /* threadsv */
MEMBER_TO_FPTR(Perl_ck_null), /* setstate */
MEMBER_TO_FPTR(Perl_ck_null), /* method_named */
+ MEMBER_TO_FPTR(Perl_ck_null), /* custom */
};
#endif
@@ -1803,6 +1816,7 @@ EXT U32 PL_opargs[] = {
0x00000044, /* threadsv */
0x00001404, /* setstate */
0x00000c40, /* method_named */
+ 0x00000000, /* custom */
};
#endif