mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (parser_warning, parser_warn): some error message may
contain format specifiers. a patch from Akinori MUSHA <knu at iDaemons.org>. [ruby-dev:29657] * ext/bigdecimal/bigdecimal.c (VpException): ditto. * ext/dl/handle.c (rb_dlhandle_initialize): ditto. * ext/gdbm/gdbm.c (rb_gdbm_fatal): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6d3ce79dc5
commit
f172c27683
5 changed files with 19 additions and 7 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
Sat Oct 14 23:25:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* parse.y (parser_warning, parser_warn): some error message may
|
||||
contain format specifiers. a patch from Akinori MUSHA <knu at
|
||||
iDaemons.org>. [ruby-dev:29657]
|
||||
|
||||
* ext/bigdecimal/bigdecimal.c (VpException): ditto.
|
||||
|
||||
* ext/dl/handle.c (rb_dlhandle_initialize): ditto.
|
||||
|
||||
* ext/gdbm/gdbm.c (rb_gdbm_fatal): ditto.
|
||||
|
||||
Sat Oct 14 08:24:45 2006 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* ext/digest/lib/digest/hmac: Back out the addition of digest/hmac
|
||||
|
|
|
@ -2206,8 +2206,8 @@ VpException(unsigned short f,char *str,int always)
|
|||
return 0; /* 0 Means VpException() raised no exception */
|
||||
|
||||
raise:
|
||||
if(fatal) rb_fatal(str);
|
||||
else rb_raise(exc,str);
|
||||
if(fatal) rb_fatal("%s", str);
|
||||
else rb_raise(exc, "%s", str);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -66,12 +66,12 @@ rb_dlhandle_initialize(int argc, VALUE argv[], VALUE self)
|
|||
ptr = dlopen(clib, cflag);
|
||||
#if defined(HAVE_DLERROR)
|
||||
if (!ptr && (err = dlerror())) {
|
||||
rb_raise(rb_eRuntimeError, err);
|
||||
rb_raise(rb_eRuntimeError, "%s", err);
|
||||
}
|
||||
#else
|
||||
if (!ptr) {
|
||||
err = dlerror();
|
||||
rb_raise(rb_eRuntimeError, err);
|
||||
rb_raise(rb_eRuntimeError, "%s", err);
|
||||
}
|
||||
#endif
|
||||
Data_Get_Struct(self, struct dl_handle, dlhandle);
|
||||
|
|
|
@ -82,7 +82,7 @@ static void
|
|||
rb_gdbm_fatal(msg)
|
||||
char *msg;
|
||||
{
|
||||
rb_raise(rb_eGDBMFatalError, msg);
|
||||
rb_raise(rb_eGDBMFatalError, "%s", msg);
|
||||
}
|
||||
|
||||
struct dbmdata {
|
||||
|
|
4
parse.y
4
parse.y
|
@ -4559,7 +4559,7 @@ parser_warning(node, mesg)
|
|||
{
|
||||
int line = ruby_sourceline;
|
||||
ruby_sourceline = nd_line(node);
|
||||
rb_warning(mesg);
|
||||
rb_warning("%s", mesg);
|
||||
ruby_sourceline = line;
|
||||
}
|
||||
|
||||
|
@ -4570,7 +4570,7 @@ parser_warn(node, mesg)
|
|||
{
|
||||
int line = ruby_sourceline;
|
||||
ruby_sourceline = nd_line(node);
|
||||
rb_warn(mesg);
|
||||
rb_warn("%s", mesg);
|
||||
ruby_sourceline = line;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue