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:           Sun Jan 10 00:05:46 UTC 2021

Modified Files:
        src/usr.bin/xlint/common: lint.h
        src/usr.bin/xlint/lint1: cgram.y decl.c emit1.c func.c init.c scan.l
            tree.c
        src/usr.bin/xlint/lint2: chk.c

Log Message:
lint: rename type classification macros

The previous names tspec_is_int and tspec_is_uint were confusing because
there are actually tspec_t constants called INT and UINT, these
classification macros return true for other integer types as well,
though.

While here, remove the prefix "tspec_" from these macros.  It wasn't as
helpful as intended, in many cases it was obviously redundant, when it
was called as tspec_is_integer(tn->tn_type->t_tspec).

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/xlint/common/lint.h
cvs rdiff -u -r1.136 -r1.137 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.113 -r1.114 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.34 -r1.35 src/usr.bin/xlint/lint1/emit1.c
cvs rdiff -u -r1.54 -r1.55 src/usr.bin/xlint/lint1/func.c
cvs rdiff -u -r1.60 -r1.61 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.115 -r1.116 src/usr.bin/xlint/lint1/scan.l
cvs rdiff -u -r1.143 -r1.144 src/usr.bin/xlint/lint1/tree.c
cvs rdiff -u -r1.32 -r1.33 src/usr.bin/xlint/lint2/chk.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