Module Name: src Committed By: rillig Date: Sat Feb 20 11:06:56 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: make parsing of GCC line directives stricter The previous code accepted '# 123 "file.c" 23' as specifying a system header, just because that number ends with '3'. The original intention was to compare the complete word, not its suffix. Fix that. No practical change since the only flags that are used by GCC are all single-digit. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/usr.bin/xlint/lint1/lex.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.