httpd-cvs mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1334838&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=1334838&r1=1334837&r2=1334838&view=diff
==============================================================================
--- httpd/site/trunk/content/dev/styleguide.mdtext (original)
+++ httpd/site/trunk/content/dev/styleguide.mdtext Mon May  7 00:06:04 2012
@@ -95,12 +95,12 @@ atomic as possible, and place Boolean op
 Example:
 
      static const char *really_long_name(int i, int j,
-					 const char *args, void *foo,
-					 int k)
+                                         const char *args, void *foo,
+                                         int k)
 
-     if (cond1 && (item2 || item3) && (!item4)
-	 && (item5 || item6) && item7) {
-	 do_a_thing();
+     if (cond1 && (item2 || item3) && (!item4)
+         && (item5 || item6) && item7) {
+         do_a_thing();
      }
 
 
@@ -123,12 +123,12 @@ Functions are laid out as follows:
 
     int main(int argc, char **argv)
     {
-	code;
+        code;
     }
 
 The return type is placed on the same line as the function. Arguments (if
 any) are given in ANSI style. If no arguments, declare function
-as<samp>void</samp>. No space between function name and opening bracket,
+as `void`. No space between function name and opening bracket,
 single space after comma separating each argument. The opening brace is
 placed on the line after the definition, indented to line up with the start
 of the return type text. The code is indented with four spaces, and the
@@ -151,10 +151,10 @@ Flow-control statements
 laid out as in this example:
 
     if (expr) {
-	code;
+        code;
     }
     else {
-	code;
+        code;
     }
 
 There is a space between the keyword and the opening bracket. Opening brace
@@ -179,9 +179,9 @@ Example:
 
     switch (x) {
     case a:
-	code;
+        code;
     case b:
-	code;
+        code;
     }
 
 



Mime
View raw message