summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-19 12:20:21 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-19 12:20:21 (GMT)
commitd20f4eb169796b0bcfda8a91f44a073ac94fef8b (patch)
tree8f126490f8162462b44b69b77a044c413b31b0a3 /st.c
parent602fda25abd8122bf14277c442c7d8082458e408 (diff)
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
Diffstat (limited to 'st.c')
-rw-r--r--st.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/st.c b/st.c
index 2ce7a3f..d6cac8a 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; /* */) {