Module Name: src
Committed By: dholland
Date: Mon Apr 17 00:37:04 UTC 2023
Modified Files:
src/share/misc: style
Log Message:
share/misc/style: Don't prescribe using "extern.h" for all prototypes.
That's very 80s.
No objection (or even response, amazingly enough) on tech-userlevel in
two weeks.
To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/share/misc/style
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/misc/style
diff -u src/share/misc/style:1.72 src/share/misc/style:1.73
--- src/share/misc/style:1.72 Sat Apr 15 12:22:37 2023
+++ src/share/misc/style Mon Apr 17 00:37:04 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: style,v 1.72 2023/04/15 12:22:37 rillig Exp $ */
+/* $NetBSD: style,v 1.73 2023/04/17 00:37:04 dholland Exp $ */
/*
* The revision control tag appears first, with a blank line after it.
@@ -30,7 +30,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2008\
The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: style,v 1.72 2023/04/15 12:22:37 rillig Exp $");
+__RCSID("$NetBSD: style,v 1.73 2023/04/17 00:37:04 dholland Exp $");
/*
* VERY important single-line comments look like this.
@@ -356,7 +356,8 @@ function(int a1, int a2, float fl, int a
* When declaring variables in functions, multiple variables per line
* are okay. If a line overflows reuse the type keyword.
*
- * Function prototypes should go in the include file "extern.h".
+ * Function prototypes and external data declarations should go in a
+ * suitable include file.
*
* Avoid initializing variables in the declarations; move
* declarations next to their first use, and initialize