ruby-changes:35591
From: nari <ko1@a...>
Date: Sun, 21 Sep 2014 18:22:55 +0900 (JST)
Subject: [ruby-changes:35591] nari:r47673 (trunk): * st.c (numberof): unused. internal.h has same macro.
nari 2014-09-21 18:22:42 +0900 (Sun, 21 Sep 2014) New Revision: 47673 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47673 Log: * st.c (numberof): unused. internal.h has same macro. * node.c (F_CUSTOM2): unused. Modified files: trunk/ChangeLog trunk/node.c trunk/st.c Index: ChangeLog =================================================================== --- ChangeLog (revision 47672) +++ ChangeLog (revision 47673) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Sep 21 18:14:03 2014 Narihiro Nakamura <authornari@g...> + + * st.c (numberof): unused. internal.h has same macro. + + * node.c (F_CUSTOM2): unused. + Sun Sep 21 14:11:23 2014 Tanaka Akira <akr@f...> * thread_pthread.c (native_set_thread_name): New function to Index: st.c =================================================================== --- st.c (revision 47672) +++ st.c (revision 47673) @@ -83,8 +83,6 @@ static void rehash(st_table *); https://github.com/ruby/ruby/blob/trunk/st.c#L83 #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)) Index: node.c =================================================================== --- node.c (revision 47672) +++ node.c (revision 47673) @@ -49,9 +49,6 @@ https://github.com/ruby/ruby/blob/trunk/node.c#L49 #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)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/