diff --git a/Documentation/NuttXCCodingStandard.html b/Documentation/NuttXCCodingStandard.html index ae06f040fb6..8689ef80587 100644 --- a/Documentation/NuttXCCodingStandard.html +++ b/Documentation/NuttXCCodingStandard.html @@ -1414,6 +1414,7 @@ struct abc_s }; /* Un-named structure field */ ... }; +
Discouraged
-
struct abc_s
{
...
-
-
-
struct
{
int a; /* Value A */
int b; /* Value B */
int c; /* Value C */
} abc;
-
-
-... };-
- The use of structures defined within other structures is acceptable but discouraged. + The use of structures defined within other structures is acceptable provided that they define named fields. + The general practice of defining a structure within the scope of another structure, however, is still but discouraged in any case. The following is preferred:
@@ -1498,6 +1492,7 @@ struct abc_s int c; /* Value C */ ... }; +typedef union xyz_union_u xzy_union_t;-
(The use of typedef'ed unions is acceptable but discouraged)
+The use of typedef'ed unions is acceptable but discouraged.
struct xyz_info_s
{
@@ -1539,6 +1534,7 @@ struct xyz_info_s
} u; /* All union fields must be named */
...
};
+