diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-12 07:00:37 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-12 07:00:37 +0000 |
commit | bf4eb618198d3e9ff0bf439a5521bcda663bf101 (patch) | |
tree | 132a16e8bd66061d233c220f7711878db11059d6 | |
parent | 72a6794070964789beaaec190dff8f7aab7875ea (diff) |
* lib/rdoc/parsers/parse_c.rb: show parsing progress for C files.
[ruby-core:4341] (based on Tilman Sauerbeck's patch)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 11 |
2 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Thu May 12 15:50:56 2005 Tilman Sauerbeck <tilman@code-monkey.de> + + * lib/rdoc/parsers/parse_c.rb: show parsing progress for C files. + [ruby-core:4341] + Thu May 12 09:53:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> * version.c (ruby_show_version): flush for non-tty stdout. diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index 7e7b952583..08d1edba10 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -198,6 +198,13 @@ module RDoc private ####### + def progress(char) + unless @options.quiet + $stderr.print(char) + $stderr.flush + end + end + # remove lines that are commented out that might otherwise get # picked up when scanning for classes and methods @@ -206,6 +213,8 @@ module RDoc end def handle_class_module(var_name, class_mod, class_name, parent, in_module) + progress(class_mod[0, 1]) + parent_name = @known_classes[parent] || parent if in_module @@ -478,6 +487,8 @@ module RDoc def handle_method(type, var_name, meth_name, meth_body, param_count, source_file = nil) + progress(".") + @stats.num_methods += 1 class_name = @known_classes[var_name] |