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:           Sat Jan 16 02:40:03 UTC 2021

Modified Files:
        src/usr.bin/xlint/common: emit.c externs.h lint.h tyname.c
        src/usr.bin/xlint/lint1: cgram.y decl.c emit1.c externs1.h func.c
            init.c lint1.h main1.c mem1.c oper.c scan.l tree.c
        src/usr.bin/xlint/lint2: chk.c externs2.h hash.c main2.c msg.c read.c
        src/usr.bin/xlint/xlint: xlint.c

Log Message:
lint: replace 0 and 1 with false and true, where appropriate

Change in behavior: Passing the option -h exactly 4294967296 times or
any multiple thereof is no longer equivalent to passing it never at all,
it is now equivalent to passing it once.  See main2.c, hflag++ for the
actual change.

Other than that, no functional change intended.

A very large portion of the code already conformed to the requirements
of the strict bool mode.  The only missing thing was using the constant
literals false and true instead of 0 and 1.  For sure there are some
integer literals left that can be converted.  For now, all literals that
appeared in the form " = 0" or " = 1" have been replaced.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/xlint/common/emit.c
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/xlint/common/externs.h
cvs rdiff -u -r1.24 -r1.25 src/usr.bin/xlint/common/lint.h
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/xlint/common/tyname.c
cvs rdiff -u -r1.139 -r1.140 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.121 -r1.122 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.36 -r1.37 src/usr.bin/xlint/lint1/emit1.c
cvs rdiff -u -r1.55 -r1.56 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.58 -r1.59 src/usr.bin/xlint/lint1/func.c
cvs rdiff -u -r1.61 -r1.62 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.54 -r1.55 src/usr.bin/xlint/lint1/lint1.h
cvs rdiff -u -r1.35 -r1.36 src/usr.bin/xlint/lint1/main1.c
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/xlint/lint1/mem1.c
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/xlint/lint1/oper.c
cvs rdiff -u -r1.117 -r1.118 src/usr.bin/xlint/lint1/scan.l
cvs rdiff -u -r1.153 -r1.154 src/usr.bin/xlint/lint1/tree.c
cvs rdiff -u -r1.33 -r1.34 src/usr.bin/xlint/lint2/chk.c
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/xlint/lint2/externs2.h
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/xlint/lint2/hash.c \
    src/usr.bin/xlint/lint2/main2.c
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/xlint/lint2/msg.c
cvs rdiff -u -r1.36 -r1.37 src/usr.bin/xlint/lint2/read.c
cvs rdiff -u -r1.53 -r1.54 src/usr.bin/xlint/xlint/xlint.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