Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/common Remove some __STDC__ tests.



details:   https://anonhg.NetBSD.org/src/rev/d2cdb059365d
branches:  trunk
changeset: 532725:d2cdb059365d
user:      wiz <wiz%NetBSD.org@localhost>
date:      Thu Jun 13 23:00:16 2002 +0000

description:
Remove some __STDC__ tests.

diffstat:

 usr.bin/xlint/common/param.h |  11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diffs (32 lines):

diff -r 6ff29704a346 -r d2cdb059365d usr.bin/xlint/common/param.h
--- a/usr.bin/xlint/common/param.h      Thu Jun 13 22:59:02 2002 +0000
+++ b/usr.bin/xlint/common/param.h      Thu Jun 13 23:00:16 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.2 2002/02/05 03:04:26 thorpej Exp $        */
+/*     $NetBSD: param.h,v 1.3 2002/06/13 23:00:16 wiz Exp $    */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -67,11 +67,9 @@
 #define WCHAR  INT
 
 /*
- * long double only in ANSI C.
- *
  * And the sparc64 long double code generation is broken.
  */
-#if !defined(__sparc64__) && defined(__STDC__)
+#if !defined(__sparc64__)
 typedef        long double ldbl_t;
 #else
 typedef        double  ldbl_t;
@@ -80,9 +78,4 @@
 /*
  * Some traditional compilers are not able to assign structures.
  */
-#ifdef __STDC__
 #define STRUCT_ASSIGN(dest, src)       (dest) = (src)
-#else
-#define STRUCT_ASSIGN(dest, src)       (void)memcpy(&(dest), &(src), \
-                                                    sizeof (dest));
-#endif



Home | Main Index | Thread Index | Old Index