cgd
fd8d16c72f
fix broken NetBSD RCS id tags
2001-02-24 00:43:50 +00:00
cgd
c2bdafab79
use getprogname()
2001-02-20 23:51:59 +00:00
cgd
a8ec668ddf
convert to use getprogname()
2001-02-19 23:03:42 +00:00
bjh21
422a592092
__arm26__ || __arm32__ -> __arm__
2001-02-10 19:15:24 +00:00
enami
b25b640d38
No space is allowed before comma in optarg for -X option.
2001-01-23 23:06:11 +00:00
wiz
18f3d66238
Handle arguments in a slightly more standard way (avoid resetting optind).
2000-11-27 00:54:25 +00:00
mrg
f81973bb8f
sparc & sparc64 use `long' for ptrdiff_t.
2000-11-08 02:30:22 +00:00
is
135600f947
More format string cleanup by sommerfeld.
2000-10-11 14:46:00 +00:00
cgd
b653335cf3
don't build lint libs if MKLINT == no
2000-07-27 03:29:28 +00:00
mycroft
6ea1997e79
Fix problem building lint.7.
2000-07-23 22:17:14 +00:00
christos
6fa36b3bb7
better way to handle lint.7
2000-07-06 01:21:46 +00:00
christos
b28978bb69
document new flags.
2000-07-06 01:17:18 +00:00
christos
17ac48f4b1
pass -X <id>[,<id>]... and -w to lint1
2000-07-06 01:12:24 +00:00
christos
ab89a2b0b0
build lint.7 man page
2000-07-06 01:11:23 +00:00
christos
4017aef2ee
add 3 new flags:
...
-m print message list
-X <id>[,<id>]... suppress error messages with give ids.
-w treat warnings as errors.
2000-07-06 01:10:51 +00:00
christos
86cf133f3b
new function and new flag...
2000-07-06 01:09:56 +00:00
christos
2e6af79a57
- support for -X flag
...
- support for -m flag
- print the error number in each message
2000-07-06 01:09:20 +00:00
christos
3c68257297
new script to generate a man page of error messages that lint generates
2000-07-06 01:08:10 +00:00
christos
5c2e510661
Prevent lint1 from coredumping on invalid c code such as:
...
foo((sockaddr *(void *))0);
This fix is imperfect, because right now we just check the subtype
chains for NULL and we return to the caller when the loop ends, leaving
the upper layers to cope with the syntax error. Ideally we should:
a.) return an error to the upper layer, or
b.) not call the type analysis routines in the presence of a syntax
error.
That would require a significant re-write which would take much more time
than I have...
2000-07-05 22:50:59 +00:00
matt
fcd0fb118f
Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>,
...
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles
2000-07-03 02:51:12 +00:00
wrstuden
0e530441c1
Use execvp() instead of execv(). Deals with the case where CC, the compiler,
...
is not a full path. For instance, "cc".
2000-06-29 02:56:47 +00:00
matt
60dec93655
change lint to ${LINT} ${LINTFLAGS} so that includes in ${DESTDIR} are used.
2000-06-14 20:22:19 +00:00
cgd
d220ca5ba3
fix up NetBSD RCS Ids to match the standard, and the leading comment as
...
to match as well. No functional changes.
2000-06-14 06:48:47 +00:00
simonb
659b78955d
Don't need local extern declaration of strtouq() - it's in <stdlib.h>.
2000-05-10 05:09:17 +00:00
bjh21
6c97e2bd78
Initial commit of arm26 port
2000-05-09 21:55:44 +00:00
bad
dc38443eae
Catch up with changing size_t to ulong on sparc 10 months ago.
2000-04-09 01:08:17 +00:00
garbled
86e14c4a11
Add parsing of the CC env variable, and a -Bpath flag (for /usr/libexec)
...
so cross-building of lint libraries can be made possible. Tested
building a powerpc libc via make build on an alpha.
2000-03-22 01:09:34 +00:00
soren
89c5a767f8
Fix doubled 'the's.
2000-03-13 22:55:05 +00:00
mycroft
c2c3950608
More .mk file fallout. *sigh*
2000-01-23 20:59:11 +00:00
itojun
bb41dd1eaa
add "#ifdef __sh3__" section.
...
(part of NetBSD/sh3 patches)
1999-09-12 16:10:45 +00:00
kleink
938ac456e0
Define __LINT__, per XCU5.
1999-09-09 09:34:25 +00:00
jwise
75eb9e11a9
Slight improvement to last fix: don't need to reset the cpp tempfile for
...
files which don't need to be run through cpp. Also, use vfork() instead of
fork().
Both from Anders Hjalmarsson (Anders.Hjalmarsson@economics.gu.se )
1999-09-07 02:36:57 +00:00
jwise
6c0498c892
Apply fix from PR bin/8328 by Anders Hjalmarsson (Anders.Hjalmarsson@economics.gu.se):
...
work properly again when passwd multiple files on the command line.
1999-09-06 06:45:20 +00:00
christos
f53f008dfb
More cosmetics in the usage message...
1999-05-03 15:45:01 +00:00
christos
5cb75fd417
Now that we use cc -E, -U__GNUC__ to avoid gnu extensions. Nuke the
...
__attribute__ and __extension__ workarounds.
Our invariant is: No gcc extensions if __GNUC__ is not defined, so lint
should not be playing around trying to pretend it is gcc.
1999-05-03 15:23:27 +00:00
christos
e782f12df1
Deal with gcc __extension__({ }). We assume that it returns a value 0, and
...
we prepend a /*NOSTRICT*/ comment to avoid constant in conditional context
warning.
1999-04-29 12:40:39 +00:00
mrg
b30d0fe7ba
use "cc -E" not cpp directly. this allows lint(1) to be unaware of any
...
machine-dependant defines that cc(1) may normally define, and also
means that the mips ports work again.
1999-04-22 04:40:58 +00:00
garbled
9e44e9b578
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
...
so we shouldn't override it with versions in the manpages. Many more to
come.
1999-03-22 18:16:34 +00:00
ross
7f8e818918
Missing .El.
1999-03-09 03:19:28 +00:00
mycroft
a1c657fe56
Clean up SYNOPSIS formatting.
1999-03-07 11:29:58 +00:00
lukem
dcab0210a0
convert from NOxxx= to MKxxx=no.
...
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
christos
487c013c51
char -> unsigned char
1998-12-20 19:05:19 +00:00
christos
8f9762f2e2
pass -CC instead of -C to cpp so that we preserve macro comments in place.
1998-12-09 12:28:36 +00:00
christos
d79deccee9
Unfortunately lint uses c-style comments as directives and these get parsed
...
at the lexical analysis stage not at the syntax parsing stage. The upshot
is that:
if (expr) {
stmt1;
}
/* LINTED */
stmt2;
stmt2 is the look-ahead token for the parser to choose between and if-then-else
statement as opposed to an if-then statement. Unfortunately the side effect
is that the LINTED directive gets reset before stmt2 gets parsed. We fix this,
by remembering the the linted directive during the if statement parsing and
restoring it at the appropriate time.
1998-11-23 14:37:08 +00:00
christos
e79f03e595
Fix problems with LINTED comment:
...
if (a) b;
/*LINTED*/
c;
if (a) { b; }
/*LINTED*/
c;
do { b; }
/*LINTED*/
while (c);
Produced warnings for c.
1998-11-13 16:48:01 +00:00
itohy
a42010baf2
Eliminate memory leaks at case labels.
1998-10-10 20:51:48 +00:00
itohy
edb019abaf
Eliminate memory leaks.
...
Use xrealloc() rather than xmalloc/memcpy/free trio.
1998-10-08 08:20:37 +00:00
wsanchez
9e44eb8cc1
Add __ppc__ test
1998-10-08 01:30:50 +00:00
mycroft
49b1e89cfe
If the return value is sometimes discarded, output `sometimes ignored' rather
...
than `always ignored'.
1998-07-28 05:12:00 +00:00
mycroft
a65a57d7b3
Propagate the value and test contexts to the right-hand side of a
...
comma operator.
1998-07-28 03:39:29 +00:00