summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorJan Dubois <jand@activestate.com>2008-02-14 03:24:01 -0800
committerSteve Hay <SteveHay@planit.com>2008-02-15 09:19:49 +0000
commit0053d415f506c0bd87de287f5b4d68652d94b7b1 (patch)
tree7b61f8af6e4c89c445e73280038cf25f9881d26b /op.h
parent7a81c58e438e6bb43c3d5758895289c278e96fcd (diff)
downloadperl-0053d415f506c0bd87de287f5b4d68652d94b7b1.tar.gz
Silence compiler warnings on Win32/VC6
Subject: RE: Bit-fields patch causes warnings on Win32/VC6 From: "Jan Dubois" <jand@activestate.com> Message-ID: <002f01c86f3f$27e23ca0$77a6b5e0$@com> p4raw-id: //depot/perl@33315
Diffstat (limited to 'op.h')
-rw-r--r--op.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/op.h b/op.h
index b35e9da6be..b2309888f1 100644
--- a/op.h
+++ b/op.h
@@ -45,6 +45,8 @@
# define MADPROP_IN_BASEOP
#endif
+typedef PERL_BITFIELD16 optype;
+
#ifdef BASEOP_DEFINITION
#define BASEOP BASEOP_DEFINITION
#else
@@ -64,7 +66,10 @@
U8 op_private;
#endif
-/* If op_type:9 is changed to :10, also change PUSHEVAL in cop.h */
+/* If op_type:9 is changed to :10, also change PUSHEVAL in cop.h.
+ Also, if the type of op_type is ever changed (e.g. to PERL_BITFIELD32)
+ then all the other bit-fields before/after it should change their
+ types too to let VC pack them into the same 4 byte integer.*/
#define OP_GIMME(op,dfl) \
(((op)->op_flags & OPf_WANT) == OPf_WANT_VOID ? G_VOID : \