From 6d69c3b0ce9dfdcf32383015a3514fe1a4624e44 Mon Sep 17 00:00:00 2001 From: kosaki Date: Tue, 19 Jun 2012 21:50:09 +0000 Subject: [PATCH] * ruby.c (rb_f_sub): use ansi style declaration. * ruby.c (rb_f_gsub): ditto. * ruby.c (rb_f_chomp): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ ruby.c | 12 +++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 27d90fbce6..e859d4e1f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Jun 18 20:29:04 2012 KOSAKI Motohiro + + * ruby.c (rb_f_sub): use ansi style declaration. + * ruby.c (rb_f_gsub): ditto. + * ruby.c (rb_f_chomp): ditto. + Mon Jun 18 20:26:23 2012 KOSAKI Motohiro * random.c (rb_random_int32): get rid of "warning: constant 0x100000000 diff --git a/ruby.c b/ruby.c index 651bf68034..3fd0f75ada 100644 --- a/ruby.c +++ b/ruby.c @@ -1175,9 +1175,7 @@ uscore_get(void) */ static VALUE -rb_f_sub(argc, argv) - int argc; - VALUE *argv; +rb_f_sub(int argc, VALUE *argv) { VALUE str = rb_funcall3(uscore_get(), rb_intern("sub"), argc, argv); rb_lastline_set(str); @@ -1196,9 +1194,7 @@ rb_f_sub(argc, argv) */ static VALUE -rb_f_gsub(argc, argv) - int argc; - VALUE *argv; +rb_f_gsub(int argc, VALUE *argv) { VALUE str = rb_funcall3(uscore_get(), rb_intern("gsub"), argc, argv); rb_lastline_set(str); @@ -1236,9 +1232,7 @@ rb_f_chop(void) */ static VALUE -rb_f_chomp(argc, argv) - int argc; - VALUE *argv; +rb_f_chomp(int argc, VALUE *argv) { VALUE str = rb_funcall3(uscore_get(), rb_intern("chomp"), argc, argv); rb_lastline_set(str);