[前][次][番号順一覧][スレッド一覧]

ruby-changes:22527

From: nobu <ko1@a...>
Date: Mon, 13 Feb 2012 10:24:59 +0900 (JST)
Subject: [ruby-changes:22527] nobu:r34576 (trunk): * io.c (Init_IO): use directive hack to make ARGF documentable

nobu	2012-02-13 10:24:45 +0900 (Mon, 13 Feb 2012)

  New Revision: 34576

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34576

  Log:
    * io.c (Init_IO): use directive hack to make ARGF documentable
      in other tools.  [ruby-core:42515][Bug #6007]

  Modified files:
    trunk/ChangeLog
    trunk/io.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34575)
+++ ChangeLog	(revision 34576)
@@ -1,3 +1,8 @@
+Mon Feb 13 10:24:39 2012  Loren Segal  <lsegal@s...>
+
+	* 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@r...>
 
 	* include/ruby/ruby.h (rb_event_hook_func_t): add argument names.
Index: io.c
===================================================================
--- io.c	(revision 34575)
+++ io.c	(revision 34576)
@@ -11426,10 +11426,11 @@
     /* 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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]