[ruby-cvs:64536] nobu:r57370 (trunk): Change Kernel#warn to call Warning.warn

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Jan 19 15:25:06 JST 2017


nobu	2017-01-19 15:25:06 +0900 (Thu, 19 Jan 2017)

  New Revision: 57370

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

  Log:
    Change Kernel#warn to call Warning.warn
    
    This allows Warning.warn to filter/process warning messages
    generated by Kernel#warn.  Currently, Warning.warn can only handle
    messages generated by the rb_warn/rb_warning C functions.
    
    The Kernel#warn API is different than the Warning.warn API, this
    tries to get similar behavior, but there are probably corner cases
    where the behavior is different.
    
    This makes str_end_with_asciichar in io.c no longer static so it
    can be called from error.c.
    
    [Feature #12944]
    Author:    Jeremy Evans <code at jeremyevans.net>

  Modified files:
    trunk/error.c
    trunk/io.c


More information about the ruby-cvs mailing list