* 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:
parent
4fd111f0c1
commit
0eb1a2ff6d
13
ChangeLog
13
ChangeLog
@ -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>
|
Wed Feb 20 13:41:35 2002 Usaku Nakamura <usa@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (rb_io_close): return Qnil.
|
* io.c (rb_io_close): return Qnil.
|
||||||
|
4
intern.h
4
intern.h
@ -232,6 +232,10 @@ VALUE rb_io_ungetc _((VALUE, VALUE));
|
|||||||
VALUE rb_io_close _((VALUE));
|
VALUE rb_io_close _((VALUE));
|
||||||
VALUE rb_io_eof _((VALUE));
|
VALUE rb_io_eof _((VALUE));
|
||||||
VALUE rb_io_binmode _((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_file_open _((const char*, const char*));
|
||||||
VALUE rb_gets _((void));
|
VALUE rb_gets _((void));
|
||||||
/* marshal.c */
|
/* marshal.c */
|
||||||
|
10
io.c
10
io.c
@ -284,7 +284,7 @@ rb_io_write(io, str)
|
|||||||
return rb_funcall(io, id_write, 1, str);
|
return rb_funcall(io, id_write, 1, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
VALUE
|
||||||
rb_io_addstr(io, str)
|
rb_io_addstr(io, str)
|
||||||
VALUE io, str;
|
VALUE io, str;
|
||||||
{
|
{
|
||||||
@ -2153,7 +2153,7 @@ rb_io_clone(io)
|
|||||||
return clone;
|
return clone;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
VALUE
|
||||||
rb_io_printf(argc, argv, out)
|
rb_io_printf(argc, argv, out)
|
||||||
int argc;
|
int argc;
|
||||||
VALUE argv[];
|
VALUE argv[];
|
||||||
@ -2184,7 +2184,7 @@ rb_f_printf(argc, argv)
|
|||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
VALUE
|
||||||
rb_io_print(argc, argv, out)
|
rb_io_print(argc, argv, out)
|
||||||
int argc;
|
int argc;
|
||||||
VALUE *argv;
|
VALUE *argv;
|
||||||
@ -2262,8 +2262,6 @@ rb_f_putc(recv, ch)
|
|||||||
return rb_io_putc(rb_defout, ch);
|
return rb_io_putc(rb_defout, ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE rb_io_puts _((int, VALUE*, VALUE));
|
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
io_puts_ary(ary, out)
|
io_puts_ary(ary, out)
|
||||||
VALUE ary, out;
|
VALUE ary, out;
|
||||||
@ -2281,7 +2279,7 @@ io_puts_ary(ary, out)
|
|||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
VALUE
|
||||||
rb_io_puts(argc, argv, out)
|
rb_io_puts(argc, argv, out)
|
||||||
int argc;
|
int argc;
|
||||||
VALUE *argv;
|
VALUE *argv;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user