Module Name: src Committed By: rillig Date: Sun Apr 18 08:52:04 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: err.c externs1.h lint1.h Log Message: lint: add error_at, warning_at, message_at Right now there are several places in the code that use the global variable curr_pos for passing a parameter to the diagnostic functions. That's not what global variables are for. Make it easy for the code to migrate to the parameter-passing style. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.112 -r1.113 src/usr.bin/xlint/lint1/err.c cvs rdiff -u -r1.106 -r1.107 src/usr.bin/xlint/lint1/externs1.h cvs rdiff -u -r1.96 -r1.97 src/usr.bin/xlint/lint1/lint1.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.