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:           Sat Nov 30 10:43:49 UTC 2024

Modified Files:
        src/tests/usr.bin/xlint/lint1: decl.c
        src/usr.bin/xlint/lint1: decl.c err.c externs1.h func.c lint1.h tree.c

Log Message:
lint: add back optimization for non-query mode

The main point of the optimization is to skip the expensive calls to
type_name when preparing the message details.  This was not spelled out
explicitly in the comment.

While here, fix the stray 'previous declaration' message that occurred
whenever a function was first declared as 'static' and later defined
without 'static', see query 16.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/tests/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.410 -r1.411 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.257 -r1.258 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.236 -r1.237 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.190 -r1.191 src/usr.bin/xlint/lint1/func.c
cvs rdiff -u -r1.230 -r1.231 src/usr.bin/xlint/lint1/lint1.h
cvs rdiff -u -r1.661 -r1.662 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