This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[wwwdocs] codingconventions.html -- convert to HTML 5
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 2 Sep 2018 22:26:20 +0200 (CEST)
- Subject: [wwwdocs] codingconventions.html -- convert to HTML 5
Convert to HTML by using CSS instead of cellpadding= and align=.
On the way ensure that all table rows have the appropriate number
of cells.
Committed.
Gerald
Index: codingconventions.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/codingconventions.html,v
retrieving revision 1.83
diff -u -r1.83 codingconventions.html
--- codingconventions.html 1 Sep 2018 23:42:00 -0000 1.83
+++ codingconventions.html 2 Sep 2018 20:24:28 -0000
@@ -298,7 +298,7 @@
documentation and diagnostics is more important than that in comments
and code. The following table lists some simple cases:</p>
-<table cellpadding="4">
+<table class="padding5">
<tr>
<th>Use...</th><th>...instead of</th><th>Rationale</th>
</tr>
@@ -393,6 +393,7 @@
<tr>
<td>"free software" or just "free"</td>
<td>"Open Source" or "OpenSource"</td>
+ <td></td>
</tr>
<tr>
<td>"front end" (noun)</td>
@@ -448,6 +449,7 @@
<tr>
<td>"Objective-C"</td>
<td>"Objective C"</td>
+ <td></td>
</tr>
<tr>
<td>"prologue"</td>
@@ -457,6 +459,7 @@
<tr>
<td>"PowerPC"</td>
<td>"powerpc", "powerPC" or "PowerPc"</td>
+ <td></td>
</tr>
<tr>
<td>"Red Hat"</td>
@@ -483,10 +486,12 @@
<tr>
<td>"SPARC"</td>
<td>"Sparc" or "sparc"</td>
+ <td></td>
</tr>
<tr>
<td>"testcase", "testsuite"</td>
<td>"test-case" or "test case", "test-suite" or "test suite"</td>
+ <td></td>
</tr>
<tr>
<td>"uppercase"</td>
@@ -496,6 +501,7 @@
<tr>
<td>"VAX", "VAXen", "MicroVAX"</td>
<td>"vax" or "Vax", "vaxen" or "vaxes", "microvax" or "microVAX"</td>
+ <td></td>
</tr>
</table>
@@ -778,26 +784,30 @@
Code in GCC should use the following formatting conventions:
</p>
-<table cellpadding="4">
+<table class="padding5">
<tr>
- <th align="left">For</th>
- <th align="right">Use...</th><th align="left">...instead of</th>
+ <th class="left">For</th>
+ <th class="right">Use...</th>
+ <th class="left">...instead of</th>
</tr><tr>
- <td align="left">logical not</td>
- <td align="right"><code>!x</code></td><td><code>! x</code></td>
+ <td class="left">logical not</td>
+ <td class="right"><code>!x</code></td>
+ <td><code>! x</code></td>
</tr><tr>
- <td align="left">bitwise complement</td>
- <td align="right"><code>~x</code></td><td><code>~ x</code></td>
+ <td class="left">bitwise complement</td>
+ <td class="right"><code>~x</code></td>
+ <td><code>~ x</code></td>
</tr><tr>
- <td align="left">unary minus</td>
- <td align="right"><code>-x</code></td><td><code>- x</code></td>
+ <td class="left">unary minus</td>
+ <td class="right"><code>-x</code></td>
+ <td><code>- x</code></td>
</tr><tr>
- <td align="left">cast</td>
- <td align="right"><code>(foo) x</code></td>
+ <td class="left">cast</td>
+ <td class="right"><code>(foo) x</code></td>
<td><code>(foo)x</code></td>
</tr><tr>
- <td align="left">pointer dereference</td>
- <td align="right"><code>*x</code></td>
+ <td class="left">pointer dereference</td>
+ <td class="right"><code>*x</code></td>
<td><code>* x</code></td>
</tr>
</table>