summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2008-03-26 09:42:06 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-04-14 15:55:28 +0000
commit61a59f30bcebf88ce17229ad2276090c32ad7c1f (patch)
tree8b381c5ec8fb91b2384c42c9823109e40681a1b4
parenta1021d57870f2cf967a704182b47a5defa79a0f1 (diff)
downloadperl-61a59f30bcebf88ce17229ad2276090c32ad7c1f.tar.gz
Re: Solaris build warnings
Message-ID: <Pine.LNX.4.64.0803261337130.22919@fractal.phys.lafayette.edu> Rename the "optype" typedef to "Optype" p4raw-id: //depot/perl@33679
-rw-r--r--op.c4
-rw-r--r--op.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/op.c b/op.c
index 11b29d8e1d..21aa23d942 100644
--- a/op.c
+++ b/op.c
@@ -548,7 +548,7 @@ Perl_op_clear(pTHX_ OP *o)
switch (o->op_type) {
case OP_NULL: /* Was holding old type, if any. */
if (PL_madskills && o->op_targ != OP_NULL) {
- o->op_type = (optype)o->op_targ;
+ o->op_type = (Optype)o->op_targ;
o->op_targ = 0;
goto retry;
}
@@ -5057,7 +5057,7 @@ S_newGIVWHENOP(pTHX_ OP *cond, OP *block,
PERL_ARGS_ASSERT_NEWGIVWHENOP;
NewOp(1101, enterop, 1, LOGOP);
- enterop->op_type = (optype)enter_opcode;
+ enterop->op_type = (Optype)enter_opcode;
enterop->op_ppaddr = PL_ppaddr[enter_opcode];
enterop->op_flags = (U8) OPf_KIDS;
enterop->op_targ = ((entertarg == NOT_IN_PAD) ? 0 : entertarg);
diff --git a/op.h b/op.h
index 4ad2a2bcfc..a5cd625e28 100644
--- a/op.h
+++ b/op.h
@@ -45,7 +45,7 @@
# define MADPROP_IN_BASEOP
#endif
-typedef PERL_BITFIELD16 optype;
+typedef PERL_BITFIELD16 Optype;
#ifdef BASEOP_DEFINITION
#define BASEOP BASEOP_DEFINITION