diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-23 01:02:18 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-23 01:02:18 +0000 |
| commit | 57fb7655357ccd8a0a72cb70f230fa44e743e14d (patch) | |
| tree | f9c83bf95a7873e01e38ff396a8bc5490b61162c /parse.y | |
| parent | 206a6456f7fd9ce4d5ce7c862418d54c19457e18 (diff) | |
| download | ruby-57fb7655357ccd8a0a72cb70f230fa44e743e14d.tar.gz ruby-57fb7655357ccd8a0a72cb70f230fa44e743e14d.tar.xz ruby-57fb7655357ccd8a0a72cb70f230fa44e743e14d.zip | |
* sprintf.c (rb_vsprintf, rb_sprintf): new functions return new String,
using missing/vsnprintf.c. [ruby-dev:26580]
* missing/vsnprintf.c: made the output changeable.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -8904,13 +8904,13 @@ ripper_compile_error(parser, fmt, va_alist) va_dcl #endif { - char buf[BUFSIZ]; + VALUE str; va_list args; va_init_list(args, fmt); - vsnprintf(buf, BUFSIZ, fmt, args); + str = rb_vsprintf(fmt, args); va_end(args); - rb_funcall(parser->value, rb_intern("compile_error"), 1, rb_str_new2(buf)); + rb_funcall(parser->value, rb_intern("compile_error"), 1, str); } static void |
