[svn:parrot] r40865 - branches/context_pmc3/src

bacek at svn.parrot.org bacek at svn.parrot.org
Sun Aug 30 11:14:59 UTC 2009


Author: bacek
Date: Sun Aug 30 11:14:59 2009
New Revision: 40865
URL: https://trac.parrot.org/parrot/changeset/40865

Log:
Use Parrot_pcc_flags functions instead of poking into struct directly.

Modified:
   branches/context_pmc3/src/embed.c

Modified: branches/context_pmc3/src/embed.c
==============================================================================
--- branches/context_pmc3/src/embed.c	Sun Aug 30 11:14:37 2009	(r40864)
+++ branches/context_pmc3/src/embed.c	Sun Aug 30 11:14:59 2009	(r40865)
@@ -234,7 +234,7 @@
 void
 Parrot_set_trace(PARROT_INTERP, UINTVAL flag)
 {
-    CURRENT_CONTEXT_FIELD(interp, trace_flags) |= flag;
+    Parrot_pcc_trace_flags_on(interp, interp->ctx, flag);
     Interp_core_SET(interp, PARROT_SLOW_CORE);
 }
 
@@ -289,7 +289,7 @@
 void
 Parrot_clear_trace(PARROT_INTERP, UINTVAL flag)
 {
-    CURRENT_CONTEXT_FIELD(interp, trace_flags) &= ~flag;
+    Parrot_pcc_trace_flags_off(interp, interp->ctx, flag);
 }
 
 
@@ -343,7 +343,7 @@
 UINTVAL
 Parrot_test_trace(PARROT_INTERP, UINTVAL flag)
 {
-    return CURRENT_CONTEXT_FIELD(interp, trace_flags) & flag;
+    return Parrot_pcc_trace_flags_test(interp, interp->ctx, flag);
 }
 
 


More information about the parrot-commits mailing list