juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Cutright" <Andy.Cutri...@borland.com>
Subject RE: [juddi-Developers] Apache coding standards
Date Wed, 24 Sep 2003 12:46:03 GMT
anyone know if this is the same as the sun configuration we're currently
using? 

> -----Original Message-----
> From: Anou Manavalan [mailto:amanaval@sybase.com] 
> Sent: Wednesday, September 24, 2003 8:29 AM
> To: Juddi-Developers
> Subject: [juddi-Developers] Apache coding standards
> 
> 
> We have to stick to this for the release, so it will make it 
> easy for the
> move.
> 
> regards,
> -Anou
> 
> http://www.apache.org/dev/styleguide.html
> 
> Opening braces are given on the same lines as statements, or on the
> following line at the start of a function definition.
> 
> Code inside a block (whether surrounded by braces or not) is 
> indented by
> four space characters. Tab characters are not used.
> 
> Comments are indented to the same level as the surrounding code.
> 
> Closing braces are always on a separate line from surrounding 
> code, and are
> indented to line up with the start of the text on the line 
> containing the
> corresponding opening brace.
> 
> Functions are declared with ANSI-style arguments.
> 
> There is no space between the function name and the opening 
> bracket of the
> arguments to the function. There is a single space following commas in
> argument lists and the semi-colons in for statements.
> 
> Inside a switch() statement, the case keywords are indented 
> to the same
> level as the switch line.
> 
> Operators in expressions should be surrounded by a single 
> space before and
> after, except for unary increment (++), decrement (--), and 
> negation (!)
> operators.
> 
> There is no whitespace between a cast and the item modified 
> (e.g., "(int)j"
> and not "(int) j").
> 
> If a cast is to a pointer type, there is a space between the 
> type and the *
> character (e.g., "(char *)i" instead of "(char*)i")
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> juddi-developers mailing list
> juddi-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/juddi-developers
> 


Mime
View raw message