[ruby-cvs:54152] nobu:r47006 (trunk): get rid of function calls in RSTRING_PTR

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Jul 30 22:46:42 JST 2014


nobu	2014-07-30 22:46:41 +0900 (Wed, 30 Jul 2014)

  New Revision: 47006

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

  Log:
    get rid of function calls in RSTRING_PTR
    
    * process.c (rlimit_resource_type, rlimit_resource_value): get rid
      of function calls in RSTRING_PTR(), as it evaluates the argument
      twice.
    
    * re.c (match_backref_number): ditto.
    
    * signal.c (esignal_init, rb_f_kill, trap_signm): ditto.

  Modified files:
    trunk/process.c
    trunk/re.c
    trunk/signal.c


More information about the ruby-cvs mailing list