httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1334842 - /httpd/site/trunk/content/dev/styleguide.mdtext
Date Mon, 07 May 2012 00:19:08 GMT
Author: joes
Date: Mon May  7 00:19:08 2012
New Revision: 1334842

URL: http://svn.apache.org/viewvc?rev=1334842&view=rev
Log:
various formatting issues

Modified:
    httpd/site/trunk/content/dev/styleguide.mdtext

Modified: httpd/site/trunk/content/dev/styleguide.mdtext
URL: http://svn.apache.org/viewvc/httpd/site/trunk/content/dev/styleguide.mdtext?rev=1334842&r1=1334841&r2=1334842&view=diff
==============================================================================
--- httpd/site/trunk/content/dev/styleguide.mdtext (original)
+++ httpd/site/trunk/content/dev/styleguide.mdtext Mon May  7 00:19:08 2012
@@ -121,6 +121,8 @@ Example:
 1.  **Function Declaration and Layout** 
 Functions are laid out as follows:
 
+Example:
+
     int main(int argc, char **argv)
     {
         code;
@@ -140,6 +142,8 @@ invocations</A>.** 
 Space after commas in function calls. No space between function name and
 opening bracket.
 
+Example:
+
     f(a, b);
 
 **Also see the section on indenting<A HREF="#long-exps">long declarations
@@ -148,7 +152,9 @@ and invocations</A>.** 
 1.  **Flow-Control Layout** 
 Flow-control statements
 (`if`, `while`, `for`, *etc.*) are
-laid out as in this example:
+laid out as in this
+
+Example:
 
     if (expr) {
         code;
@@ -166,7 +172,9 @@ with the corresponding `if`. **Also see 
 indenting<A HREF="#long-exps">long expressions</A>.** 
 
 1.  **`for` Layout** 
-Space after the semi-colons. Example:
+Space after the semi-colons.
+
+Example:
 
     for (a; b; c)
  
@@ -175,6 +183,7 @@ Space after the semi-colons. Example:
 `case` lines within a `switch()` are indented to same
 level as the switch statement itself. The code for each case is indented by
 four spaces. Braces are laid out as for other control-flow keywords.
+
 Example:
 
     switch (x) {
@@ -188,6 +197,7 @@ Example:
 1.  **Expressions** 
 Space before and after assignment and other and operators. No space between
 unary operators (increment, decrement, and negation) and the lvalue.
+
 Examples:
 
     a = b



Mime
View raw message