Change 19852 by [EMAIL PROTECTED] on 2003/06/25 19:27:42

        Enhance some macro robustness.

Affected files ...

... //depot/perl/opcode.h#87 edit
... //depot/perl/opcode.pl#105 edit

Differences ...

==== //depot/perl/opcode.h#87 (text+w) ====
Index: perl/opcode.h
--- perl/opcode.h#86~19242~     Wed Apr 16 13:14:01 2003
+++ perl/opcode.h       Wed Jun 25 12:27:42 2003
@@ -21,10 +21,10 @@
 START_EXTERN_C
 
 
-#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])
+#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])
 
 #ifndef DOINIT
 EXT char *PL_op_name[];

==== //depot/perl/opcode.pl#105 (xtext) ====
Index: perl/opcode.pl
--- perl/opcode.pl#104~19242~   Wed Apr 16 13:14:01 2003
+++ perl/opcode.pl      Wed Jun 25 12:27:42 2003
@@ -90,10 +90,10 @@
 START_EXTERN_C
 
 
-#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])
+#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])
 
 #ifndef DOINIT
 EXT char *PL_op_name[];
End of Patch.

Reply via email to