summaryrefslogtreecommitdiffstats
path: root/regparse.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
commit4614a125cca9aa314ecccb34589b69aa762721d6 (patch)
treea254794a8cd36c4f85f6aca7a555455cecc85203 /regparse.c
parente54f12b8d237fd6706b48af8b3f99a17ccfb1481 (diff)
downloadruby-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 'regparse.c')
-rw-r--r--regparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regparse.c b/regparse.c
index 1d669212d..f924f1dff 100644
--- a/regparse.c
+++ b/regparse.c
@@ -312,7 +312,7 @@ typedef struct {
static int strend_cmp(st_strend_key*, st_strend_key*);
static int strend_hash(st_strend_key*);
-static struct st_hash_type type_strend_hash = {
+static const struct st_hash_type type_strend_hash = {
strend_cmp,
strend_hash,
};
@@ -4736,7 +4736,7 @@ static int type_cclass_hash(type_cclass_key* key)
return val + (val >> 5);
}
-static struct st_hash_type type_type_cclass_hash = {
+static const struct st_hash_type type_type_cclass_hash = {
type_cclass_cmp,
type_cclass_hash,
};