Xref: utzoo comp.lang.c:17095 comp.unix.wizards:15135 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!haven!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c,comp.unix.wizards Subject: Re: Sed wins! It IS possible to strip C comments with 1 sed command! Message-ID: <16477@mimsy.UUCP> Date: 22 Mar 89 03:07:34 GMT References: <2186@solo11.cs.vu.nl> <7150@siemens.UUCP> <9900010@bradley> <2164@helios.ee.lbl.gov> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 17 In article <2164@helios.ee.lbl.gov> envbvs@epb2.lbl.gov (Brian V. Smith) writes: >THIS [sed script] must be the method EVERYONE uses to strip comments from >every C program I have ever seen in the public domain or from Berkeley/ >DEC/Sun/etc... ... There must be either a conspiracy against, or a >primeval fear of including comments in C programs. This accusation is mostly unfounded, but there is at least one known case of someone at Berkeley removing comments someone else at Berkeley had added. No doubt I am unaware of various reasons for each of these actions.... Anyway, we have already had the `how much commenting is proper' war in comp.lang.misc or comp.misc. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris