From bf4eb618198d3e9ff0bf439a5521bcda663bf101 Mon Sep 17 00:00:00 2001 From: ocean Date: Thu, 12 May 2005 07:00:37 +0000 Subject: * 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 --- lib/rdoc/parsers/parse_c.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib') 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] -- cgit v1.2.3