Indent question

Karl Heuer karl at ima.isc.com
Sun Nov 18 11:27:45 AEST 1990


In article <5334 at catfish11.UUCP> yedinak at motcid.UUCP (Mark A. Yedinak) writes:
>roy%cybrspc at 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 at ima.isc.com or uunet!ima!karl), The Walking Lint



More information about the Comp.lang.c mailing list