From d83304a6cd8e8cdac64c350af4e33f1e7d3141d8 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 20 Oct 2009 06:38:03 +0000 Subject: * parse.y (ripper_intern): enable literal optimization. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index c86413221..0d5c172c4 100644 --- a/parse.y +++ b/parse.y @@ -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) { -- cgit