diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-16 08:39:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-16 08:39:48 +0000 |
commit | c8094ff154065f243292a09dce5d4c8d90f8309a (patch) | |
tree | 28ccfd4e07acf80942775e6db9811d41a9595ff0 /ext/readline | |
parent | 24dfe5e749eaa34bc6c1cba15811efbcc0a578f4 (diff) | |
download | ruby-c8094ff154065f243292a09dce5d4c8d90f8309a.tar.gz |
no ID cache in Init functions
Init functions are called only once, cache is useless.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-rw-r--r-- | ext/readline/readline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 5b52422563..10ff0cbacd 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -1996,8 +1996,8 @@ Init_readline(void) readline_s_get_special_prefixes, 0); #if USE_INSERT_IGNORE_ESCAPE - CONST_ID(id_orig_prompt, "orig_prompt"); - CONST_ID(id_last_prompt, "last_prompt"); + id_orig_prompt = rb_intern("orig_prompt"); + id_last_prompt = rb_intern("last_prompt"); #endif history = rb_obj_alloc(rb_cObject); |