httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@liege.ICS.UCI.EDU>
Subject Re: Style guide
Date Mon, 01 Jul 1996 22:42:42 GMT
> 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

Mime
View raw message