From: Andy Dougherty Date: Wed, 26 Mar 2008 13:42:06 +0000 (-0400) Subject: Re: Solaris build warnings X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=61a59f30bcebf88ce17229ad2276090c32ad7c1f;p=p5sagit%2Fp5-mst-13.2.git Re: Solaris build warnings Message-ID: Rename the "optype" typedef to "Optype" p4raw-id: //depot/perl@33679 --- diff --git a/op.c b/op.c index 11b29d8..21aa23d 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 4ad2a2b..a5cd625 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