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:           Fri Jan  3 23:37:18 UTC 2025

Modified Files:
        src/tests/usr.bin/indent: lsym_comment.c lsym_lparen_or_lbracket.c
            lsym_while.c opt_bl_br.c psym_if_expr_stmt_else.c psym_while_expr.c
            t_errors.sh
        src/usr.bin/indent: debug.c indent.c indent.h

Log Message:
indent: fix line breaks in else-if sequences

The flag ps.want_newline did not adequately model the conditions under
which a line break should be inserted, thus the redesign.

A welcome side effect is that in statements like 'if (cond);', the
semicolon is now placed on a separate line, thus becoming more visible.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/tests/usr.bin/indent/lsym_comment.c
cvs rdiff -u -r1.19 -r1.20 src/tests/usr.bin/indent/lsym_lparen_or_lbracket.c
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/indent/lsym_while.c \
    src/tests/usr.bin/indent/psym_if_expr_stmt_else.c
cvs rdiff -u -r1.9 -r1.10 src/tests/usr.bin/indent/opt_bl_br.c
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/indent/psym_while_expr.c
cvs rdiff -u -r1.38 -r1.39 src/tests/usr.bin/indent/t_errors.sh
cvs rdiff -u -r1.71 -r1.72 src/usr.bin/indent/debug.c
cvs rdiff -u -r1.391 -r1.392 src/usr.bin/indent/indent.c
cvs rdiff -u -r1.207 -r1.208 src/usr.bin/indent/indent.h

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