schultz@NRL-AIC.ARPA (Alan Schultz) (03/17/88)
I have GNU 18.49.
Although C mode has lots of variables for different formatting styles,
I can't seem to get it set for the style I use. Below is a sample of the
formatting I would prefer to have. Can anyone tell me the proper variable
settings, or a hack to get it...
/* ----- sample code ----------*/
int a_global_variable; /* Global def's are flush left */
int
afunction (a, b) /* NOTE that only the type and name of the */
/* function are flush left. */
int a;
int b;
{ /* I want this indented the same as the declarations */
int c, d; /* of the function parameters. */
for (c = 1; c < b; c++) /* The rest of this I have no problem with */
{
d += a;
printf ("%d", d);
}
return d;
}
/* ---- end of sample code ------ */
Thanks for any help. Send mail direct to schultz@nrl-aic.arpa if possible.
Alan C. Schultz
Code 5510
Navy Center for Applied Research in Artificial Intelligence (NCAR A I)
Naval Research Laboratory
Washington, D.C. 20375-5000
ARPA: schultz@nrl-aic.arpa
(202) 767-2877