зеркало из https://github.com/github/ruby.git
* io.c (Init_IO): use directive hack to make ARGF documentable
in other tools. [ruby-core:42515][Bug #6007] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0229827c8b
Коммит
b7ef9fa2a4
|
@ -1,3 +1,8 @@
|
|||
Mon Feb 13 10:24:39 2012 Loren Segal <lsegal@soen.ca>
|
||||
|
||||
* io.c (Init_IO): use directive hack to make ARGF documentable
|
||||
in other tools. [ruby-core:42515][Bug #6007]
|
||||
|
||||
Sun Feb 12 20:43:54 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* include/ruby/ruby.h (rb_event_hook_func_t): add argument names.
|
||||
|
|
9
io.c
9
io.c
|
@ -11426,10 +11426,11 @@ Init_IO(void)
|
|||
/* Holds the original stderr */
|
||||
rb_define_global_const("STDERR", rb_stderr);
|
||||
|
||||
/*
|
||||
* Hack to get rdoc to regard ARGF as a class:
|
||||
* rb_cARGF = rb_define_class("ARGF", rb_cObject);
|
||||
*/
|
||||
#if 0
|
||||
/* Hack to get rdoc to regard ARGF as a class: */
|
||||
rb_cARGF = rb_define_class("ARGF", rb_cObject);
|
||||
#endif
|
||||
|
||||
rb_cARGF = rb_class_new(rb_cObject);
|
||||
rb_set_class_path(rb_cARGF, rb_cObject, "ARGF.class");
|
||||
rb_define_alloc_func(rb_cARGF, argf_alloc);
|
||||
|
|
Загрузка…
Ссылка в новой задаче