Subject: CVS commit: src/usr.bin/xlint
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 05/29/2003 18:12:17
Module Name: src
Committed By: christos
Date: Thu May 29 18:12:17 UTC 2003
Modified Files:
src/usr.bin/xlint/arch/alpha: targparam.h
src/usr.bin/xlint/arch/arm: targparam.h
src/usr.bin/xlint/arch/hppa: targparam.h
src/usr.bin/xlint/arch/i386: targparam.h
src/usr.bin/xlint/arch/m68000: targparam.h
src/usr.bin/xlint/arch/m68k: targparam.h
src/usr.bin/xlint/arch/mips: targparam.h
src/usr.bin/xlint/arch/ns32k: targparam.h
src/usr.bin/xlint/arch/powerpc: targparam.h
src/usr.bin/xlint/arch/sh3: targparam.h
src/usr.bin/xlint/arch/sh5: targparam.h
src/usr.bin/xlint/arch/sparc: targparam.h
src/usr.bin/xlint/arch/sparc64: targparam.h
src/usr.bin/xlint/arch/vax: targparam.h
src/usr.bin/xlint/arch/x86_64: targparam.h
src/usr.bin/xlint/common: inittyp.c
Log Message:
- make all targparam.h files consistent with the arch includes
- add a new INTPTR_IS_LONG define and use it.
- XXX: the PTRDIFF, SIZEOF, INTPTR defines really make lint more relaxed
in some platforms than others. We should really be looking for the
particular tokens to enable this kind of checking. I.e.
now:
char *p;
int foo = (int)p;
does not produce a warning on INTPTR_IS_LONG == 0 platformas.
In reality it should only elide the warning if:
char *p;
int foo = (intptr_t)p;
but it is not that smart (yet).
To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 src/usr.bin/xlint/arch/alpha/targparam.h
cvs rdiff -r1.2 -r1.3 src/usr.bin/xlint/arch/arm/targparam.h
cvs rdiff -r1.1 -r1.2 src/usr.bin/xlint/arch/hppa/targparam.h
cvs rdiff -r1.2 -r1.3 src/usr.bin/xlint/arch/i386/targparam.h
cvs rdiff -r1.1 -r1.2 src/usr.bin/xlint/arch/m68000/targparam.h
cvs rdiff -r1.2 -r1.3 src/usr.bin/xlint/arch/m68k/targparam.h
cvs rdiff -r1.2 -r1.3 src/usr.bin/xlint/arch/mips/targparam.h
cvs rdiff -r1.2 -r1.3 src/usr.bin/xlint/arch/ns32k/targparam.h
cvs rdiff -r1.2 -r1.3 src/usr.bin/xlint/arch/powerpc/targparam.h
cvs rdiff -r1.2 -r1.3 src/usr.bin/xlint/arch/sh3/targparam.h
cvs rdiff -r1.1 -r1.2 src/usr.bin/xlint/arch/sh5/targparam.h
cvs rdiff -r1.2 -r1.3 src/usr.bin/xlint/arch/sparc/targparam.h
cvs rdiff -r1.3 -r1.4 src/usr.bin/xlint/arch/sparc64/targparam.h
cvs rdiff -r1.2 -r1.3 src/usr.bin/xlint/arch/vax/targparam.h
cvs rdiff -r1.2 -r1.3 src/usr.bin/xlint/arch/x86_64/targparam.h
cvs rdiff -r1.4 -r1.5 src/usr.bin/xlint/common/inittyp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.