Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.bin/xlint/lint1
Module Name: src
Committed By: rillig
Date: Sun Jun 20 20:32:42 UTC 2021
Modified Files:
src/usr.bin/xlint/lint1: ckbool.c lex.c lint1.h print.c tree.c
Log Message:
lint: rename val_t.v_unsigned to avoid confusion
The name v_unsigned suggested that the value would be interpreted as
unsigned, which was wrong. Whether a value is signed or unsigned is
decided by v_tspec instead.
Revert the previous commit for boolen constants since their value is
already interpreted as unsigned, and there is no need for any warning
about differences between traditional C and ANSI C since the _Bool type
has only been added ten years later in C99.
The code for printing a tree node was also confused by this struct
member, even with its old name v_ansiu. That code will be fixed in a
follow-up commit.
No functional change.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/xlint/lint1/ckbool.c
cvs rdiff -u -r1.45 -r1.46 src/usr.bin/xlint/lint1/lex.c
cvs rdiff -u -r1.104 -r1.105 src/usr.bin/xlint/lint1/lint1.h
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/xlint/lint1/print.c
cvs rdiff -u -r1.288 -r1.289 src/usr.bin/xlint/lint1/tree.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