diff options
author | obrien <obrien@FreeBSD.org> | 2001-12-09 18:59:08 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-12-09 18:59:08 +0000 |
commit | 9957ba2efb46444a06ca56cc522865b6bdb94643 (patch) | |
tree | 711e064b8855231c5b9353ceaeaf1ba62b1041ba /share/man | |
parent | bb541f1f22ede8a1c3980b6004b1583b2f57e9b4 (diff) | |
download | FreeBSD-src-9957ba2efb46444a06ca56cc522865b6bdb94643.zip FreeBSD-src-9957ba2efb46444a06ca56cc522865b6bdb94643.tar.gz |
Per the CSRG's type.h, 'typedef' has a <tab> after it.
Also add two simpler examples of typedefs to show their formatting.
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man9/style.9 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index 69b1ab9..fd8cf46 100644 --- a/share/man/man9/style.9 +++ b/share/man/man9/style.9 @@ -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. |