Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/include Add multiple protection inclusion.



details:   https://anonhg.NetBSD.org/src/rev/897f66b1ef36
branches:  trunk
changeset: 557874:897f66b1ef36
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jan 20 19:09:27 2004 +0000

description:
Add multiple protection inclusion.
s/u_int/unsigned int/
Fix typo.

diffstat:

 sys/arch/vax/include/vaxfp.h |  26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)

diffs (54 lines):

diff -r e2ccff30c6bb -r 897f66b1ef36 sys/arch/vax/include/vaxfp.h
--- a/sys/arch/vax/include/vaxfp.h      Tue Jan 20 19:01:22 2004 +0000
+++ b/sys/arch/vax/include/vaxfp.h      Tue Jan 20 19:09:27 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vaxfp.h,v 1.2 2003/10/30 12:05:41 kleink Exp $ */
+/*     $NetBSD: vaxfp.h,v 1.3 2004/01/20 19:09:27 matt Exp $   */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -41,6 +41,8 @@
  * Only F_floating and D_floating types are defined here;
  * G_floating and H_floating are not supported by NetBSD.
  */
+#ifndef _VAX_VAXFP_H__
+#define        _VAX_VAXFP_H__
 
 #define        FFLT_EXPBITS            8
 #define        FFLT_FRACBITS           23
@@ -49,18 +51,18 @@
 #define        DFLT_FRACBITS           55
 
 struct vax_f_floating {
-       u_int   fflt_frach:7;
-       u_int   fflt_exp:8;
-       u_int   fflt_sign:1;
-       u_int   fflt_fracl:16;
+       unsigned int    fflt_frach:7;
+       unsigned int    fflt_exp:8;
+       unsigned int    fflt_sign:1;
+       unsigned int    fflt_fracl:16;
 };
 
 struct vax_d_floating {
-       u_int   dflt_frach:7;
-       u_int   dflt_exp:8;
-       u_int   dflt_sign:1;
-       u_int   dflt_fracm:16;
-       u_int   dflt_fracl;
+       unsigned int    dflt_frach:7;
+       unsigned int    dflt_exp:8;
+       unsigned int    dflt_sign:1;
+       unsigned int    dflt_fracm:16;
+       unsigned int    dflt_fracl;
 };
 
 /*
@@ -80,4 +82,6 @@
 union vax_dfloating_u {
        double                  dfltu_d;
        struct vax_d_floating   dfltu_dflt;
-;}
+};
+
+#endif /* _VAX_VAXFP_H__ */



Home | Main Index | Thread Index | Old Index