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

ruby-changes:15305

From: nobu <ko1@a...>
Date: Fri, 2 Apr 2010 22:28:32 +0900 (JST)
Subject: [ruby-changes:15305] Ruby:r27192 (trunk): * lib/rdoc/parser/c.rb (RDoc#handle_method): see source files in

nobu	2010-04-02 22:28:10 +0900 (Fri, 02 Apr 2010)

  New Revision: 27192

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

  Log:
    * lib/rdoc/parser/c.rb (RDoc#handle_method): see source files in
      source directory.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rdoc/parser/c.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 27191)
+++ ChangeLog	(revision 27192)
@@ -1,3 +1,8 @@
+Fri Apr  2 22:28:03 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/rdoc/parser/c.rb (RDoc#handle_method): see source files in
+	  source directory.
+
 Fri Apr  2 22:13:38 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/rdoc/rdoc.rb: reverted r27186 to add generators.
Index: lib/rdoc/parser/c.rb
===================================================================
--- lib/rdoc/parser/c.rb	(revision 27191)
+++ lib/rdoc/parser/c.rb	(revision 27192)
@@ -393,7 +393,7 @@
     elsif @content =~ %r{Document-(?:class|module):\s+#{class_name}\s*?(?:<\s+[:,\w]+)?\n((?>.*?\*/))}m then
       comment = $1
     elsif @content =~ %r{((?>/\*.*?\*/\s+))
-                         ([\w\.\s]+\s* = \s+)?rb_define_(class|module).*?"(#{class_name})"}xm then
+                         ([\w\.\s]+\s* = \s+)?rb_define_(class|module).*?"(#{class_name})"}xm then # "
       comment = $1
     end
 
@@ -611,8 +611,7 @@
         meth_obj.params = "(" + (1..p_count).map{|i| "p#{i}"}.join(", ") + ")"
       end
 
-      if source_file and File.exist? source_file then
-        file_name = File.join(@file_dir, source_file)
+      if source_file and File.exist?(file_name = File.join(@file_dir, source_file)) then
         body = (@@known_bodies[source_file] ||= File.read(file_name))
       elsif source_file then
         warn "unknown source file #{source_file}"

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

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