httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@engelschall.com (Ralf S. Engelschall)
Subject Re: [POLL] style-guide changes as of 1997-07-16 13H11 EDT
Date Thu, 17 Jul 1997 15:29:56 GMT

In article <97071613111534@decus.org> you wrote:

>     1. Conventions for casting syntax:
>        a) "(char *)foo"
>           +1: Alexei, Dean, Ben, Jim, Randy

+1

>        b) "(char*)foo"
>           +1: 
>        c) "(char *) foo"
>           +1: Ken

>     2. Conventions for Boolean negation syntax:
>        a) "!expression"
>           +1: Alexei, Jim, Dean

+1

>        b) "! expression"
>           +1: Ken, Randy

>     3. Conventions for simple if, while, and for blocks:
>        a) if (exp) statement;
>           +1: 

>        b) if (exp)
>               statement;
>           +1: Ben (implicitly from [4]), Jim

+1

>        c) if (exp) {
>               statement;
>           }
>           +1: Ken (always), Dean (always)

>     4. Conventions for simple else-if blocks:

>        a) else if (exp) statement;
>           +1: 

>        b) else if (exp)
>               statement;
>           +1: Alexei (see [c]), Ben, Jim

+1

>        c) else if (exp) {
>               statement;
>           }
>           +1: Ken, Alexei (see [b]), Randy, Dean

>        d) else {
>               if (exp) {
>                   statement;
>               }
>           }
>           +1: 

>     5. Conventions for wrapping long (>80 column) routine
>        definitions/invocations:

>        a) foo_func (a, b,
>                     c, d)
>           +1: Jim, Dean

+1

>        b) foo_func
>               (a, b, c, d)
>           +1: Ken (if it fits on one line, else [d])

>        c) foo_func
>           (
>               a,
>               b,
>               c,
>               d
>           )
>           +1: 

>        d) foo_func
>               (
>                   a,
>                   b,
>                   c,
>                   d
>               )
>           +1: Ken (only if [b] doesn't work)

>     6. Conventions for wrapping long expressions:

>        a) if (a && (b || c) && d) { # i.e., no wrapping)
>           +1: 

>        b) if (a &&                  # wrap only when you have to,
>               (b || c) && d) {      # operators wherever
>           +1: Jim

>        c) if (a                     # wrap only when you have to,
>               && (b || c) && d) {   # operators at bol
>           +1: Dean (with minor reservations), Randy

+1

>        d) if (                      # one term per line, operators at end
>               a &&
>               (b || c) &&
>               d
>              ) {
>           +1: Ken (or [e])

>        e) if (                      # one term per line, operators at bol
>               a
>               && (b || c)
>               && d
>              ) {
>           +1: Ken (or [d])

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message