[svn:parrot] r48333 - trunk/src/pmc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Fri Aug 6 21:06:37 UTC 2010
Author: chromatic
Date: Fri Aug 6 21:06:36 2010
New Revision: 48333
URL: https://trac.parrot.org/parrot/changeset/48333
Log:
[PMC] Simplified code slightly.
Modified:
trunk/src/pmc/callcontext.pmc
Modified: trunk/src/pmc/callcontext.pmc
==============================================================================
--- trunk/src/pmc/callcontext.pmc Thu Aug 5 22:26:46 2010 (r48332)
+++ trunk/src/pmc/callcontext.pmc Fri Aug 6 21:06:36 2010 (r48333)
@@ -397,14 +397,13 @@
{
ASSERT_ARGS(get_named_names)
Hash *hash;
- PMC *result = PMCNULL;
GETATTR_CallContext_hash(interp, SELF, hash);
/* yes, this *looks* risky, but it's a Parrot STRING hash internally */
if (hash && hash->entries) {
UINTVAL i, j = 0;
- result = Parrot_pmc_new_init_int(interp, enum_class_FixedStringArray, hash->entries);
+ PMC *result = Parrot_pmc_new_init_int(interp, enum_class_FixedStringArray, hash->entries);
for (i = 0; i <= hash->mask; ++i) {
HashBucket *b = hash->bucket_indices[i];
@@ -415,9 +414,11 @@
b = b->next;
}
}
+
+ return result;
}
- return result;
+ return PMCNULL;
}
#include "parrot/packfile.h"
More information about the parrot-commits
mailing list