mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
a57cbd7b27
commit
6d69c3b0ce
2 changed files with 9 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
|||
Mon Jun 18 20:29:04 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* 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@gmail.com>
|
||||
|
||||
* random.c (rb_random_int32): get rid of "warning: constant 0x100000000
|
||||
|
|
12
ruby.c
12
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);
|
||||
|
|
Loading…
Reference in a new issue