summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-21 09:22:42 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-21 09:22:42 +0000
commita5c91a3811fa80214a6cce5b8b5ba2e5e1642423 (patch)
treed5f29bbe4246e8e7685a6204e62ee5920cdbb326
parent8e7362ac37c759ba1b65f717f63c6e73af777569 (diff)
* st.c (numberof): unused. internal.h has same macro.
* node.c (F_CUSTOM2): unused. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--node.c3
-rw-r--r--st.c2
3 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index b368256..39a5ec7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sun Sep 21 18:14:03 2014 Narihiro Nakamura <authornari@gmail.com>
+
+ * st.c (numberof): unused. internal.h has same macro.
+
+ * node.c (F_CUSTOM2): unused.
+
Sun Sep 21 14:11:23 2014 Tanaka Akira <akr@fsij.org>
* thread_pthread.c (native_set_thread_name): New function to
diff --git a/node.c b/node.c
index cf334e3..32518d3 100644
--- a/node.c
+++ b/node.c
@@ -49,9 +49,6 @@
#define F_LIT(name, ann) SIMPLE_FIELD(#name, #name " (" ann ")", A_LIT(node->name))
#define F_MSG(name, ann, desc) SIMPLE_FIELD(#name, #name " (" ann ")", A(desc))
-#define F_CUSTOM2(name, ann, block) \
- COMPOUND_FIELD(#name, #name " (" ann ")", block)
-
#define F_NODE(name, ann) \
COMPOUND_FIELD(#name, #name " (" ann ")", dump_node(buf, indent, comment, node->name))
diff --git a/st.c b/st.c
index 9f21a96..15ae694 100644
--- a/st.c
+++ b/st.c
@@ -83,8 +83,6 @@ static void rehash(st_table *);
#define free(x) xfree(x)
#endif
-#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
-
#define EQUAL(table,x,y) ((x)==(y) || (*(table)->type->compare)((x),(y)) == 0)
#define do_hash(key,table) (st_index_t)(*(table)->type->hash)((key))