Commit Graph

1432 Commits

Author SHA1 Message Date
jpo
5888f3bb16 LINTED and CONSTCOND are now valid up to the next end of a
global or local declaration/definition/statement. Originally they were
valid on the current and next line, which made it hard to suppress
warnings in constructs with more then one line.

LONGLONG can now be used to suppress errors or warnings in the next
declaration, definition or statement.
1995-10-02 17:29:45 +00:00
jpo
b95167a01a support asm statements and asm modifiers in declarations
asm statements consist of an asm keyword, an optional qualifier, a
left paren, a list of tokens up to and including the matching right
paren, and a semicolon.

asm modifiers consist of an asm keyword, an left paren, a string and a
right paren.

asm statements and modifiers have no semantic for lint(1), they exist only
to avoid complaints about them.
1995-10-02 17:26:52 +00:00
jpo
bcb6c46ca1 some minor bug fixes 1995-10-02 17:22:46 +00:00
jpo
6910cf7927 prototypes override old style function definitions
this is a gnu extension to ansi c
1995-10-02 17:21:24 +00:00
jpo
ef83266200 __{const,signed,volatile}{__,} added
const, signed and volatile are disabled with -t
1995-10-02 17:18:53 +00:00
jpo
2e332f67bf added inline keywords
"inline" is enabled by -g, "__inline" and "__inline__" are always available
1995-10-02 17:14:06 +00:00
jpo
a5d55cc062 prefixed members of dinfo_t with 'd_' 1995-10-02 17:08:31 +00:00
cgd
f676bc478a need <string.h> for strlen() protos. can't just add it to "string.h",
since not all files that need the proto include that.
CVS ----------------------------------------------------------------------
1995-09-29 00:44:02 +00:00
cgd
b3658dd411 need string.h for protos. 1995-09-29 00:32:14 +00:00
cgd
ce713b1483 change #ifdef unix's to also accept __NetBSD__. After 1.1 (per a
decision made a long time ago), 'unix' will no longer be defined, and
is not currently defined on some architectures.
1995-09-29 00:27:51 +00:00
tls
5a955f3527 Sync with 4.4BSD-Lite2 1995-09-28 10:33:55 +00:00
tls
fcf22abfe3 imported from 44lite2 1995-09-28 09:06:06 +00:00
tls
0ca9b9e38e Add 'rs' from 4.4BSD-Lite2 1995-09-28 08:57:17 +00:00
tls
4e4ff4e98c imported from 44lite2 1995-09-28 08:55:50 +00:00
tls
bd18663016 Sync with 4.4BSD-Lite2 1995-09-28 08:49:37 +00:00
perry
20cc106064 Sync with 4.4BSD-Lite2 1995-09-28 08:05:40 +00:00
perry
26727e4c01 Merge and Sync with 4.4BSD-Lite2
Mostly looks like the previous NetBSD version, actually -- only minimal
Lite2 stigmata preserved although I started with Lite2. Mostly the changes
were things like index->strchr and the rest was NetBSD code.
1995-09-28 07:34:35 +00:00
tls
c276504da8 Sync with 4.4BSD-Lite2 1995-09-28 06:57:37 +00:00
perry
10b7bf0260 Add RCS ID 1995-09-28 06:24:35 +00:00
jtc
4d8e53d69f Change formatting so that columns line up; PR #1473 + several duplicates 1995-09-28 06:22:54 +00:00
tls
0d3d818683 Sync with 4.4BSD-Lite2 1995-09-28 06:22:18 +00:00
perry
f04c0f5743 Sync with 4.4BSD-Lite2 1995-09-28 06:19:55 +00:00
tls
7f429c3306 Sync with 4.4BSD-Lite2 1995-09-28 06:05:11 +00:00
tls
5b36a1959d imported from 44lite2 1995-09-28 05:41:29 +00:00
tls
8ddb734554 Sync with 4.4BSD-Lite2 1995-09-28 05:37:28 +00:00
perry
8ba38ce684 Sync with 4.4BSD-Lite2 1995-09-28 05:15:05 +00:00
jtc
ffef8fa9dd Removed SEE ALSO section, we don't have yyfix; PR #1517 1995-09-27 21:37:54 +00:00
jtc
1bd0165884 iostat is in section 8; PR #1533 1995-09-27 19:46:12 +00:00
jtc
519b2df4b4 iostat is in section 8; PR #1533 1995-09-27 19:43:28 +00:00
jtc
8ba230d554 vmstat is in section 8; PR #1532 1995-09-27 19:20:24 +00:00
jtc
132a010296 fix formatting of example; PR #1535 1995-09-27 19:08:42 +00:00
jtc
95c465e08b Update lseek() constants:
L_SET	-> SEEK_SET
And add off_t cast to offset argument.
1995-09-27 18:44:38 +00:00
jtc
6a70570191 include <signal.h> instead of <sys/signal.h> 1995-09-27 18:42:21 +00:00
jtc
6ce8742ab1 Update lseek() constants:
L_SET	-> SEEK_SET
Add off_t cast to offset arg.
1995-09-27 01:10:48 +00:00
jtc
447e47e007 Update lseek() constants:
L_SET	-> SEEK_SET
1995-09-27 01:06:58 +00:00
jtc
0b470f4f06 Fix crash with null eofwrite capabilityand lseek/off_t bug; PR #1346 1995-09-26 06:02:08 +00:00
christos
f4699a7dd3 Revert previous suffix fix. If the .a suffix is present and a .c.a rule is
there, then the rule should be applied. This is the correct behavior.
1995-09-25 02:46:30 +00:00
phil
d706482f56 For the pc532, get struct iv from the protected part of <machine/psl.h>. 1995-09-24 06:34:47 +00:00
christos
ae8c2b9dd3 Don't apply the default suffix rules for nodes that are not in our
current directory because we could be building things outside our
directory that were not meant to be build... Fixes PR/1488
1995-09-22 00:42:10 +00:00
pk
6a4e77edfb Correct timersub() argument order (from Thomas Eberhardt; PR#1470). 1995-09-16 22:32:59 +00:00
pk
7b44b2859d Avoid falling off the end of a fixed-length array (from John F. Woods; PR#1431). 1995-09-15 00:32:33 +00:00
jtc
665fc8b7e7 Fix formatting as suggested in PR #1452 1995-09-14 06:10:53 +00:00
cgd
456a083153 needs string.h for protos. 1995-09-14 01:39:52 +00:00
jtc
7bd4220c4e fix typo; PR #1457 1995-09-12 18:47:09 +00:00
christos
49a4e14351 Handle long lines without core-dumping. 1995-09-10 15:55:13 +00:00
christos
17c2255148 Fix PR/1443:
Dependency rules with `=' in the lhs are parsed as variable assignments.
E.g., the following Makefile fails:

A=a b c d
all: $(A:%=%b)
$(A:%=%b):
	@echo $@
1995-09-10 03:58:16 +00:00
tls
94f6fc8e46 Sync with 4.4lite2 1995-09-08 03:22:54 +00:00
tls
917ef72d79 Sync with 4.4lite2 1995-09-08 01:05:59 +00:00
jtc
1a86f1c724 Revert last change, it seems that a lot of software (including our own
lint) uses yydebug even when YYDEBUG is not defined.
1995-09-07 17:34:04 +00:00
jtc
5a172566ef Fixed bug I introduced when changing printf comparison vs. EOF. Noted by
andreas@planix.com.
1995-09-05 19:57:43 +00:00