[svn:parrot] r41000 - trunk/src/pmc

NotFound at svn.parrot.org NotFound at svn.parrot.org
Sat Sep 5 14:22:04 UTC 2009


Author: NotFound
Date: Sat Sep  5 14:22:02 2009
New Revision: 41000
URL: https://trac.parrot.org/parrot/changeset/41000

Log:
[cage] convert some check for NULL to PMC_IS_NULL

Modified:
   trunk/src/pmc/sub.pmc

Modified: trunk/src/pmc/sub.pmc
==============================================================================
--- trunk/src/pmc/sub.pmc	Sat Sep  5 13:57:39 2009	(r40999)
+++ trunk/src/pmc/sub.pmc	Sat Sep  5 14:22:02 2009	(r41000)
@@ -318,7 +318,7 @@
             VTABLE_set_pointer(INTERP, Parrot_pcc_get_lex_pad(interp, context), context);
         }
 
-        if (sub->outer_ctx) {
+        if (!PMC_IS_NULL(sub->outer_ctx)) {
             /* set outer context */
             Parrot_pcc_set_outer_ctx(interp, context, sub->outer_ctx);
         }
@@ -339,7 +339,7 @@
 
                 PMC_get_sub(INTERP, outer_pmc, outer_sub);
 
-                if (!outer_sub->ctx) {
+                if (PMC_IS_NULL(outer_sub->ctx)) {
                     PMC * const dummy = Parrot_alloc_context(INTERP,
                                                 outer_sub->n_regs_used, NULL);
                     Parrot_pcc_set_sub(interp, dummy, outer_pmc);


More information about the parrot-commits mailing list