cgd
a8ec668ddf
convert to use getprogname()
2001-02-19 23:03:42 +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
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
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
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
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
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
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
itohy
edb019abaf
Eliminate memory leaks.
...
Use xrealloc() rather than xmalloc/memcpy/free trio.
1998-10-08 08:20:37 +00:00
sommerfe
bf7d5c8de3
Add -d option, so lint can be used safely when we're not building "in
...
place" (e.g., when DESTDIR is set). This causes the lint driver to
pass -nostdinc -idirafter <dir> to cpp, causing it to ignore
/usr/include and look somewhere else instead..
1998-03-24 23:25:31 +00:00
christos
a06495e3c4
WARNSify
1998-02-22 15:40:39 +00:00
lukem
8ba07ab0b3
use CPPFLAGS instead of CFLAGS
1997-10-24 09:00:17 +00:00
lukem
9ae9df9346
add Makefile.inc to turn off WARNS, and use it
1997-10-20 04:28:24 +00:00
mycroft
004f255040
Use S_IS*(), not S_IF*.
1997-10-19 19:27:40 +00:00
mikel
3f0dbdf761
xref exit(3) not exit(2)
1997-07-10 07:57:07 +00:00
gwr
10e180cc49
Back out the .PATH.c changes. The .depend problem (and others)
...
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr
012e528f2e
Use .PATH.c: ...
1997-05-06 20:44:56 +00:00
christos
3917c3179d
- Makefile cleanups
1997-03-24 21:57:01 +00:00
mouse
ee6a5b2cd6
alternate -> alternative, per PR 2643
1997-03-08 14:24:19 +00:00
cgd
81f0721bbe
* accept the file name '-' to indicate that standard input is to be
...
used as lint1 input. That involves having lint pass the '-' through
to the cpp which preprocesses the lint1 input, and having lint1's
scanner recognize a cpp filename "" as "{standard input}".
1996-12-22 11:31:47 +00:00
thorpej
150c33e60b
Use ${INSTALL}.
1996-10-18 05:55:26 +00:00
jpo
ee102f4854
don't rely on macros predefined by cpp
1995-10-23 14:29:30 +00:00
jpo
aa1bae17a4
updated
1995-10-23 13:45:31 +00:00
cgd
c61d16ddbe
RCS id cleanup
1995-07-03 21:23:45 +00:00
cgd
b14be51dec
lint(1) implementation, by Jochen Pohl. named 'xlint' for a similar
...
reason to why 'install' is named 'xinstall'.
1995-07-03 20:56:35 +00:00