[ruby-cvs:62341] naruse:r55178 (trunk): * symbol.c (is_identchar): use ISDIGIT instead of rb_enc_isalnum.

naruse at ruby-lang.org naruse at ruby-lang.org
Fri May 27 01:51:49 JST 2016


naruse	2016-05-27 01:51:49 +0900 (Fri, 27 May 2016)

  New Revision: 55178

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55178

  Log:
    * symbol.c (is_identchar): use ISDIGIT instead of rb_enc_isalnum.
      Though rb_enc_isalnum is encoding aware function, its argument here
      is *m, which is a single byte. Therefore ISDIGIT is faster.
    
    * symbol.c (is_special_global_name): ditto.
    
    * symbol.c (rb_enc_symname_type): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/symbol.c


More information about the ruby-cvs mailing list