Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/misc share/misc/style: Don't prescribe using "extern.h...
details: https://anonhg.NetBSD.org/src/rev/2c53ce9e025d
branches: trunk
changeset: 374282:2c53ce9e025d
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Apr 17 00:37:04 2023 +0000
description:
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.
diffstat:
share/misc/style | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 9de2437320fc -r 2c53ce9e025d share/misc/style
--- a/share/misc/style Sun Apr 16 20:46:16 2023 +0000
+++ b/share/misc/style Mon Apr 17 00:37:04 2023 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index