diff options
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index b8296f569d..eb1083df24 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, |