Source-Changes-HG archive

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

[src/trunk]: src/share/misc More clarification on uintN_t.



details:   https://anonhg.NetBSD.org/src/rev/50343d5c4e89
branches:  trunk
changeset: 581918:50343d5c4e89
user:      junyoung <junyoung%NetBSD.org@localhost>
date:      Fri Jun 10 06:35:41 2005 +0000

description:
More clarification on uintN_t.

diffstat:

 share/misc/style |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 9c98b4275553 -r 50343d5c4e89 share/misc/style
--- a/share/misc/style  Fri Jun 10 05:11:16 2005 +0000
+++ b/share/misc/style  Fri Jun 10 06:35:41 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: style,v 1.31 2005/02/03 00:27:55 christos Exp $ */
+/* $NetBSD: style,v 1.32 2005/06/10 06:35:41 junyoung Exp $ */
 
 /*
  * The revision control tag appears first, with a blank line after it.
@@ -29,7 +29,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2000\n\
        The NetBSD Foundation, inc. All rights reserved.\n");
-__RCSID("$NetBSD: style,v 1.31 2005/02/03 00:27:55 christos Exp $");
+__RCSID("$NetBSD: style,v 1.32 2005/06/10 06:35:41 junyoung Exp $");
 
 /*
  * VERY important single-line comments look like this.
@@ -170,6 +170,9 @@
        int level;
 } BAR;
 
+/* C99 uintN_t is preferred over u_intN_t. */
+uint32_t zero;
+
 /*
  * All major routines should have a comment briefly describing what
  * they do.  The comment before the "main" routine should describe
@@ -306,7 +309,6 @@
         *
         * DO NOT initialize variables in the declarations.
         */
-       extern uint32_t zero;
        extern u_char one;
        extern char two;
        struct foo three, *four;



Home | Main Index | Thread Index | Old Index