From f46ccb5625bb3da0dedbe06a9bb0ff3355ff3f80 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 21 Aug 2002 06:58:21 +0000 Subject: [PATCH] Suggest that function prototypes in kernel headers be alphabetical, unless there's a compelling reason to deviate. Submitted by: Don Lewis Suggestion not objected to by: developers@ --- share/man/man9/style.9 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index 5bcbcda16a1..59a6b72760b 100644 --- a/share/man/man9/style.9 +++ b/share/man/man9/style.9 @@ -265,6 +265,9 @@ local to one source module should be declared .Pp Functions used from other parts of the kernel are prototyped in the relevant include file. +Function prototypes should be listed in a logical order, preferably +alphabetical unless there's a compelling reason to use a different +ordering. .Pp Functions that are used locally in more than one module go into a separate header file, e.g.\&