mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
Fix a few errors concerning use of section block comments in .c files: (#95)
1. No .c file should include a "Public Types" section. Only a header file can define a public type. A .c file can only define a private type. Several files contained private type definitions. The section that they were defined in, however, was incorrectly named "Public Types." Those were easilty changed to "Private Types" which is what they are. 2. No .c file should include a "Public Function Prototypes" section. All global function prototypes should be provided via a header file and never declared with a .c file. For No. 2, I corrected as many cases as was reasonable for the time that I had available. But there are still a dozen or so .c files that declare "Public Function Prototypes" within a .c file. This is bad programming style. These declarations should all be moved to the proper header files.
This commit is contained in:
committed by
Abdelatif Guettouche
parent
f8bcd58be2
commit
f00569816f
@@ -59,7 +59,7 @@
|
||||
#ifdef CONFIG_NETDEV_IOCTL /* Not optional! */
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
* Private Types
|
||||
****************************************************************************/
|
||||
|
||||
/* These structures encapsulate all globals used by the IOCTL logic. */
|
||||
|
||||
Reference in New Issue
Block a user