diff options
author | Yukihiro Matsumoto <[email protected]> | 1997-12-25 17:06:30 +0900 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2019-08-17 22:09:33 +0900 |
commit | 4207990990f8c8da414710816c32ae5fd0ae6987 (patch) | |
tree | 655a18271e3e85812f7fc6e008400f2f4f795593 /st.c | |
parent | 66541bbb3630a5c512f8012c52ae777ab83beba5 (diff) |
version 1.0-971225v1_0_971225
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-1.0-971225.tar.gz
Thu Dec 25 17:06:30 1997 Yukihiro Matsumoto <[email protected]>
* version 1.0-971225
* some minor bug fixes.
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -32,7 +32,9 @@ static struct st_hash_type type_strhash = { strhash, }; -extern void *xmalloc(); +void *xmalloc(); +void *xcalloc(); +void *xrealloc(); static void rehash(); #define max(a,b) ((a) > (b) ? (a) : (b)) @@ -84,7 +86,7 @@ st_init_strtable() return st_init_table(&type_strhash); } -int +void st_free_table(table) st_table *table; { @@ -175,7 +177,7 @@ st_insert(table, key, value) } } -int +void st_add_direct(table, key, value) st_table *table; char *key; @@ -334,7 +336,6 @@ st_delete_safe(table, key, value, never) char *never; { int hash_val; - st_table_entry *tmp; register st_table_entry *ptr; hash_val = do_hash(*key, table); @@ -367,7 +368,7 @@ st_delete_safe(table, key, value, never) return 0; } -int +void st_foreach(table, func, arg) st_table *table; enum st_retval (*func)(); |