ruby-changes:13624
From: nobu <ko1@a...>
Date: Tue, 20 Oct 2009 15:38:19 +0900 (JST)
Subject: [ruby-changes:13624] Ruby:r25407 (trunk): * parse.y (ripper_intern): enable literal optimization.
nobu 2009-10-20 15:38:03 +0900 (Tue, 20 Oct 2009) New Revision: 25407 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25407 Log: * parse.y (ripper_intern): enable literal optimization. Modified files: trunk/ChangeLog trunk/parse.y Index: ChangeLog =================================================================== --- ChangeLog (revision 25406) +++ ChangeLog (revision 25407) @@ -1,5 +1,7 @@ -Tue Oct 20 15:28:49 2009 Nobuyoshi Nakada <nobu@r...> +Tue Oct 20 15:38:02 2009 Nobuyoshi Nakada <nobu@r...> + * 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] Index: parse.y =================================================================== --- parse.y (revision 25406) +++ parse.y (revision 25407) @@ -513,7 +513,7 @@ #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 @@ return ID2SYM(rb_intern(name)); } -static VALUE -ripper_intern(const char *s) -{ - return ID2SYM(rb_intern(s)); -} - static ID ripper_get_id(VALUE v) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/