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

particle at svn.parrot.org particle at svn.parrot.org
Fri Jul 17 14:34:11 UTC 2009


Author: particle
Date: Fri Jul 17 14:34:11 2009
New Revision: 40136
URL: https://trac.parrot.org/parrot/changeset/40136

Log:
[cage] use best practice for pmc null comparison, fix whitespace for '=' alignment

Modified:
   trunk/src/pmc/hash.pmc

Modified: trunk/src/pmc/hash.pmc
==============================================================================
--- trunk/src/pmc/hash.pmc	Fri Jul 17 14:22:05 2009	(r40135)
+++ trunk/src/pmc/hash.pmc	Fri Jul 17 14:34:11 2009	(r40136)
@@ -1025,7 +1025,7 @@
         Hash   * const hash    = (Hash *)SELF.get_pointer();
         void   * const keystr  = hash_key_from_pmc(INTERP, hash, key);
         PMC    * const nextkey = key_next(INTERP, key);
-        PMC    *box = PMCNULL;
+        PMC    *box            = PMCNULL;
         HashBucket *b;
 
 
@@ -1041,7 +1041,7 @@
             box = hash_value_to_pmc(INTERP, hash, b->value);
 
         /* autovivify an Hash */
-        if (PMCNULL == box)
+        if (PMC_IS_NULL(box))
             box = pmc_new(INTERP, SELF.type());
 
         VTABLE_set_number_keyed(INTERP, box, nextkey, value);


More information about the parrot-commits mailing list