omnipaste

whoCreated: owend whenCreated: 2006-04-28 11:42:58 mimetype: text/plain
download   paste more
$ awk 'BEGIN{RS="/?\\*/?|//|\n|\\\\*\""}!s{gsub("int","/* & */");s=RT=="/*"?1:RT~"//"?2:s}RT=="\""{s=!s?3:0}{s=RT=="*/"
&&s==1||(RT~"\n"&&s==2)?0:s;ORS=RT;print}' filename

omnipaste