summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-08-21 06:58:21 +0000
committerimp <imp@FreeBSD.org>2002-08-21 06:58:21 +0000
commit9cf789ad204f6cf3d8bd0a15970c66a125b3926b (patch)
tree820408d9940ac51be7a255e648dbbfe07369ab2b
parentca5f1feb36236af0004e071de7f9232aa3893c56 (diff)
downloadFreeBSD-src-9cf789ad204f6cf3d8bd0a15970c66a125b3926b.zip
FreeBSD-src-9cf789ad204f6cf3d8bd0a15970c66a125b3926b.tar.gz
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@
-rw-r--r--share/man/man9/style.93
1 files changed, 3 insertions, 0 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index 5bcbcda..59a6b72 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.\&
OpenPOWER on IntegriCloud