mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
602fda25ab
commit
d20f4eb169
1 changed files with 5 additions and 5 deletions
10
st.c
10
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; /* */) {
|
||||
|
|
Loading…
Reference in a new issue