mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Per the CSRG's type.h, 'typedef' has a <tab> after it.
Also add two simpler examples of typedefs to show their formatting.
This commit is contained in:
parent
319097faa5
commit
b4ea18e338
1 changed files with 3 additions and 1 deletions
|
|
@ -232,9 +232,11 @@ Avoid typedefs ending in
|
|||
except as specified in Standard C or by \*[Px].
|
||||
.Bd -literal
|
||||
/* Make the structure name match the typedef. */
|
||||
typedef struct bar {
|
||||
typedef struct bar {
|
||||
int level;
|
||||
} BAR;
|
||||
typedef int foo; /* This is foo. */
|
||||
typedef const long baz; /* This is baz. */
|
||||
.Ed
|
||||
.Pp
|
||||
All functions are prototyped somewhere.
|
||||
|
|
|
|||
Loading…
Reference in a new issue