The NetBSD Project

CVS log for src/usr.bin/xlint/common/inittyp.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / xlint / common

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.42 / (download) - annotate - [select for diffs], Sat Jan 20 10:25:57 2024 UTC (5 weeks, 4 days ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored)

lint: unclutter conditional compilation

Revision 1.41 / (download) - annotate - [select for diffs], Sun Dec 3 18:17:41 2023 UTC (2 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

lint: in declarations, replace tab with space

Previously, in some cases, the keywords 'const' or 'struct' were
followed by a tab, which doesn't make sense.

No functional change.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jul 13 08:40:38 2023 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

lint: indent copyright lines consistently

Revision 1.39 / (download) - annotate - [select for diffs], Sat Jul 8 16:13:00 2023 UTC (7 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.38: +34 -26 lines
Diff to previous 1.38 (colored)

lint: warn about pointer casts between different kinds of types

Pointer casts from an integer type to a floating-point type and vice
versa get a 'maybe troublesome' warning now.  The previous assumption
that all types of the same bit-size are convertible may have been valid
from a technical point of view, but still such code should get more
attention.

The rules for struct and union types could be made more fine-grained
later, if the need arises.  To suppress this warning, it's always
possible to cast to an intermediate 'void *'.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Jul 8 09:35:35 2023 UTC (7 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.37: +5 -11 lines
Diff to previous 1.37 (colored)

lint: clarify the meaning of 'portable size in bits' of a type

No functional change.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jul 3 07:03:19 2023 UTC (7 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

lint: rename uppercase QUAD to LLONG

No binary change.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jun 29 10:31:32 2023 UTC (8 months ago) by rillig
Branch: MAIN
Changes since 1.35: +9 -29 lines
Diff to previous 1.35 (colored)

lint: clean up initialization of type properties

No functional change.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jun 9 13:03:49 2023 UTC (8 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

lint: indent local variables consistently

No binary change.

Revision 1.34 / (download) - annotate - [select for diffs], Mon May 22 12:55:04 2023 UTC (9 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.33: +5 -5 lines
Diff to previous 1.33 (colored)

lint: rename constant NOTSPEC to NO_TSPEC

It was too easy to misread the old name as NOT_SPEC instead of the
intended NO_TSPEC.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Nov 30 20:50:22 2022 UTC (14 months, 4 weeks ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.32: +48 -62 lines
Diff to previous 1.32 (colored)

lint: make definitions of basic types simpler

No binary change.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jul 8 21:19:06 2022 UTC (19 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.31: +6 -2 lines
Diff to previous 1.31 (colored)

lint: fix edge cases in the query for redundant cast before assignment

Casting from and to _Bool is only allowed outside strict bool mode.
Outside strict bool mode, _Bool is an integer type, therefore return
early if any of the operands has type _Bool.  In strict bool mode, even
casting from _Bool to _Bool is not allowed, as it is not needed in
practice.

Handle _Complex types before real floating-point types.  Return early
for _Complex types, as these are floating-point types as well.

For pointer casts, not only flag casts to or from 'pointer to void', but
also casts between the same types.

In debug mode, when constructing the type '_Complex float', the type
name of '_Complex' occurs in the debug log.  Outside of debug mode,
printing this type name is an error since this type keyword only occurs
internally, when constructing a type.  At that point, it is not supposed
to occur in any user-visible message.

Revision 1.31 / (download) - annotate - [select for diffs], Fri May 20 21:18:54 2022 UTC (21 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

lint: use __RCSID in lint mode as well

Since 1995-10-02, lint supports __asm statements and __asm modifiers.

No binary change.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Sep 5 18:17:15 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.29: +17 -2 lines
Diff to previous 1.29 (colored)

lint: hide irrelevant type information from lint2

No functional change.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Sep 4 15:39:41 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.28: +70 -81 lines
Diff to previous 1.28 (colored)

lint: make initialization of the basic types table simpler

No functional change.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Sep 4 14:07:51 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.27: +9 -9 lines
Diff to previous 1.27 (colored)

lint: remove _Complex from tspec_name

That type is only used in the parser; the expression trees use FCOMPLEX,
DCOMPLEX or LCOMPLEX instead.

Sort the typeinfo definitions according to their order in tspec_t.  Do
not add _Complex there since it is not needed.  This means that NOTSPEC
and COMPLEX would both trigger an internal error.

Revision 1.27 / (download) - annotate - [select for diffs], Sat Sep 4 10:26:44 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.26: +2 -5 lines
Diff to previous 1.26 (colored)

lint: remove unnecessary includes

The type definitions used to depend on the host's platform
characteristics once, which required <limits.h>.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Aug 28 13:02:25 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.25: +7 -7 lines
Diff to previous 1.25 (colored)

lint: fix lint warning about initializing with negative number

No functional change.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Aug 22 14:50:06 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.24: +7 -3 lines
Diff to previous 1.24 (colored)

lint: remove Tflag and pflag from common declarations

These flags are only needed by lint1 and lint2, but not by the driver
xlint.

No functional change.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jun 30 10:56:24 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.23: +3 -8 lines
Diff to previous 1.23 (colored)

lint: fix bit-size of long double _Complex in portable mode

C99 6.2.5p13 says that LCOMPLEX has the same representation and
alignment requirements as an array type containing exactly two LDOUBLE.

When support for _Complex was added to lint in inittyp.c 1.10 from
2008-09-27, there was no explanation for making the bit-size of LCOMPLEX
different from what C99 says, so it was probably a mistake that went
unnoticed for more than 12 years.  It's an edge case anyway.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jun 29 21:33:09 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (colored)

lint: fix wrong warning about out-of-range value '\xff' for char

This only affects platforms where char has the same representation as
unsigned char.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Mar 27 11:08:00 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

lint: remove space between 'sizeof ('

No functional change.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Mar 20 18:59:00 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.20: +78 -94 lines
Diff to previous 1.20 (colored)

lint: use macro for encoding type information

In lint's strict bool mode, initialization must be of the correct type.
This affects the bool fields in ttab_t, which are initialized with int.
To keep the code brief, preserve these ints and let a macro do the
actual work of converting them to bool.

No change to the generated binary.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Feb 28 18:51:51 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.19: +7 -5 lines
Diff to previous 1.19 (colored)

lint: rename members and access macros of the basic types

Having the measurement unit in the variable name prevents accidental
confusion between bits and bytes, especially since usually the word
'size' means the size in bytes, while 'width' means the size in bits, at
least for integer types.

No functional change.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Feb 20 19:10:37 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

lint: fix lint warnings

No functional change.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jan 24 14:47:43 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.17: +3 -7 lines
Diff to previous 1.17 (colored)

lint: reduce preprocessor magic for platform target types

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jan 17 13:50:32 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.16: +7 -2 lines
Diff to previous 1.16 (colored)

lint: in strict bool mode, don't treat bool as arithmetic type

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jan 9 14:10:15 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.15: +27 -23 lines
Diff to previous 1.15 (colored)

lint: make target platform independent of host platform

If lint is run on a platform that has CHAR_BIT == 10, this doesn't
magically make an ILP32 platform have 40 bits per uint32_t.

At the moment, all of the supported platforms are either ILP32 or
I32LP64 anyway, and all of them have CHAR_BIT == 8 == CHAR_SIZE,
so nothing changes practically.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jan 4 01:12:20 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

lint: revert previous commit, except for the typo

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jan 4 01:11:01 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

lint: fix typo in comment

Revision 1.13 / (download) - annotate - [select for diffs], Wed Dec 30 11:39:55 2020 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

lint: inline STRUCT_ASSIGN

This had only been necessary for some pre-C90 compilers.

Revision 1.11.46.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:26 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.11: +11 -2 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Sync with HEAD

Revision 1.11.44.1 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:59 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.11: +11 -2 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Ssync with HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Fri Sep 7 15:16:15 2018 UTC (5 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp
Changes since 1.11: +11 -2 lines
Diff to previous 1.11 (colored)

recognize int128

Revision 1.10.6.1 / (download) - annotate - [select for diffs], Wed May 13 19:20:13 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.11 / (download) - annotate - [select for diffs], Wed Apr 15 01:20:57 2009 UTC (14 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-premerge-20091211, matt-nb8-mediatek-base, matt-nb8-mediatek, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, localcount-20160914, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Lukemify (WARNS=4)

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 26 22:52:24 2008 UTC (15 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: jym-xensuspend
Changes since 1.9: +5 -2 lines
Diff to previous 1.9 (colored)

Teach lint about long double _Complex (C99)

Revision 1.8.10.1 / (download) - annotate - [select for diffs], Sun May 18 12:36:11 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.8: +32 -26 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

sync with head.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Apr 25 22:18:34 2008 UTC (15 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, hpcarm-cleanup-nbase
Changes since 1.8: +32 -26 lines
Diff to previous 1.8 (colored)

preliminary _Complex support.
NB: Does not really understand type conversions between complex and doubles.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Feb 7 14:20:58 2007 UTC (17 years ago) by hubertf
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42
Changes since 1.7: +2 -3 lines
Diff to previous 1.7 (colored)

Remove unused ctype.h header.
Contributed by Slava Semushin <slava.semushin@gmail.com> in private mail.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Sep 12 08:58:52 2004 UTC (19 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.6: +5 -2 lines
Diff to previous 1.6 (colored)

recognize _Bool.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Tue Jun 22 07:18:25 2004 UTC (19 years, 8 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.5: +6 -2 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Pull up revision 1.6 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jun 20 22:20:16 2004 UTC (19 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.5: +6 -2 lines
Diff to previous 1.5 (colored)

Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944

Revision 1.5 / (download) - annotate - [select for diffs], Thu May 29 18:12:17 2003 UTC (20 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.4: +10 -4 lines
Diff to previous 1.4 (colored)

- 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).

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jan 31 19:36:53 2002 UTC (22 years, 1 month ago) by tv
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, fvdl_fs64_base
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Protect __RCSID and __COPYRIGHT from being invoked if not defined.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jan 30 06:55:02 2002 UTC (22 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.2: +6 -6 lines
Diff to previous 1.2 (colored)

Define FLOAT_SIZE, DOUBLE_SIZE, LDOUBLE_SIZE, and ENUM_SIZE in
target-specific headers, and use the definitions when initializing
the type table.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jan 21 19:49:51 2002 UTC (22 years, 1 month ago) by tv
Branch: MAIN
Changes since 1.1: +3 -4 lines
Diff to previous 1.1 (colored)

Add hooks for compiling on non-NetBSD hosts.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jan 18 21:01:38 2002 UTC (22 years, 1 month ago) by thorpej
Branch: MAIN

Centralize the initialization/declaration of the ttab.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>