Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.bin/indent
Module Name: src
Committed By: rillig
Date: Sun Feb 13 12:43:26 UTC 2022
Modified Files:
src/usr.bin/indent: indent.c indent.h io.c lexi.c
Log Message:
indent: rename parser_state.p_l_follow and paren_level
The previous variable names were misleading.
Paren_level is not the current level of parentheses but the one from the
beginning of the current output line. For better accuracy, rename it to
line_start_paren_level.
P_l_follow is not the level of parentheses that will be active at some
point in the future, as the previous name suggested. Instead, it is the
level of parentheses right now. For better accuracy, rename it to
nparen. This nicely matches its main usage, which is as index to the
parser_state.paren array.
No binary change.
To generate a diff of this commit:
cvs rdiff -u -r1.241 -r1.242 src/usr.bin/indent/indent.c
cvs rdiff -u -r1.110 -r1.111 src/usr.bin/indent/indent.h
cvs rdiff -u -r1.145 -r1.146 src/usr.bin/indent/io.c
cvs rdiff -u -r1.171 -r1.172 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