Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/misc Clarify that macros should be #define<TAB>; it's ...



details:   https://anonhg.NetBSD.org/src/rev/ae8bcc844dab
branches:  trunk
changeset: 543337:ae8bcc844dab
user:      jhawk <jhawk%NetBSD.org@localhost>
date:      Sun Feb 23 14:58:50 2003 +0000

description:
Clarify that macros should be #define<TAB>; it's important to specify this
in the actual document, just not in the cvs logs (cf. rev 1.15).

diffstat:

 share/misc/style |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 560e694efccd -r ae8bcc844dab share/misc/style
--- a/share/misc/style  Sun Feb 23 14:43:25 2003 +0000
+++ b/share/misc/style  Sun Feb 23 14:58:50 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: style,v 1.20 2001/10/23 18:51:05 kleink Exp $ */
+/* $NetBSD: style,v 1.21 2003/02/23 14:58:50 jhawk Exp $ */
 
 /*
  * The revision control tag appears first, with a blank line after it.
@@ -30,7 +30,7 @@
 #ifndef __lint
 __COPYRIGHT("@(#) Copyright (c) 2000\n\
        The NetBSD Foundation, inc. All rights reserved.\n");
-__RCSID("$NetBSD: style,v 1.20 2001/10/23 18:51:05 kleink Exp $");
+__RCSID("$NetBSD: style,v 1.21 2003/02/23 14:58:50 jhawk Exp $");
 #endif /* !__lint */
 
 /*
@@ -115,6 +115,8 @@
 
 /*
  * Macros are capitalized, parenthesized, and should avoid side-effects.
+ * Use one TAB between #define and the macro name; spacing after the macro
+ * name may be any whitespace, as appropriate.
  * If they are an inline expansion of a function, the function is defined
  * all in lowercase, the macro has the same name all in uppercase.
  * If the macro is an expression, wrap the expression in parenthesis.



Home | Main Index | Thread Index | Old Index