Switch branches/tags
sieve-1.2 fastmail-fmwheezy29312-9325 dev/hierarchy-separator-r2 dev/hierarchy-separator-r1 dev/alt-namespace-r3 dev/alt-namespace-r2 dev/alt-namespace-r1 cyrus/old-copyright cyrus-sasl-2.1.23 cyrus-sasl-2.1.19 cyrus-sasl-2.1.18 cyrus-sasl-2.1.17 cyrus-sasl-2.1.16 cyrus-sasl-2.1.15 cyrus-sasl-2.1.14 cyrus-sasl-2.1.13 cyrus-sasl-2.1.12 cyrus-sasl-2.1.11 cyrus-sasl-2.1.10 cyrus-sasl-2.1.9 cyrus-sasl-2.1.7 cyrus-sasl-2.1.6 cyrus-sasl-2.1.3 cyrus-sasl-2.1.2 cyrus-sasl-2.1.1 cyrus-sasl-2.0.5 cyrus-sasl-2.0.4 cyrus-sasl-1.5.27 cyrus-sasl-1.5.25 cyrus-sasl-1.5.24 cyrus-sasl-1.5.21 cyrus-sasl-1.5.20 cyrus-sasl-1.5.18 cyrus-sasl-1.5.17 cyrus-sasl-1.5.15 cyrus-sasl-1.5.13 cyrus-sasl-1.5.12 cyrus-sasl-1.5.11 cyrus-sasl-1.5.3 cyrus-sasl-1.4.1 cyrus-sasl-1.3-beta2 cyrus-imapd-2.4.1 cyrus-imapd-2.3.16 cyrus-imapd-2.3.15 cyrus-imapd-2.3.14 cyrus-imapd-2.3.13 cyrus-imapd-2.3.13-rc3 cyrus-imapd-2.3.13-rc1 cyrus-imapd-2.3.12 cyrus-imapd-2.3.12-p1 cyrus-imapd-2.3.11 cyrus-imapd-2.3.10 cyrus-imapd-2.3.9 cyrus-imapd-2.3.8 cyrus-imapd-2.3.7 cyrus-imapd-2.3.6 cyrus-imapd-2.3.5 cyrus-imapd-2.3.4 cyrus-imapd-2.3.3 cyrus-imapd-2.3.2 cyrus-imapd-2.3.1 cyrus-imapd-2.3.0 cyrus-imapd-2.2.13 cyrus-imapd-2.2.13-p1 cyrus-imapd-2.2.12 cyrus-imapd-2.2.11 cyrus-imapd-2.2.10 cyrus-imapd-2.2.9 cyrus-imapd-2.2.8 cyrus-imapd-2.2.7 cyrus-imapd-2.2.6 cyrus-imapd-2.2.5 cyrus-imapd-2.2.4 cyrus-imapd-2.2.3 cyrus-imapd-2.2.2 cyrus-imapd-2.2.1 cyrus-imapd-2.2.0 cyrus-imapd-2.1.18 cyrus-imapd-2.1.16 cyrus-imapd-2.1.15 cyrus-imapd-2.1.14 cyrus-imapd-2.1.13 cyrus-imapd-2.1.12 cyrus-imapd-2.1.11 cyrus-imapd-2.1.10 cyrus-imapd-2.1.9 cyrus-imapd-2.1.8 cyrus-imapd-2.1.7 cyrus-imapd-2.1.6 cyrus-imapd-2.1.5 cyrus-imapd-2.1.4 cyrus-imapd-2.1.3 cyrus-imapd-2.1.2 cyrus-imapd-2.1.1 cyrus-imapd-2.1.0 cyrus-imapd-2.0.17 cyrus-imapd-2.0.16 cyrus-imapd-2.0.15 cyrus-imapd-2.0.14 cyrus-imapd-2.0.13
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
116 lines (115 sloc) 2.71 KB
// don't force a blank line afer every block of declarations
// force a blank line after procedure bodies
// prefer to break long lines before && or || operators
// Don't put newlines after commas in multiple declarations
// int foo, bar, baz;
// K&R style braces
// if (foo) {
// bar;
// }
// cuddle 'else' to preceding }
// if (foo) {
// bar;
// } else {
// baz;
// }
// cuddle 'while' to preceding }
// do {
// foo;
// } while (bar);
// K&R style braces in struct declarations
// struct foo {
// ...
// };
// BUT the opening brace of a function is at the
// start of it's own line. Consistent? Nope.
// int foo(int bar)
// {
// ...
// }
// Start comments which follow code on a line, at column 33 (the
// default)
// Ditto for comments following declarations
// Ditto for comments following cpp directives
// Don't force comment delimiters onto their own lines
// 'case' statements are not indented relative to the switch
// switch (foo) {
// case BAR:
// }
// Don't put a space after a cast operator
// Indent block comments to their surrounding code
// put identifiers in declarations immediately after type
// int foo;
// Don't format comments starting in column 1
// Don't format comments starting after column 1
// try to break long lines where the original code did
// indentation is 4 characters
// tabs are 8 characters (the default)
// Don't add extra indentation for multiple opening parens
// or K&R function declarations (not that we should have any)
// Maximum line length of long code lines
// broken 2nd line of function arguments is indented
// to align with open parenthesis e.g.
// long_function_name(first_argument, second_argument,
// indented_third_argument)
// indent nested cpp directives
// #if X
// # if Y
// # define Z 1
// goto labels start in column 0
// No space between a called function name and its args
// function_call(arg1, arg2)
// No space between 'sizeof' and its arg
// sizeof(struct foo);
// No space inside parentheses
// Put the type of a procedure at the start of the same
// line it's definition
// int foo(int bar)
// {
// Force a space between 'for' and the following parenthesis
// for (i=0 ; i<5 ; i++) {
// Force a space between 'if' and the following parenthesis
// if (foo != bar) {
// Force a space between 'while' and the following parenthesis
// while (foo) {
// Don't force a * at the beginning of each line of box comments
// Don't swallow "optional" blank lines in the original code
// Don't force a space before the ';' when it's the entire
// body of a 'for' or 'while'.