cvsuser 02/10/10 05:22:32
Modified: . jit2h.pl
lib/Parrot/OpTrans C.pm CGoto.pm
Log:
removing CONST warning
Revision Changes Path
1.25 +5 -4 parrot/jit2h.pl
Index: jit2h.pl
===================================================================
RCS file: /cvs/public/parrot/jit2h.pl,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -w -r1.24 -r1.25
--- jit2h.pl 9 Oct 2002 04:08:13 -0000 1.24
+++ jit2h.pl 10 Oct 2002 12:22:27 -0000 1.25
@@ -2,7 +2,7 @@
#
# jit2h.pl
#
-# $Id: jit2h.pl,v 1.24 2002/10/09 04:08:13 sfink Exp $
+# $Id: jit2h.pl,v 1.25 2002/10/10 12:22:27 leo Exp $
#
use strict;
@@ -95,6 +95,7 @@
#define JIT_EMIT 1
#include"parrot/jit_emit.h"
+#undef CONST
#define IREG(i) interpreter->ctx.int_reg.registers[jit_info->cur_op[i]]
#define NREG(i) interpreter->ctx.num_reg.registers[jit_info->cur_op[i]]
#define PREG(i) interpreter->ctx.pmc_reg.registers[jit_info->cur_op[i]]
1.15 +3 -2 parrot/lib/Parrot/OpTrans/C.pm
Index: C.pm
===================================================================
RCS file: /cvs/public/parrot/lib/Parrot/OpTrans/C.pm,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -w -r1.14 -r1.15
--- C.pm 9 Oct 2002 04:08:16 -0000 1.14
+++ C.pm 10 Oct 2002 12:22:31 -0000 1.15
@@ -1,7 +1,7 @@
#
# C.pm
#
-# $Id: C.pm,v 1.14 2002/10/09 04:08:16 sfink Exp $
+# $Id: C.pm,v 1.15 2002/10/10 12:22:31 leo Exp $
#
use strict;
@@ -21,6 +21,7 @@
sub defines
{
return <<END;
+#undef CONST
#define REL_PC ((size_t)(cur_opcode - interpreter->code->byte_code))
#define CUR_OPCODE cur_opcode
#define IREG(i) interpreter->ctx.int_reg.registers[cur_opcode[i]]
1.16 +3 -2 parrot/lib/Parrot/OpTrans/CGoto.pm
Index: CGoto.pm
===================================================================
RCS file: /cvs/public/parrot/lib/Parrot/OpTrans/CGoto.pm,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -w -r1.15 -r1.16
--- CGoto.pm 9 Oct 2002 04:08:16 -0000 1.15
+++ CGoto.pm 10 Oct 2002 12:22:31 -0000 1.16
@@ -1,7 +1,7 @@
#
# CGoto.pm
#
-# $Id: CGoto.pm,v 1.15 2002/10/09 04:08:16 sfink Exp $
+# $Id: CGoto.pm,v 1.16 2002/10/10 12:22:31 leo Exp $
#
use strict;
@@ -16,6 +16,7 @@
sub defines
{
return <<END;
+#undef CONST
#define REL_PC ((size_t)(cur_opcode - interpreter->code->byte_code))
#define CUR_OPCODE cur_opcode
#define IREG(i) interpreter->ctx.int_reg.registers[cur_opcode[i]]