From d20f4eb169796b0bcfda8a91f44a073ac94fef8b Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 19 Dec 2017 12:20:21 +0000 Subject: st.c: fix up * st.c (_st_table_list, _st_table_pool): symbols beginning with an underscore and a lower letter are preserved by the standard. * st.c (get_st_table): protoized. * st.c (st_insert_generic): adjust local variable type to an argument argc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- st.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'st.c') diff --git a/st.c b/st.c index 2ce7a3fbee..d6cac8a679 100644 --- a/st.c +++ b/st.c @@ -126,16 +126,16 @@ #define st_assert(cond) ((void)(0 && (cond))) #endif -typedef struct _st_table_list { +typedef struct st_table_list { st_table table; struct list_node node; } st_table_list; -struct _st_table_pool { +struct st_table_pool { struct list_head head; int length; }; -static struct _st_table_pool st_table_pool; +static struct st_table_pool st_table_pool; #define ST_TABLE_POOL_MAX_LENGTH 500 /* The type of hashes. */ @@ -562,7 +562,7 @@ stat_col(void) #endif static st_table * -get_st_table() +get_st_table(void) { st_table_list *table; @@ -2195,7 +2195,7 @@ st_insert_linear(st_table *tab, long argc, const VALUE *argv, VALUE hash) static void st_insert_generic(st_table *tab, long argc, const VALUE *argv, VALUE hash) { - int i; + long i; /* push elems */ for (i = 0; i < argc; /* */) { -- cgit v1.2.3