httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r816206 - in /websites/staging/httpd/trunk/content: ./ dev/styleguide.html
Date Mon, 07 May 2012 00:06:31 GMT
Author: buildbot
Date: Mon May  7 00:06:31 2012
New Revision: 816206

Log:
Staging update by buildbot for httpd

Modified:
    websites/staging/httpd/trunk/content/   (props changed)
    websites/staging/httpd/trunk/content/dev/styleguide.html

Propchange: websites/staging/httpd/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon May  7 00:06:31 2012
@@ -1 +1 @@
-1334837
+1334838

Modified: websites/staging/httpd/trunk/content/dev/styleguide.html
==============================================================================
--- websites/staging/httpd/trunk/content/dev/styleguide.html (original)
+++ websites/staging/httpd/trunk/content/dev/styleguide.html Mon May  7 00:06:31 2012
@@ -147,12 +147,12 @@ atomic as possible, and place Boolean op
 (preferable) or end of the line.</p>
 <p>Example:</p>
 <div class="codehilite"><pre> <span class="n">static</span> <span
class="n">const</span> <span class="n">char</span> <span class="o">*</span><span
class="n">really_long_name</span><span class="p">(</span><span class="nb">int</span>
<span class="n">i</span><span class="p">,</span> <span class="nb">int</span>
<span class="n">j</span><span class="p">,</span>
-                 <span class="n">const</span> <span class="n">char</span>
<span class="o">*</span><span class="n">args</span><span class="p">,</span>
<span class="n">void</span> <span class="o">*</span><span class="n">foo</span><span
class="p">,</span>
-                 <span class="nb">int</span> <span class="n">k</span><span
class="p">)</span>
+                                     <span class="n">const</span> <span class="n">char</span>
<span class="o">*</span><span class="n">args</span><span class="p">,</span>
<span class="n">void</span> <span class="o">*</span><span class="n">foo</span><span
class="p">,</span>
+                                     <span class="nb">int</span> <span class="n">k</span><span
class="p">)</span>
 
- <span class="k">if</span> <span class="p">(</span><span class="n">cond1</span>
<span class="o">&amp;</span><span class="n">amp</span><span
class="p">;</span><span class="o">&amp;</span><span class="n">amp</span><span
class="p">;</span> <span class="p">(</span><span class="n">item2</span>
<span class="o">||</span> <span class="n">item3</span><span class="p">)</span>
<span class="o">&amp;</span><span class="n">amp</span><span
class="p">;</span><span class="o">&amp;</span><span class="n">amp</span><span
class="p">;</span> <span class="p">(</span><span class="o">!</span><span
class="n">item4</span><span class="p">)</span>
- <span class="o">&amp;</span><span class="n">amp</span><span
class="p">;</span><span class="o">&amp;</span><span class="n">amp</span><span
class="p">;</span> <span class="p">(</span><span class="n">item5</span>
<span class="o">||</span> <span class="n">item6</span><span class="p">)</span>
<span class="o">&amp;</span><span class="n">amp</span><span
class="p">;</span><span class="o">&amp;</span><span class="n">amp</span><span
class="p">;</span> <span class="n">item7</span><span class="p">)</span>
<span class="p">{</span>
- <span class="n">do_a_thing</span><span class="p">();</span>
+ <span class="k">if</span> <span class="p">(</span><span class="n">cond1</span>
<span class="o">&amp;&amp;</span> <span class="p">(</span><span
class="n">item2</span> <span class="o">||</span> <span class="n">item3</span><span
class="p">)</span> <span class="o">&amp;&amp;</span> <span
class="p">(</span><span class="o">!</span><span class="n">item4</span><span
class="p">)</span>
+     <span class="o">&amp;&amp;</span> <span class="p">(</span><span
class="n">item5</span> <span class="o">||</span> <span class="n">item6</span><span
class="p">)</span> <span class="o">&amp;&amp;</span> <span
class="n">item7</span><span class="p">)</span> <span class="p">{</span>
+     <span class="n">do_a_thing</span><span class="p">();</span>
  <span class="p">}</span>
 </pre></div>
 
@@ -177,13 +177,13 @@ of code.</li>
 Functions are laid out as follows:</p>
 <p>int main(int argc, char **argv)
 {
-code;
+    code;
 }</p>
 </li>
 </ol>
 <p>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 <code>void</code>. 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
@@ -207,10 +207,10 @@ Flow-control statements
 (<code>if</code>, <code>while</code>, <code>for</code>,
<em>etc.</em>) are
 laid out as in this example:</p>
 <p>if (expr) {
-code;
+    code;
 }
 else {
-code;
+    code;
 }</p>
 </li>
 </ol>
@@ -235,9 +235,9 @@ four spaces. Braces are laid out as for 
 Example:</p>
 <p>switch (x) {
 case a:
-code;
+    code;
 case b:
-code;
+    code;
 }</p>
 </li>
 <li>



Mime
View raw message