bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Function prototype style


From: Dmitry Bogatov
Subject: Function prototype style
Date: Fri, 30 Mar 2012 08:51:29 +0400
User-agent: KMail/1.13.6 (Linux/2.6.38-8-generic; KDE/4.6.5; i686; ; )

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]