[ruby-cvs:61154] nobu:r53993 (trunk): ruby.c: remove a magic number

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Mar 4 12:53:44 JST 2016


nobu	2016-03-04 12:53:43 +0900 (Fri, 04 Mar 2016)

  New Revision: 53993

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

  Log:
    ruby.c: remove a magic number
    
    * ruby.c (load_file_internal): remove a magic number, which means
      the length of ruby_engine but the value is unknown in this file
      since the variable is in a different file now.  instead, strstr
      should deal with it well, as far as ruby_engine does not contain
      a space and a hyphen.

  Modified files:
    trunk/ruby.c


More information about the ruby-cvs mailing list