Function prototype style
Dmitry Bogatov <[email protected]> Fri, 30 Mar 2012 08:51:29 +0400
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Organization | Samsung Research Center |
| Message-ID | <[email protected]> |
Indent is beatiful tool for C programming, but it does not support one style I
like. Any function have declaration, implementation and call. Currently,
indent regard it the same, with `pcs' option. My suggestion is to split it
into different cases. Why care? I belive not only I like to write call w/o
space, and declaration and implementation with.
Example, what I mean:
int foo (int x, double y);
int
foo (int x, double y)
{
return x + ceil(y);
}
int
main(int argc, char **argv)
{
return foo(12,42);
}
Best regards,
Dmitry Bogatov