summaryrefslogtreecommitdiff
path: root/share/man/man9/style.9
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-06-24 22:16:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-06-24 22:16:12 +0000
commit145168174bdecbc4185d7d8b663ac69189008f66 (patch)
treec28aedd84054e7f94b4f3d43d11a596051b7083e /share/man/man9/style.9
parent3c213957fc0f6c8d0917cfe36366b7226e770021 (diff)
No variable names associated with prototype parameters, even in the kernel.
By general consensus...
Diffstat (limited to 'share/man/man9/style.9')
-rw-r--r--share/man/man9/style.917
1 files changed, 10 insertions, 7 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index 3debe61e655..61b95568cbd 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: style.9,v 1.18 2001/06/24 22:03:03 millert Exp $
+.\" $OpenBSD: style.9,v 1.19 2001/06/24 22:16:11 millert Exp $
.\"
.Dd June 18, 2001
.Dt STYLE 9
@@ -131,15 +131,16 @@ Use of the
.Li __P
macro in new code is discouraged, although modifications to existing
files should be consistent with that file's conventions.
-Only the kernel has a name associated with the types; i.e., in the kernel use:
-.Bd -literal -offset 0i
-void function(int a);
-.Ed
-and in user land use:
-.Bd -literal -offset 0i
+Prototypes should not have variable names associated with the types; i.e.:
+.Bd -literal -compact -offset 0i
void function(int);
.Ed
.Pp
+not:
+.Bd -literal -compact -offset 0i
+void function(int a);
+.Ed
+.Pp
Prototypes may have an extra space after a tab to enable function names
to line up:
.Bd -literal -offset 0i
@@ -147,6 +148,8 @@ static char *function(int, const char *);
static void usage(void);
.Ed
.Pp
+There should be no space between the function name and the argument list.
+.Pp
Use
.Li __dead
from