aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-18 07:08:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-18 07:08:34 +0000
commitc222db530b226a933f14582a9f552b44569be7a3 (patch)
tree56f890881cb81ff85e81c7ab36cb12027ebfed0e /error.c
parentd2a4f22aa26d052a7fe746e6a52fd992dc84ed51 (diff)
downloadruby-c222db530b226a933f14582a9f552b44569be7a3.tar.gz
error.c: compile_vsprintf
* error.c (compile_vsprintf): rename compile_snprintf, following the argument changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/error.c b/error.c
index f5832694ea..f4b359f77d 100644
--- a/error.c
+++ b/error.c
@@ -80,7 +80,7 @@ err_position_0(char *buf, long len, const char *file, int line)
}
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 line, const char *fmt, ...)
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 line, const char *fmt, va_list args)
{
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);
}