summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-05 01:06:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-05 01:06:49 +0000
commitba563e4a410eb8f01709cc2f37a42361f5998311 (patch)
treea254794a8cd36c4f85f6aca7a555455cecc85203 /st.c
parent151d11b5b12b0dc9222e93c8e1c668ccd15d931d (diff)
* include/ruby/st.h, st.c (st_init_table, st_init_table_with_size):
constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/st.c b/st.c
index 880989a..df7b568 100644
--- a/st.c
+++ b/st.c
@@ -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);
}