diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-12 07:53:39 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-12 07:53:39 +0000 |
commit | 5bac006483d7eabde10e354da39ca27135dade60 (patch) | |
tree | 868098daac7b7d73a67013cf117979ead63bedd5 /lib/rdoc | |
parent | ca73fd9f7f74d0081752981ad28c3b2696624b1f (diff) |
* lib/rdoc/parsers/parse_c.rb: more readability for mixing
progress "c..." and warning message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index 08d1edba10..3df0a0ae0e 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -205,6 +205,12 @@ module RDoc end end + def warn(msg) + $stderr.puts + $stderr.puts msg + $stderr.flush + end + # remove lines that are commented out that might otherwise get # picked up when scanning for classes and methods @@ -220,8 +226,8 @@ module RDoc if in_module enclosure = @classes[in_module] unless enclosure - $stderr.puts("Enclosing class/module '#{in_module}' for " + - "#{class_mod} #{class_name} not known") + warn("Enclosing class/module '#{in_module}' for " + + "#{class_mod} #{class_name} not known") return end else @@ -417,7 +423,7 @@ module RDoc class_obj = find_class(var_name, class_name) unless class_obj - $stderr.puts("Enclosing class/module '#{const_name}' for not known") + warn("Enclosing class/module '#{const_name}' for not known") return end @@ -570,7 +576,7 @@ module RDoc find_call_seq(comment, meth_obj) meth_obj.comment = mangle_comment(comment) else - $stderr.puts "No definition for #{meth_name}" + warn "No definition for #{meth_name}" end end end |