summaryrefslogtreecommitdiff
path: root/id_table.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-12 13:20:21 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-12 13:20:21 (GMT)
commit2c3b813bd32204652a5a167f05792217e896d0a5 (patch)
treec46e70451744b92e122e79ad9b29b32a027be5ce /id_table.c
parent17613125778e1c73d69a339b35e6bd92cb0b7f02 (diff)
id_table.c: prefix first
* id_table.c (IMPL): prepend id_table to the argument before its expansion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'id_table.c')
-rw-r--r--id_table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/id_table.c b/id_table.c
index 2a23dd2..d6c5e26 100644
--- a/id_table.c
+++ b/id_table.c
@@ -1503,9 +1503,9 @@ mix_id_table_foreach_values(struct mix_id_table *tbl, enum rb_id_table_iterator_
#endif /* ID_TABLE_USE_MIX */
/* IMPL(create) will be "hash_id_table_create" and so on */
-#define IMPL2(name, op) name##_id_table##op
+#define IMPL2(name, op) name##_##op
#define IMPL1(name, op) IMPL2(name, op)
-#define IMPL(op) IMPL1(ID_TABLE_NAME, op)
+#define IMPL(op) IMPL1(ID_TABLE_NAME, id_table##op)
struct rb_id_table *rb_id_table_create(size_t size) {return (struct rb_id_table *)IMPL(_create)(size);}
void rb_id_table_free(struct rb_id_table *tbl) { IMPL(_free)((ID_TABLE_IMPL_TYPE *)tbl);}