[svn:parrot] r48604 - in trunk/src: . pmc
jkeenan at svn.parrot.org
jkeenan at svn.parrot.org
Mon Aug 23 00:44:41 UTC 2010
Author: jkeenan
Date: Mon Aug 23 00:44:40 2010
New Revision: 48604
URL: https://trac.parrot.org/parrot/changeset/48604
Log:
[codingstd] Enforce c_parens rule.
Modified:
trunk/src/hash.c
trunk/src/packfile.c
trunk/src/pmc/callcontext.pmc
trunk/src/pmc/lexinfo.pmc
Modified: trunk/src/hash.c
==============================================================================
--- trunk/src/hash.c Mon Aug 23 00:35:23 2010 (r48603)
+++ trunk/src/hash.c Mon Aug 23 00:44:40 2010 (r48604)
@@ -514,8 +514,7 @@
ASSERT_ARGS(parrot_mark_hash_keys)
parrot_hash_iterate(hash,
PARROT_ASSERT(_bucket->key);
- Parrot_gc_mark_PObj_alive(interp, (PObj *)_bucket->key);
- );
+ Parrot_gc_mark_PObj_alive(interp, (PObj *)_bucket->key););
}
@@ -535,8 +534,7 @@
ASSERT_ARGS(parrot_mark_hash_values)
parrot_hash_iterate(hash,
PARROT_ASSERT(_bucket->value);
- Parrot_gc_mark_PObj_alive(interp, (PObj *)_bucket->value);
- );
+ Parrot_gc_mark_PObj_alive(interp, (PObj *)_bucket->value););
}
@@ -558,8 +556,7 @@
PARROT_ASSERT(_bucket->key);
Parrot_gc_mark_PObj_alive(interp, (PObj *)_bucket->key);
PARROT_ASSERT(_bucket->value);
- Parrot_gc_mark_PObj_alive(interp, (PObj *)_bucket->value);
- );
+ Parrot_gc_mark_PObj_alive(interp, (PObj *)_bucket->value););
}
/*
@@ -709,8 +706,7 @@
Parrot_ex_throw_from_c_args(interp, NULL, 1,
"unimplemented value type");
break;
- }
- );
+ });
}
@@ -1085,8 +1081,7 @@
ASSERT_ARGS(parrot_chash_destroy)
parrot_hash_iterate(hash,
mem_gc_free(interp, _bucket->key);
- mem_gc_free(interp, _bucket->value);
- );
+ mem_gc_free(interp, _bucket->value););
parrot_hash_destroy(interp, hash);
}
@@ -1459,8 +1454,7 @@
"hash corruption: type = %d\n", hash->entry_type);
};
if (key)
- parrot_hash_put(interp, dest, key, valtmp);
- );
+ parrot_hash_put(interp, dest, key, valtmp););
}
/*
Modified: trunk/src/packfile.c
==============================================================================
--- trunk/src/packfile.c Mon Aug 23 00:35:23 2010 (r48603)
+++ trunk/src/packfile.c Mon Aug 23 00:44:40 2010 (r48604)
@@ -3475,8 +3475,7 @@
PackFile_ConstTable * const table = (PackFile_ConstTable *)_bucket->key;
PackFile_Constant * const orig_consts = table->constants;
PackFile_Constant * const consts = (PackFile_Constant *) _bucket->value;
- mem_gc_free(interp, consts);
- );
+ mem_gc_free(interp, consts););
parrot_hash_destroy(interp, hash);
}
Modified: trunk/src/pmc/callcontext.pmc
==============================================================================
--- trunk/src/pmc/callcontext.pmc Mon Aug 23 00:35:23 2010 (r48603)
+++ trunk/src/pmc/callcontext.pmc Mon Aug 23 00:44:40 2010 (r48604)
@@ -470,8 +470,7 @@
ASSERT_ARGS(mark_hash)
parrot_hash_iterate(h,
Parrot_gc_mark_STRING_alive(interp, (STRING *)_bucket->key);
- mark_cell(interp, (Pcc_cell *)_bucket->value);
- );
+ mark_cell(interp, (Pcc_cell *)_bucket->value););
}
/*
@@ -496,8 +495,7 @@
UINTVAL j = 0;
PMC *result = Parrot_pmc_new_init_int(interp, enum_class_FixedStringArray, hash->entries);
parrot_hash_iterate(hash,
- VTABLE_set_string_keyed_int(interp, result, j++, (STRING *)_bucket->key);
- );
+ VTABLE_set_string_keyed_int(interp, result, j++, (STRING *)_bucket->key););
return result;
}
@@ -688,8 +686,7 @@
if (hash) {
parrot_hash_iterate(hash,
- FREE_CELL(INTERP, (Pcc_cell *)_bucket->value);
- );
+ FREE_CELL(INTERP, (Pcc_cell *)_bucket->value););
parrot_hash_destroy(INTERP, hash);
SET_ATTR_hash(INTERP, SELF, NULL);
}
@@ -718,8 +715,7 @@
if (hash) {
parrot_hash_iterate(hash,
- FREE_CELL(INTERP, (Pcc_cell *)_bucket->value);
- );
+ FREE_CELL(INTERP, (Pcc_cell *)_bucket->value););
parrot_hash_destroy(INTERP, hash);
}
Modified: trunk/src/pmc/lexinfo.pmc
==============================================================================
--- trunk/src/pmc/lexinfo.pmc Mon Aug 23 00:35:23 2010 (r48603)
+++ trunk/src/pmc/lexinfo.pmc Mon Aug 23 00:44:40 2010 (r48604)
@@ -102,8 +102,7 @@
parrot_hash_iterate(hash,
PARROT_ASSERT(_bucket->key);
- VTABLE_push_string(INTERP, result, (STRING *)_bucket->key);
- );
+ VTABLE_push_string(INTERP, result, (STRING *)_bucket->key););
return result;
}
More information about the parrot-commits
mailing list