[svn:parrot] r49240 - branches/typesafe_consttable/include/parrot
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Wed Sep 22 06:37:09 UTC 2010
Author: plobsing
Date: Wed Sep 22 06:37:09 2010
New Revision: 49240
URL: https://trac.parrot.org/parrot/changeset/49240
Log:
fix optimized build
Modified:
branches/typesafe_consttable/include/parrot/context.h
Modified: branches/typesafe_consttable/include/parrot/context.h
==============================================================================
--- branches/typesafe_consttable/include/parrot/context.h Wed Sep 22 06:00:25 2010 (r49239)
+++ branches/typesafe_consttable/include/parrot/context.h Wed Sep 22 06:37:09 2010 (r49240)
@@ -428,9 +428,9 @@
#ifdef NDEBUG
# define Parrot_pcc_get_context_struct(i, c) CONTEXT_STRUCT(c)
-# define Parrot_pcc_get_num_constants(i, c) (CONTEXT_STRUCT(c)->constants)
-# define Parrot_pcc_get_str_constants(i, c) (CONTEXT_STRUCT(c)->constants)
-# define Parrot_pcc_get_pmc_constants(i, c) (CONTEXT_STRUCT(c)->constants)
+# define Parrot_pcc_get_num_constants(i, c) (CONTEXT_STRUCT(c)->num_constants)
+# define Parrot_pcc_get_str_constants(i, c) (CONTEXT_STRUCT(c)->str_constants)
+# define Parrot_pcc_get_pmc_constants(i, c) (CONTEXT_STRUCT(c)->pmc_constants)
# define Parrot_pcc_set_constants(i, c, ct) do { \
CONTEXT_STRUCT(c)->num_constants = (ct)->num.constants; \
CONTEXT_STRUCT(c)->str_constants = (ct)->str.constants; \
@@ -467,9 +467,9 @@
# define Parrot_pcc_get_signature(i, c) (CONTEXT_STRUCT(c)->current_sig)
# define Parrot_pcc_set_signature(i, c, value) (CONTEXT_STRUCT(c)->current_sig = (value))
-# define Parrot_pcc_get_num_constant(i, c, idx) (CONTEXT_STRUCT(c)->constants[(idx)].u.number)
-# define Parrot_pcc_get_string_constant(i, c, idx) (CONTEXT_STRUCT(c)->constants[(idx)].u.string)
-# define Parrot_pcc_get_pmc_constant(i, c, idx) (CONTEXT_STRUCT(c)->constants[(idx)].u.key)
+# define Parrot_pcc_get_num_constant(i, c, idx) (CONTEXT_STRUCT(c)->num_constants[(idx)])
+# define Parrot_pcc_get_string_constant(i, c, idx) (CONTEXT_STRUCT(c)->str_constants[(idx)])
+# define Parrot_pcc_get_pmc_constant(i, c, idx) (CONTEXT_STRUCT(c)->pmc_constants[(idx)])
# define Parrot_pcc_get_recursion_depth(i, c) (CONTEXT_STRUCT(c)->recursion_depth)
# define Parrot_pcc_dec_recursion_depth(i, c) (--CONTEXT_STRUCT(c)->recursion_depth)
More information about the parrot-commits
mailing list