summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-12 07:00:37 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-12 07:00:37 +0000
commitbf4eb618198d3e9ff0bf439a5521bcda663bf101 (patch)
tree132a16e8bd66061d233c220f7711878db11059d6 /lib
parent72a6794070964789beaaec190dff8f7aab7875ea (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
Diffstat (limited to 'lib')
-rw-r--r--lib/rdoc/parsers/parse_c.rb11
1 files changed, 11 insertions, 0 deletions
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]