You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Roy T. Fielding" <fi...@liege.ICS.UCI.EDU> on 1996/07/02 00:42:42 UTC

Re: Style guide

> 13. Null pointer tests
> 
> a) if(p == NULL)
> b) if(!p)

+0 -- the truth is that this is dependent on what "p" means.

Do we have an issue with

    if(!p)
vs
    if (!p)

?  I like to differentiate between language statements and function calls.

> 14. Capitalisation of enums
> 
> a) enum x { ONE, TWO };
> b) enum x { one, two };
> c) No rule.

14b -- I only use uppercase for #defined symbols.

.....Roy