Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: quotes inside #if 0 Keywords: ANSI, comments Message-ID: <10935@smoke.BRL.MIL> Date: 5 Sep 89 14:18:54 GMT References: <2014@munnari.oz.au> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 22 In article <2014@munnari.oz.au> ok@cs.mu.oz.au (Richard O'Keefe) writes: > #if 0 > > #endif >The compiler sees words like "don't" in the English text and snarls that >these are unterminated character constants. This used to be perfectly >good C, and whatever the reason for ANSI C breaking well-commented programs, >I personally think the cost is way too high. Spilled milk, alas. There were C compilers that would have the same problem with such "code" before ANSI C. Generally, it's a problem for tokenizing preprocessors. >Is there a way of having mixed English text and C fragments (possibly >including C comment delimiters) in a C program which _will_ work in ANSI C? /* English stuff sample_code(); // sample comment more English stuff */ C is not WEB.