You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2012/05/07 02:26:48 UTC
svn commit: r1334844 - /httpd/site/trunk/content/dev/styleguide.mdtext
Author: joes
Date: Mon May 7 00:26:48 2012
New Revision: 1334844
URL: http://svn.apache.org/viewvc?rev=1334844&view=rev
Log:
ul not ol
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=1334844&r1=1334843&r2=1334844&view=diff
==============================================================================
--- httpd/site/trunk/content/dev/styleguide.mdtext (original)
+++ httpd/site/trunk/content/dev/styleguide.mdtext Mon May 7 00:26:48 2012
@@ -68,7 +68,7 @@ of "`(char*)i`")
# Details and Examples #
-1. **Indentation, General Style**
+- **Indentation, General Style**
Each level of indentation of code is four spaces. Tab characters should
never be used. Specific indentation rules for function declarations and
control-flow keywords are given below.
@@ -104,7 +104,7 @@ Example:
}
-1. **Comments**
+- **Comments**
Provide comments which explain the function of code where it is not clear
from the code itself. Provide rationale where necessary for particular bits
of code.
@@ -118,7 +118,7 @@ Example:
code;
-1. **Function Declaration and Layout**
+- **Function Declaration and Layout**
Functions are laid out as follows:
Example:
@@ -138,7 +138,7 @@ closing brace is indented to line up wit
section on indenting<A HREF="#long-exps">long declarations and
invocations</A>.**
-1. **Function Calls**
+- **Function Calls**
Space after commas in function calls. No space between function name and
opening bracket.
@@ -149,7 +149,7 @@ Example:
**Also see the section on indenting<A HREF="#long-exps">long declarations
and invocations</A>.**
-1. **Flow-Control Layout**
+- **Flow-Control Layout**
Flow-control statements
(`if`, `while`, `for`, *etc.*) are
laid out as in this
@@ -171,7 +171,7 @@ placed on the line following the closing
with the corresponding `if`. **Also see the section on
indenting<A HREF="#long-exps">long expressions</A>.**
-1. **`for` Layout**
+- **`for` Layout**
Space after the semi-colons.
Example:
@@ -179,7 +179,7 @@ Example:
for (a; b; c)
-1. **`switch` Layout**
+- **`switch` Layout**
`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.
@@ -194,7 +194,7 @@ Example:
}
-1. **Expressions**
+- **Expressions**
Space before and after assignment and other and operators. No space between
unary operators (increment, decrement, and negation) and the lvalue.
@@ -208,6 +208,6 @@ Examples:
++a
-1. **Capitalisation of Enums**
+- **Capitalisation of Enums**
No rule.