From b4ea18e338c182509967e88bb9356fe7a3a08f07 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Sun, 9 Dec 2001 18:59:08 +0000 Subject: [PATCH] Per the CSRG's type.h, 'typedef' has a after it. Also add two simpler examples of typedefs to show their formatting. --- share/man/man9/style.9 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index 69b1ab906115..fd8cf464d07b 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.