[ruby-cvs:54720] normal:r47572 (trunk): simplify some trivial rb_data_type_t callbacks

normal at ruby-lang.org normal at ruby-lang.org
Sat Sep 13 14:14:52 JST 2014


normal	2014-09-13 14:14:51 +0900 (Sat, 13 Sep 2014)

  New Revision: 47572

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

  Log:
    simplify some trivial rb_data_type_t callbacks
    
    * process.c (free_exec_arg): remove
      (memsize_exec_arg): ptr is never NULL
      (exec_arg_data_type): use RUBY_TYPED_DEFAULT_FREE
    
    * variable.c (autoload_i_free): remove
      (autoload_data_i_type): use RUBY_TYPED_DEFAULT_FREE
      (autoload_memsize): ptr is never NULL
    
    * vm_backtrace.c (location_free): remove
      (location_mark): ptr is never NULL
      (location_data_type): use RUBY_TYPED_DEFAULT_FREE
      (backtrace_mark): ditto
      (backtrace_free): ditto

  Modified files:
    trunk/ChangeLog
    trunk/process.c
    trunk/variable.c
    trunk/vm_backtrace.c


More information about the ruby-cvs mailing list