Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/xlint



Module Name:    src
Committed By:   rillig
Date:           Thu Feb  2 22:23:30 UTC 2023

Modified Files:
        src/usr.bin/xlint/lint1: emit1.c lex.c
        src/usr.bin/xlint/lint2: emit2.c msg.c

Log Message:
lint: clean up

In symtab_search, most of the conditions were redundant, so remove them.

In read_byte, using CHAR_MASK was conceptually wrong, as that constant
is from the target platform while the lexical analysis happens on the
host platform.  It was unnecessary as well, as a hypothetical host
platform with 36-bit chars might encode the characters from the basic
source character set as numbers higher than 0x0_0000_00ff.  Since lint
assumes that both the source character set as well as the execution
character set are the same and based on 8-bit bytes, nothing changes.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/usr.bin/xlint/lint1/emit1.c
cvs rdiff -u -r1.147 -r1.148 src/usr.bin/xlint/lint1/lex.c
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/xlint/lint2/emit2.c
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/xlint/lint2/msg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index