*** empty log message ***
authornisikimi <nisikimi>
Wed, 20 Sep 2006 03:59:31 +0000 (03:59 +0000)
committernisikimi <nisikimi>
Wed, 20 Sep 2006 03:59:31 +0000 (03:59 +0000)
utils/usr_filter_example_flag.rb

index c963256..cade553 100644 (file)
@@ -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