diff options
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | parse.y | 8 |
2 files changed, 4 insertions, 8 deletions
@@ -1,4 +1,6 @@ -Tue Oct 20 15:28:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> +Tue Oct 20 15:38:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * parse.y (ripper_intern): enable literal optimization. * parse.y (method_call): dispatch symbols. a patch from Andy Keep in [ruby-core:26169]. [ruby-core:26165] @@ -513,7 +513,7 @@ static VALUE ripper_dispatch5(struct parser_params*,ID,VALUE,VALUE,VALUE,VALUE,V #define yyparse ripper_yyparse -static VALUE ripper_intern(const char*); +#define ripper_intern(s) ID2SYM(rb_intern(s)) static VALUE ripper_id2sym(ID); #ifdef __GNUC__ #define ripper_id2sym(id) ((id) < 256 && rb_ispunct(id) ? \ @@ -10179,12 +10179,6 @@ ripper_id2sym(ID id) return ID2SYM(rb_intern(name)); } -static VALUE -ripper_intern(const char *s) -{ - return ID2SYM(rb_intern(s)); -} - static ID ripper_get_id(VALUE v) { |
