From 3e09bd3f830b376147c778d23457b6e688ab40f8 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 28 Dec 2003 20:47:56 +0000 Subject: RDoc Struct and random git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/parsers/parse_c.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index b8296f569..eb1083df2 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -262,7 +262,9 @@ module RDoc |type, var_name, meth_name, meth_body, param_count, source_file| #" next if meth_name == "initialize_copy" - next if var_name == "ruby_top_self" + + # Ignore top-object and weird struct.c dynamic stuff + next if var_name == "ruby_top_self" || var_name == "nstr" var_name = "rb_cObject" if var_name == "rb_mKernel" handle_method(type, var_name, meth_name, -- cgit