summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-12-09 18:59:08 +0000
committerobrien <obrien@FreeBSD.org>2001-12-09 18:59:08 +0000
commit9957ba2efb46444a06ca56cc522865b6bdb94643 (patch)
tree711e064b8855231c5b9353ceaeaf1ba62b1041ba /share
parentbb541f1f22ede8a1c3980b6004b1583b2f57e9b4 (diff)
downloadFreeBSD-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')
-rw-r--r--share/man/man9/style.94
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.
OpenPOWER on IntegriCloud