INDENTSR: modifiable to different form of indentation?

marwk at levels.sait.edu.au marwk at levels.sait.edu.au
Thu Feb 21 02:22:22 AEST 1991


Typical C programmers indent code using set braces as follows:

void main(void) {
    register int i,j;

    for (i = 0; i < 100; +i) {
        /* stuff */
    }
}

but I use the following method as it makes it clear whether matching brackets
occur or not, and easir on the eye to read, albeit it does use more space:


void main(void)
    {
    register int i,j;

    for (i = 0; i < 100; +i)
        {
        /* stuff */
        }
    }

Is there a C beautifier that can be configured to use this method?

I have looked at INDENTSR but do not see that it can be done, nor
does it look trivial to alter the program to do this.  If you can
see how it can be modified to do this then I would very much appreciate it.

Thank you in advance.

Ray

--
University of South Australia   | Plus ca change, plus c'est la meme chose.
P.O. Box 1                      | Ghing thien me how, ming thien gung me how.
Ingle Farm                      | Knobs, knobs everywhere,
South Australia                 |              just vary a knob to think!



More information about the Comp.lang.c mailing list