3 # remove C comments from a list of files
4 # using a comment as the record separator
6 # this is trickier than I first thought
7 # The first version in .97-.9993 was wrong
10 # RS is set to a comment (this is mildly tricky, I blew it here
11 RS = "/\*([^*]|\*+[^*/])*\*+/"
18 filename != FILENAME {
25 { # hold one record because we don't want ORS on the last
31 END { printf "%s", hold }