1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* intern.h: prototypes; rb_io_addstr(), rb_io_printf(),

rb_io_print(), rb_io_puts()

* io.c (rb_io_addstr): make extern.

* io.c (rb_io_printf): ditto.

* io.c (rb_io_print): ditto.

* io.c (rb_io_puts): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2002-02-20 06:35:37 +00:00
parent 4fd111f0c1
commit 0eb1a2ff6d
3 changed files with 21 additions and 6 deletions

View file

@ -1,3 +1,16 @@
Wed Feb 20 15:15:03 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* intern.h: prototypes; rb_io_addstr(), rb_io_printf(),
rb_io_print(), rb_io_puts()
* io.c (rb_io_addstr): make extern.
* io.c (rb_io_printf): ditto.
* io.c (rb_io_print): ditto.
* io.c (rb_io_puts): ditto.
Wed Feb 20 13:41:35 2002 Usaku Nakamura <usa@ruby-lang.org>
* io.c (rb_io_close): return Qnil.

View file

@ -232,6 +232,10 @@ VALUE rb_io_ungetc _((VALUE, VALUE));
VALUE rb_io_close _((VALUE));
VALUE rb_io_eof _((VALUE));
VALUE rb_io_binmode _((VALUE));
VALUE rb_io_addstr _((VALUE, VALUE));
VALUE rb_io_printf _((int, VALUE*, VALUE));
VALUE rb_io_print _((int, VALUE*, VALUE));
VALUE rb_io_puts _((int, VALUE*, VALUE));
VALUE rb_file_open _((const char*, const char*));
VALUE rb_gets _((void));
/* marshal.c */

10
io.c
View file

@ -284,7 +284,7 @@ rb_io_write(io, str)
return rb_funcall(io, id_write, 1, str);
}
static VALUE
VALUE
rb_io_addstr(io, str)
VALUE io, str;
{
@ -2153,7 +2153,7 @@ rb_io_clone(io)
return clone;
}
static VALUE
VALUE
rb_io_printf(argc, argv, out)
int argc;
VALUE argv[];
@ -2184,7 +2184,7 @@ rb_f_printf(argc, argv)
return Qnil;
}
static VALUE
VALUE
rb_io_print(argc, argv, out)
int argc;
VALUE *argv;
@ -2262,8 +2262,6 @@ rb_f_putc(recv, ch)
return rb_io_putc(rb_defout, ch);
}
static VALUE rb_io_puts _((int, VALUE*, VALUE));
static VALUE
io_puts_ary(ary, out)
VALUE ary, out;
@ -2281,7 +2279,7 @@ io_puts_ary(ary, out)
return Qnil;
}
static VALUE
VALUE
rb_io_puts(argc, argv, out)
int argc;
VALUE *argv;