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 | 4f25d0b9049a5dc80fb910c2b7caac803d432119 (patch) | |
| tree | ee2f018575c5fc74d4b3ae376505dd1c2cd3c3db | |
| parent | 8d959df0e258b5f11dc4497919016e605b98b17a (diff) | |
| download | ruby-4f25d0b9049a5dc80fb910c2b7caac803d432119.tar.gz ruby-4f25d0b9049a5dc80fb910c2b7caac803d432119.tar.xz ruby-4f25d0b9049a5dc80fb910c2b7caac803d432119.zip | |
* lib/rdoc/parsers/parse_c.rb: show parsing progress for C files.
[ruby-core:4341] (based on Tilman Sauerbeck's patch)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@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:56:20 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 13:47:56 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * test/drb/test_drb{ssl,unix}.rb: can test drb diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index 7e7b95258..08d1edba1 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] |
