[macruby-changes] [3204] MacRuby/trunk/lib/rdoc/parser/c.rb
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jan 7 15:31:56 PST 2010
Revision: 3204
http://trac.macosforge.org/projects/ruby/changeset/3204
Author: ernest.prabhakar at gmail.com
Date: 2010-01-07 15:31:55 -0800 (Thu, 07 Jan 2010)
Log Message:
-----------
Modified Rdoc c parser to work with rb_objc_define_method
Modified Paths:
--------------
MacRuby/trunk/lib/rdoc/parser/c.rb
Modified: MacRuby/trunk/lib/rdoc/parser/c.rb
===================================================================
--- MacRuby/trunk/lib/rdoc/parser/c.rb 2010-01-07 23:28:38 UTC (rev 3203)
+++ MacRuby/trunk/lib/rdoc/parser/c.rb 2010-01-07 23:31:55 UTC (rev 3204)
@@ -195,7 +195,7 @@
end
def do_methods
- @content.scan(%r{rb_define_
+ @content.scan(%r{rb_(objc_)?define_
(
singleton_method |
method |
@@ -208,7 +208,7 @@
\s*(-?\w+)\s*\)
(?:;\s*/[*/]\s+in\s+(\w+?\.[cy]))?
}xm) do
- |type, var_name, meth_name, meth_body, param_count, source_file|
+ |objc, type, var_name, meth_name, meth_body, param_count, source_file|
# Ignore top-object and weird struct.c dynamic stuff
next if var_name == "ruby_top_self"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100107/b2accfbc/attachment.html>
More information about the macruby-changes
mailing list