mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Update comments; trivial addtion to a document.
This commit is contained in:
@@ -162,10 +162,10 @@
|
|||||||
Pre-processor Definitions
|
Pre-processor Definitions
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Private Types
|
Private Types (definitions)
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Private Function Prototypes
|
Private Function Prototypes (declarations)
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Private Data (definitions)
|
Private Data (definitions)
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
Pre-processor Definitions
|
Pre-processor Definitions
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Public Types
|
Public Types (definitions)
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Public Data (declarations)
|
Public Data (declarations)
|
||||||
@@ -212,12 +212,12 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a name="idempotence"><b>Header File Idempotence</b></a>.
|
<a name="idempotence"><b>Header File Idempotence</b></a>.
|
||||||
C header file must protect against multipleinclusion through the use of macros that "guard" against multiple definitions if the header file is included multiple times.
|
C header file must protect against multiple inclusion through the use of macros that "guard" against multiple definitions if the header file is included multiple times.
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
Each header file must contain the following pre-processor commands near the beginning of the header file: Between the file header and the "Included Files" block comment.
|
Each header file must contain the following pre-processor conditional logic near the beginning of the header file: Between the file header and the "Included Files" block comment.
|
||||||
For example,
|
For example,
|
||||||
</p>
|
</p>
|
||||||
<ul><pre>
|
<ul><pre>
|
||||||
|
|||||||
+3
-3
@@ -71,9 +71,9 @@
|
|||||||
* Handle incoming TCP input
|
* Handle incoming TCP input
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* dev - The device driver structure containing the received TCP packet.
|
* dev - The device driver structure containing the received TCP packet.
|
||||||
* tcp - A pointer to the TCP header in the packet
|
* tcp - A pointer to the TCP header in the packet
|
||||||
* tcpiplen - Combined length of the IP and TCP headers
|
* iplen - Combined length of the IP and TCP headers
|
||||||
*
|
*
|
||||||
* Return:
|
* Return:
|
||||||
* None
|
* None
|
||||||
|
|||||||
+3
-3
@@ -67,9 +67,9 @@
|
|||||||
* Handle incoming UDP input
|
* Handle incoming UDP input
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* dev - The device driver structure containing the received UDP packet
|
* dev - The device driver structure containing the received UDP packet
|
||||||
* udp - A pointer to the UDP header in the packet
|
* udp - A pointer to the UDP header in the packet
|
||||||
* udpiplen - Length of the IP and UDP headers
|
* iplen - Length of the IP and UDP headers
|
||||||
*
|
*
|
||||||
* Return:
|
* Return:
|
||||||
* OK The packet has been processed and can be deleted
|
* OK The packet has been processed and can be deleted
|
||||||
|
|||||||
Reference in New Issue
Block a user