Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/misc style(5): Omit redundant proscription against .c ...
details: https://anonhg.NetBSD.org/src/rev/233629c4d119
branches: trunk
changeset: 374229:233629c4d119
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Apr 11 14:22:10 2023 +0000
description:
style(5): Omit redundant proscription against .c externs in previous.
diffstat:
share/misc/style | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (29 lines):
diff -r 917c3d9debcb -r 233629c4d119 share/misc/style
--- a/share/misc/style Tue Apr 11 14:03:46 2023 +0000
+++ b/share/misc/style Tue Apr 11 14:22:10 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: style,v 1.69 2023/03/30 10:39:30 riastradh Exp $ */
+/* $NetBSD: style,v 1.70 2023/04/11 14:22:10 riastradh 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.69 2023/03/30 10:39:30 riastradh Exp $");
+__RCSID("$NetBSD: style,v 1.70 2023/04/11 14:22:10 riastradh Exp $");
/*
* VERY important single-line comments look like this.
@@ -362,10 +362,6 @@ function(int a1, int a2, float fl, int a
* declarations next to their first use, and initialize
* opportunistically. This avoids over-initialization and
* accidental bugs caused by declaration reordering.
- *
- * Never declare extern variables in .c files. Declare them in the
- * appropriate .h file shared by the .c file where they are defined
- * and the .c file where they are used.
*/
struct foo three, *four;
double five;
Home |
Main Index |
Thread Index |
Old Index