[svn:parrot] r47897 - branches/hash_allocator/src
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Mon Jun 28 11:10:21 UTC 2010
Author: chromatic
Date: Mon Jun 28 11:10:20 2010
New Revision: 47897
URL: https://trac.parrot.org/parrot/changeset/47897
Log:
[hash] Fixed uses of PARROT_DATA_TYPE enum.
Modified:
branches/hash_allocator/src/hash.c
Modified: branches/hash_allocator/src/hash.c
==============================================================================
--- branches/hash_allocator/src/hash.c Mon Jun 28 11:10:17 2010 (r47896)
+++ branches/hash_allocator/src/hash.c Mon Jun 28 11:10:20 2010 (r47897)
@@ -641,22 +641,22 @@
}
switch (entry_type) {
- case enum_hash_int:
+ case enum_type_int:
{
const INTVAL i = VTABLE_shift_integer(interp, info);
- parrot_hash_put(interp, hash, key, (void *)i);
+ (void)parrot_hash_put(interp, hash, key, (void *)i);
break;
}
- case enum_hash_string:
+ case enum_type_STRING:
{
STRING * const s = VTABLE_shift_string(interp, info);
- parrot_hash_put(interp, hash, key, (void *)s);
+ (void)parrot_hash_put(interp, hash, key, (void *)s);
break;
}
- case enum_hash_pmc:
+ case enum_type_PMC:
{
PMC * const p = VTABLE_shift_pmc(interp, info);
- parrot_hash_put(interp, hash, key, (void *)p);
+ (void)parrot_hash_put(interp, hash, key, (void *)p);
break;
}
default:
@@ -730,13 +730,13 @@
}
switch (hash->entry_type) {
- case enum_hash_int:
+ case enum_type_int:
VTABLE_push_integer(interp, info, (INTVAL)b->value);
break;
- case enum_hash_string:
+ case enum_type_STRING:
VTABLE_push_string(interp, info, (STRING *)b->value);
break;
- case enum_hash_pmc:
+ case enum_type_PMC:
VTABLE_push_pmc(interp, info, (PMC *)b->value);
break;
default:
More information about the parrot-commits
mailing list