Source-Changes archive

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

CVS commit: src



Module Name:    src
Committed By:   rillig
Date:           Tue Jan  9 23:46:54 UTC 2024

Modified Files:
        src/tests/usr.bin/xlint/lint1: d_bltinoffsetof.c
        src/usr.bin/xlint/lint1: cgram.y externs1.h init.c lint1.h tree.c

Log Message:
lint: allow complex offsetof(type, member-designator)

Both GCC 11 and Clang 8 accept member-designators that are not
identifiers but designator sequences, such as in 'offsetof(struct stat,
st_atim.tv_sec)', so make lint accept them as well.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/d_bltinoffsetof.c
cvs rdiff -u -r1.477 -r1.478 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.209 -r1.210 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.253 -r1.254 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.206 -r1.207 src/usr.bin/xlint/lint1/lint1.h
cvs rdiff -u -r1.591 -r1.592 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