Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 (Tek) 9/28/84 based on 9/17/84; site orca.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!houxm!vax135!cornell!uw-beaver!tektronix!orca!warner From: warner@orca.UUCP (Ken Warner) Newsgroups: net.lang.c Subject: Re: C Indentation Survey Results (long...) Message-ID: <1472@orca.UUCP> Date: Sun, 5-May-85 15:51:50 EDT Article-I.D.: orca.1472 Posted: Sun May 5 15:51:50 1985 Date-Received: Tue, 7-May-85 22:39:06 EDT References: <9930@brl-tgr.ARPA> <381@busch.UUCP> <5497@utzoo.UUCP> <5557@utzoo.UUCP> Reply-To: warner@orca.UUCP (Ken Warner) Organization: Tektronix, Wilsonville OR Lines: 22 Summary: [BUGS] Below is an actual example of real C code. It's in K&R orthodox bracing style. Is it easier to read because of it? Should I change my style of bracing to K&R? Can we stop prattling on about this religious issue? switch (key) { case BACK: fprintf(stoout,"BACK\n"); if (device->s.stroke.current_editpos > 1) { device->s.stroke.current_editpos--; for (device->s.stroke.editptr = &(device->s.stroke.header), i = 1; device->s.stroke.editptr->next->next, i < device->s.stroke.current_editpos; device->s.stroke.editptr = device->s.stroke.editptr->next, i++ ) { ; } } else { #ifdef DEBUG