From fe13785cc699692cefbdf94908fcaa7c99672f0f Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 29 Jul 2003 18:26:55 +0000 Subject: * marshal.c (w_object): if object responds to 'marshal_dump', Marshal.dump uses it to dump object. unlike '_dump', marshal_dump returns any kind of object. * marshal.c (r_object0): restore instance by calling 'marshal_load' method. unlike '_load', it's an instance method, to handle cyclic reference. * marshal.c (marshal_load): all objects read from file should be tainted. [ruby-core:01325] * lib/timeout.rb (Timeout::timeout): execute immediately if sec is zero. * ext/socket/socket.c (socks_init): typo fixed. [ruby-talk:77232] * ext/socket/extconf.rb: the default value for --enable-socks is taken from ENV["SOCKS_SERVER"]. [ruby-talk:77232] * ruby.c (proc_options): add -W option. -W0 to shut up all warning messages. [ruby-talk:77227] * error.c (rb_warn): no message will be printed if the value of $VERBOSE is "nil", i.e. perfect silence. * ruby.c (verbose_setter): $VERBOSE value is either true, false, or nil. * io.c (Init_IO): no "read" check for $stdin. in addition some function names has been changed. * regex.c (re_match_exec): incorrect multibyte match. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'error.c') diff --git a/error.c b/error.c index bcc36d213a..fb900b26a4 100644 --- a/error.c +++ b/error.c @@ -129,6 +129,8 @@ rb_warn(fmt, va_alist) char buf[BUFSIZ]; va_list args; + if (NIL_P(ruby_verbose)) return; + snprintf(buf, BUFSIZ, "warning: %s", fmt); va_init_list(args, fmt); -- cgit v1.2.3