NetBSD/usr.bin/xlint/lint1
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
..
cgram.y Unfortunately lint uses c-style comments as directives and these get parsed 1998-11-23 14:37:08 +00:00
decl.c Fix a recurring typo: comparision -> comparison. 1998-07-27 13:50:46 +00:00
emit1.c WARNSify 1998-02-22 15:40:39 +00:00
emit.c WARNSify 1998-02-22 15:40:39 +00:00
err.c Fix a recurring typo: comparision -> comparison. 1998-07-27 13:50:46 +00:00
externs1.h WARNSify 1998-02-22 15:40:39 +00:00
externs.h
func.c Unfortunately lint uses c-style comments as directives and these get parsed 1998-11-23 14:37:08 +00:00
init.c WARNSify 1998-02-22 15:40:39 +00:00
lint1.h
lint.h
main1.c WARNSify 1998-02-22 15:40:39 +00:00
Makefile .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for, 1998-04-09 00:32:31 +00:00
mem1.c WARNSify 1998-02-22 15:40:39 +00:00
mem.c WARNSify 1998-02-22 15:40:39 +00:00
op.h Fix a recurring typo: comparision -> comparison. 1998-07-27 13:50:46 +00:00
param.h Add __ppc__ test 1998-10-08 01:30:50 +00:00
scan.l .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for, 1998-04-09 00:32:31 +00:00
tree.c Propagate the value and test contexts to the right-hand side of a 1998-07-28 03:39:29 +00:00