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:
David E. O'Brien 2001-12-09 18:59:08 +00:00
parent 319097faa5
commit b4ea18e338
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87569

View File

@ -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.