Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

codingstd fixes

  • Loading branch information...
commit f55a488913abbcff30a170f95a21114b20703983 1 parent 65bd320
@Benabik Benabik authored
View
2  PBC_COMPAT
@@ -28,7 +28,7 @@
# please insert tab separated entries at the top of the list
-12.0 2011.10.18 dukeleto released 3.9.0
+12.0 2011.10.18 dukeleto released 3.9.0
11.0 2011.07.19 jkeenan released 3.6.0
10.0 2011.01.18 cotto released 3.0.0
9.0 2010.10.19 gerd released 2.9.0
View
6 src/hash.c
@@ -1501,7 +1501,8 @@ Parrot_hash_update(PARROT_INTERP, ARGMOD(Hash *hash), ARGIN(Hash *other))
ASSERT_ARGS(Parrot_hash_update)
if (hash->key_type == other->key_type && hash->entry_type == other->entry_type) {
parrot_hash_iterate(other, Parrot_hash_put(interp, hash, _bucket->key, _bucket->value););
- } else {
+ }
+ else {
parrot_hash_iterate(other,
void *key = _bucket->key;
void *value = _bucket->value;
@@ -1541,8 +1542,7 @@ Parrot_hash_update(PARROT_INTERP, ARGMOD(Hash *hash), ARGIN(Hash *other))
break;
}
}
- Parrot_hash_put(interp, hash, key, value);
- );
+ Parrot_hash_put(interp, hash, key, value););
}
}
View
4 src/pmc/fixedfloatarray.pmc
@@ -514,7 +514,7 @@ Reverse the contents of the array.
METHOD reverse() {
INTVAL n;
- GET_ATTR_size(INTERP, SELF, n);
+ GET_ATTR_size(INTERP, SELF, n);
if (n > 1) {
FLOATVAL val;
FLOATVAL *data;
@@ -527,7 +527,7 @@ Reverse the contents of the array.
data[n] = val;
}
}
- }
+ }
}
View
2  src/pmc/fixedintegerarray.pmc
@@ -676,7 +676,7 @@ Reverse the contents of the array.
data[n] = val;
}
}
- }
+ }
}
View
2  src/pmc/fixedpmcarray.pmc
@@ -79,7 +79,7 @@ Reverse the contents of the array.
*/
METHOD reverse() {
- INTVAL n = SELF.elements();
+ INTVAL n = SELF.elements();
if (n > 1) {
PMC *val;
PMC **data = PMC_array(SELF);
View
6 src/pmc/hash.pmc
@@ -1229,8 +1229,10 @@ entries with the same key.
METHOD update(PMC *other) {
if (other->vtable->base_type == SELF->vtable->base_type
|| other->vtable->base_type == enum_class_Hash) {
- Parrot_hash_update(INTERP, (Hash *)SELF.get_pointer(), (Hash *)VTABLE_get_pointer(INTERP, other));
- } else {
+ Parrot_hash_update(INTERP, (Hash *)SELF.get_pointer(),
+ (Hash *)VTABLE_get_pointer(INTERP, other));
+ }
+ else {
Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_UNIMPLEMENTED,
"Hash: don't know how to update from a non-Hash type");
}
Please sign in to comment.
Something went wrong with that request. Please try again.