Indent question

Roy M. Silvernail roy%cybrspc at cs.umn.edu
Wed Nov 14 15:36:35 AEST 1990


I have just picked up GNU Indent for MS-DOS. Unfortunately, no
documentation came with it. I'd like to know if the following is
possible...

Indent (both GNU and the previous version I found on SIMTEL) formats all
function declarations like this:

int this_function(int param)
{
        do_something();
}

but I prefer this:

int this_function(int param) {
        do_something();
}

Can I get indent to use my preferred brace style, or must I hack the
source?  (if I have to hack source, can someone point me to GNU source
for indent?)

Thanks in advance. E-mail replies would save bandwidth, and I'll
summarize if there's any interest in this.
--
Roy M. Silvernail |+|  roy%cybrspc at cs.umn.edu  |+| #define opinions ALL_MINE;
main(){float x=1;x=x/50;printf("It's only $%.2f, but it's my $%.2f!\n",x,x);}
"This is cyberspace." -- Peter da Silva  :--:  "...and I like it here!" -- me



More information about the Comp.lang.c mailing list