Path: utzoo!attcan!uunet!mcsun!ukc!stc!rmj From: rmj@tcom.stc.co.uk (Rhodri James) Newsgroups: comp.lang.c Subject: Re: C preprocessing Message-ID: <2012@islay.tcom.stc.co.uk> Date: 24 Sep 90 13:39:37 GMT References: <59770@iuvax.cs.indiana.edu> <18102@haddock.ima.isc.com> Reply-To: rmj@htc1.UUCP (Rhodri James) Organization: STC Telecomms, Harlow Technical Centre, Harlow Lines: 35 In article <18102@haddock.ima.isc.com> karl@kelp.ima.isc.com (Karl Heuer) writes: >In article <59770@iuvax.cs.indiana.edu> bomgard@iuvax.cs.indiana.edu (Tim Bomgardner) writes: >>Wouldn't it be nice, if ... the compiler would do what I meant [by >>interpreting the indentation] instead of what I said? > >I personally like the idea, but it's not C (nor any other language I use, >though I understand Occam has it). So, being realistic, let's say instead: I understand (from a friend who uses Occam) that it's a complete pain. Counting spaces, even on a fixed character width screen like nearly all are, is at times a non-trivial operation. >Wouldn't it be nice if the compiler (or some related tool) would provide >(optional!) warnings for possibly misindented code? Mmmm. OK, I'll buy that. >Things to worry about: (a) whitespace caused by macro expansion; (b) how to >count tabs vs. spaces; (c) accepting all plausible personal indentation styles >(or making it user-configurable). My main reason for not wanting to use such a thing is that my indentation habits varying between 3, 4, 5 and 8 spaces depending on how I felt when I woke up and whose code I'm working on at the time. I can't say as I would enjoy having to keep adding switches to my compiles just to get it to shut up from time to time. >Karl W. Z. Heuer (karl@kelp.ima.isc.com or ima!kelp!karl), The Walking Lint Rhodri -- * Windsinger * "But soft, what light through yonder * rmj@islay.tcom.stc.co.uk * airlock breaks?" * rmj@tcom.stc.co.uk * --RETURN TO THE FORBIDDEN PLANET * rmj10@phx.cam.ac.uk * You've gotta be cruel to be Khund!