[前][次][番号順一覧][スレッド一覧]

ruby-changes:24093

From: kosaki <ko1@a...>
Date: Wed, 20 Jun 2012 06:50:39 +0900 (JST)
Subject: [ruby-changes:24093] kosaki:r36145 (trunk): * ruby.c (rb_f_sub): use ansi style declaration.

kosaki	2012-06-20 06:50:09 +0900 (Wed, 20 Jun 2012)

  New Revision: 36145

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36145

  Log:
    * ruby.c (rb_f_sub): use ansi style declaration.
    * ruby.c (rb_f_gsub): ditto.
    * ruby.c (rb_f_chomp): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/ruby.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36144)
+++ ChangeLog	(revision 36145)
@@ -1,3 +1,9 @@
+Mon Jun 18 20:29:04 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* 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  <kosaki.motohiro@g...>
 
 	* random.c (rb_random_int32): get rid of "warning: constant 0x100000000
Index: ruby.c
===================================================================
--- ruby.c	(revision 36144)
+++ ruby.c	(revision 36145)
@@ -1175,9 +1175,7 @@
  */
 
 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 @@
  */
 
 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 @@
  */
 
 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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]