From 48842f4630f870b569095cacf170caf116f89203 Mon Sep 17 00:00:00 2001 From: nisikimi Date: Wed, 20 Sep 2006 03:59:31 +0000 Subject: [PATCH] *** empty log message *** --- utils/usr_filter_example_flag.rb | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/utils/usr_filter_example_flag.rb b/utils/usr_filter_example_flag.rb index c963256..cade553 100644 --- a/utils/usr_filter_example_flag.rb +++ b/utils/usr_filter_example_flag.rb @@ -34,29 +34,18 @@ while gets else # when example == 0 - case $_ + case $_ - when /^\s*$/ - if doxy == 1 - buf.push($_) - end + when /^\s*$/ + if doxy == 1 # empty line in doxygen comment + buf.push($_) + end - when /\/\*=\*\// - commentblock(buf) + when /\/\*=\*\// #/*=*/ (flush) + commentblock(buf) buf = [] - when /#endif/ -# if doxy == 1 -# buf.push($_.gsub!(/#endif/, "@endcode")) -# else - commentblock(buf) - buf = [] - print $_.gsub!(/\/\*\s.*\*\//," ") # should be omiited in code -# end - doxy = 0 - - -# when /^\/\*\s.*\*\// # /* comment */ type comment + when /^\/\*\s.*\*\// # /* comment */ type comment # if doxy == 1 # # should be included only in the example code # ## We used to do the following substituion as a workaround of -- 1.7.10.4