diff options
author | Jan Dubois <jand@activestate.com> | 2008-02-14 03:24:01 -0800 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2008-02-15 09:19:49 +0000 |
commit | 0053d415f506c0bd87de287f5b4d68652d94b7b1 (patch) | |
tree | 7b61f8af6e4c89c445e73280038cf25f9881d26b /op.h | |
parent | 7a81c58e438e6bb43c3d5758895289c278e96fcd (diff) | |
download | perl-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.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 : \ |