[ruby-cvs:55030] normal:r47881 (trunk): compile.c: fix RB_GC_GUARD usage

normal at ruby-lang.org normal at ruby-lang.org
Sat Oct 11 15:34:00 JST 2014


normal	2014-10-11 15:33:58 +0900 (Sat, 11 Oct 2014)

  New Revision: 47881

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

  Log:
    compile.c: fix RB_GC_GUARD usage
    
    * compile.c (iseq_build_from_ary_exception): move RB_GC_GUARD
      (iseq_build_from_ary_body): use PRIsVALUE instead of RB_GC_GUARD
    
    Currently unused functions, but we should set good examples for
    using RB_GC_GUARD (and favoring PRIsVALUE in format strings).

  Modified files:
    trunk/ChangeLog
    trunk/compile.c


More information about the ruby-cvs mailing list