Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!samsung!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: This one bit me today Message-ID: <11577@smoke.BRL.MIL> Date: 9 Nov 89 12:13:20 GMT References: <2739@hub.UUCP> <1989Oct28.005308.11463@virtech.uucp> <336@cyan.UUCP> <2614@munnari.oz.au> <1017@dinorah.wustl.edu> <11463@smoke.BRL.MIL> <136@csnz.co.nz> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 12 In article <136@csnz.co.nz> paul@csnz.co.nz (Paul Gillingwater) writes: -In article <11463@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: ->The most reasonable one was to add //-comment-to-end-of-line style ->comments. ... However, it was quite a bother ->when our //-ed code had to be compiled by a compiler that hadn't ->received this hack! -sed -d ?^//? < foo.c > tmp.c ; cc tmp.c -o foo Sorry, that's completely wrong. I had to write a decidedly non-trivial program to do the job. It was based on an FSA.