nl = fdline + 1
writedocumentation(buf, text, nl)
end
+
+# File.delete(struct) if FileTest.file?(struct)
return buf
end
def documentfunc2 (dstart, title, func_text, short_text)
#func_text¤ÎºÇ½é¤Î¹ÔÃæ¤Î´Ø¿ô̾
- dstart =~ /\s([a-z_]+)\s\(/
+ dstart =~ /\s([a-z0-9_]+)\s\(/
return if $1 == nil
fname = $1
next
end
- if filename =~ /\.c\./
- next
- end
+ #if filename =~ /\.c\./
+ # next
+ #end
file = open(filename,"r")
text = file.readlines
Dir.open(".").each{|filename|
unless FileTest.directory? filename
- print "PROCESSING: ", filename, "\n"
+ file = open(filename,"r")
+ text = file.readlines
- file = open(filename,"r")
- text = file.readlines
+ if text.include?($fielddheader)
+ next
+ end
- if /@function/ =~ text[0]
- buf = frewrite(text[1..text.size])
- else buf = orewrite(text)
- end
+ print "PROCESSING: ", filename, "\n"
- filetowrite = open($dstman3m+filename,"w")
- filetowrite.puts(buf)
- filetowrite.flush
+ if /@function/ =~ text[0]
+ buf = frewrite(text[1..text.size])
+ else buf = orewrite(text)
+ end
+ filetowrite = open($dstman3m+filename,"w")
+ filetowrite.puts(buf)
+ filetowrite.flush
end
}