diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-05 01:06:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-05 01:06:49 +0000 |
commit | 4614a125cca9aa314ecccb34589b69aa762721d6 (patch) | |
tree | a254794a8cd36c4f85f6aca7a555455cecc85203 /st.c | |
parent | e54f12b8d237fd6706b48af8b3f99a17ccfb1481 (diff) | |
download | ruby-4614a125cca9aa314ecccb34589b69aa762721d6.tar.gz ruby-4614a125cca9aa314ecccb34589b69aa762721d6.tar.xz ruby-4614a125cca9aa314ecccb34589b69aa762721d6.zip |
* include/ruby/st.h, st.c (st_init_table, st_init_table_with_size):
constified.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -39,14 +39,14 @@ struct st_table_entry { * */ -static struct st_hash_type type_numhash = { +static const struct st_hash_type type_numhash = { st_numcmp, st_numhash, }; /* extern int strcmp(const char *, const char *); */ static int strhash(const char *); -static struct st_hash_type type_strhash = { +static const struct st_hash_type type_strhash = { strcmp, strhash, }; @@ -145,7 +145,7 @@ stat_col() #endif st_table* -st_init_table_with_size(struct st_hash_type *type, int size) +st_init_table_with_size(const struct st_hash_type *type, int size) { st_table *tbl; @@ -168,7 +168,7 @@ st_init_table_with_size(struct st_hash_type *type, int size) } st_table* -st_init_table(struct st_hash_type *type) +st_init_table(const struct st_hash_type *type) { return st_init_table_with_size(type, 0); } |