diff options
author | markm <markm@FreeBSD.org> | 2002-07-19 15:19:23 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-07-19 15:19:23 +0000 |
commit | e290933e4df6d61f2d413de8d779ad151eca4708 (patch) | |
tree | 7c251fa21fd198cb0c54a7290d1e978d05b3f1af /usr.bin/xlint/common | |
parent | a9c0aaa0e8a6efa66f2c4364b24f1bf7520d9a53 (diff) | |
download | FreeBSD-src-e290933e4df6d61f2d413de8d779ad151eca4708.zip FreeBSD-src-e290933e4df6d61f2d413de8d779ad151eca4708.tar.gz |
Snapshot of NetBSD's (x)lint. Little functionality, just some code
tidy-ups.
Diffstat (limited to 'usr.bin/xlint/common')
-rw-r--r-- | usr.bin/xlint/common/lint.h | 2 | ||||
-rw-r--r-- | usr.bin/xlint/common/param.h | 11 |
2 files changed, 3 insertions, 10 deletions
diff --git a/usr.bin/xlint/common/lint.h b/usr.bin/xlint/common/lint.h index c73f73c..c50d28d 100644 --- a/usr.bin/xlint/common/lint.h +++ b/usr.bin/xlint/common/lint.h @@ -1,4 +1,4 @@ -/* $NetBSD: lint.h,v 1.3 2002/01/31 22:44:00 tv Exp $ */ +/* $NetBSD: lint.h,v 1.5 2002/03/07 18:29:56 tv Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl diff --git a/usr.bin/xlint/common/param.h b/usr.bin/xlint/common/param.h index 46f7326..5a28ce4 100644 --- a/usr.bin/xlint/common/param.h +++ b/usr.bin/xlint/common/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.1 2002/01/18 20:39:24 thorpej Exp $ */ +/* $NetBSD: param.h,v 1.2 2002/02/05 03:04:26 thorpej 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 @@ typedef double ldbl_t; /* * 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 |