Path: utzoo!utgpu!watserv1!watmath!att!ima!dirtydog!karl From: karl@ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Indent question Message-ID: <1990Nov18.002745.10328@dirtydog.ima.isc.com> Date: 18 Nov 90 00:27:45 GMT References: <5334@catfish11.UUCP> Sender: news@dirtydog.ima.isc.com (NEWS ADMIN) Reply-To: karl@ima.isc.com (Karl Heuer) Organization: Interactive Systems Lines: 22 In article <5334@catfish11.UUCP> yedinak@motcid.UUCP (Mark A. Yedinak) writes: >roy%cybrspc@cs.umn.edu (Roy M. Silvernail) writes: >[I want to tell indent to use this style:] >> int this_function(int param) { >> } > >The only other thing I question, is why declare your functions that way. I >realize there is the stylistic difference when it comes to if, while, for >statements, but this is the first time I have ever seen anyone wanting to >format functions in this manner. Why? Because it's consistent with the common style for internal blocks: if (...) { } >My only reservation to using this style, is that it is radically differnet >(at least from all the code, books, etc. I have ever seen) from the norm. I expect this will be changing now that prototypes have obviated the need for the extra vertical space. Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint