From 0eb1a2ff6dc8e6f7adb0d56a114eaacc40d8fa50 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 20 Feb 2002 06:35:37 +0000 Subject: * 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 --- ChangeLog | 13 +++++++++++++ intern.h | 4 ++++ io.c | 10 ++++------ 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 476554f977..f5d6434db2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +Wed Feb 20 15:15:03 2002 Nobuyoshi Nakada + + * 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 * io.c (rb_io_close): return Qnil. diff --git a/intern.h b/intern.h index 62549f84fd..36998df00d 100644 --- a/intern.h +++ b/intern.h @@ -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 */ diff --git a/io.c b/io.c index ad896ad139..b028d08bc8 100644 --- a/io.c +++ b/io.c @@ -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; -- cgit v1.2.3