ruby-changes:42555
From: nobu <ko1@a...>
Date: Mon, 18 Apr 2016 15:11:56 +0900 (JST)
Subject: [ruby-changes:42555] nobu:r54629 (trunk): error.c: compile_vsprintf
nobu 2016-04-18 16:08:34 +0900 (Mon, 18 Apr 2016) New Revision: 54629 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54629 Log: error.c: compile_vsprintf * error.c (compile_vsprintf): rename compile_snprintf, following the argument changes. Modified files: trunk/error.c Index: error.c =================================================================== --- error.c (revision 54628) +++ error.c (revision 54629) @@ -80,7 +80,7 @@ err_position_0(char *buf, long len, cons https://github.com/ruby/ruby/blob/trunk/error.c#L80 } static VALUE -compile_snprintf(rb_encoding *enc, const char *pre, const char *file, int line, const char *fmt, va_list args) +compile_vsprintf(rb_encoding *enc, const char *pre, const char *file, int line, const char *fmt, va_list args) { VALUE str = rb_enc_str_new(0, 0, enc); @@ -125,7 +125,7 @@ rb_compile_error(const char *file, int l https://github.com/ruby/ruby/blob/trunk/error.c#L125 VALUE rb_error_vsprintf(VALUE file, int line, void *enc, const char *fmt, va_list args) { - return compile_snprintf(enc, NULL, + return compile_vsprintf(enc, NULL, NIL_P(file) ? NULL : RSTRING_PTR(file), line, fmt, args); } @@ -140,7 +140,7 @@ compile_warn_print(const char *file, int https://github.com/ruby/ruby/blob/trunk/error.c#L140 { VALUE str; - str = compile_snprintf(NULL, "warning: ", file, line, fmt, args); + str = compile_vsprintf(NULL, "warning: ", file, line, fmt, args); rb_str_cat2(str, "\n"); rb_write_error_str(str); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/