projects
/
m17n
/
m17n-docs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
484e842
)
*** empty log message ***
author
nisikimi
<nisikimi>
Wed, 20 Sep 2006 03:59:31 +0000
(
03:59
+0000)
committer
nisikimi
<nisikimi>
Wed, 20 Sep 2006 03:59:31 +0000
(
03:59
+0000)
utils/usr_filter_example_flag.rb
patch
|
blob
|
history
diff --git
a/utils/usr_filter_example_flag.rb
b/utils/usr_filter_example_flag.rb
index
c963256
..
cade553
100644
(file)
--- a/
utils/usr_filter_example_flag.rb
+++ b/
utils/usr_filter_example_flag.rb
@@
-34,29
+34,18
@@
while gets
else # when example == 0
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 = []
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
# if doxy == 1
# # should be included only in the example code
# ## We used to do the following substituion as a workaround of