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:           Thu Jun  8 21:18:55 UTC 2023

Modified Files:
        src/tests/usr.bin/indent: fmt_decl.c lsym_for.c lsym_unary_op.c
        src/usr.bin/indent: debug.c indent.c indent.h lexi.c

Log Message:
indent: remove fragile heuristic for detecting cast expressions

The assumption that in an expression of the form '(a * anything)', the
'*' marks a pointer type was too simple-minded.

For now, fix the obvious cases and leave the others for later.  If
needed, they can be worked around using the '-T' option.

To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/tests/usr.bin/indent/fmt_decl.c
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/indent/lsym_for.c
cvs rdiff -u -r1.9 -r1.10 src/tests/usr.bin/indent/lsym_unary_op.c
cvs rdiff -u -r1.39 -r1.40 src/usr.bin/indent/debug.c
cvs rdiff -u -r1.340 -r1.341 src/usr.bin/indent/indent.c
cvs rdiff -u -r1.178 -r1.179 src/usr.bin/indent/indent.h
cvs rdiff -u -r1.216 -r1.217 src/usr.bin/indent/lexi.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