Documentation/NuttXCCodingStandard.html: Minor updates pointing out some similarities to the GNU coding standard.
This commit is contained in:
parent
659852acd5
commit
f9f6de5ba0
@ -12,7 +12,7 @@
|
|||||||
<h1><big><font color="#3c34ec">
|
<h1><big><font color="#3c34ec">
|
||||||
<i>NuttX C Coding Standard</i>
|
<i>NuttX C Coding Standard</i>
|
||||||
</font></big></h1>
|
</font></big></h1>
|
||||||
<p>Last Updated: January 10, 2019</p>
|
<p>Last Updated: February 5, 2019</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -769,6 +769,10 @@ void some_function(void)
|
|||||||
|
|
||||||
<h2>1.4 <a name="braces">Braces</a></h2>
|
<h2>1.4 <a name="braces">Braces</a></h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
In general, the use of braces in the NuttX coding standard is similar to the use of braces in the <a href="https://www.gnu.org/prep/standards/standards.pdf">GNU Coding standards</a> with a few subtle differences.
|
||||||
|
</p>
|
||||||
|
|
||||||
<p><b>Coding Standard:</b></p>
|
<p><b>Coding Standard:</b></p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
@ -956,9 +960,14 @@ int animals(int animal)
|
|||||||
|
|
||||||
<h2>1.5 <a name="indentation">Indentation</b></h2>
|
<h2>1.5 <a name="indentation">Indentation</b></h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
In general, the indentation in the NuttX coding standard is similar to the indentation requirements of the <a href="https://www.gnu.org/prep/standards/standards.pdf">GNU Coding standards</a> with a few subtle differences.
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>Indentation Unit</b>.
|
<b>Indentation Unit</b>.
|
||||||
Indentation is in units of two spaces; Each indentation level is twos spaces further to the right than the preceding identation levels.
|
Indentation is in units of two spaces; Each indentation level is twos spaces further to the right than the preceding identation levels.
|
||||||
|
TAB characters may not be used for indentation.
|
||||||
</p>
|
</p>
|
||||||
<center><table width="60%" border=1>
|
<center><table width="60%" border=1>
|
||||||
<tr><td bgcolor="white">
|
<tr><td bgcolor="white">
|
||||||
|
Loading…
Reference in New Issue
Block a user