Module Name: src Committed By: rillig Date: Sat Oct 30 11:37:38 UTC 2021
Modified Files: src/usr.bin/indent: indent.c Log Message: indent: replace tabsize with hardcoded 8 in process_comma On 2018-07-25, FreeBSD added the option '-ts' to make the tabulator size configurable, replacing several constants 7, 8, 9 with tabsize. The 8 in the expression 'max_col - 8' was not related to the tabulator size but instead represents the typical width of a variable name. Subtracting a tab from the right margin doesn't make sense since the right margin need not be aligned on a tabstop. See the test fmt_decl.c, where the declaration 'struct s0 a,b;' is split into several lines because the estimate for the variable name following the comma is too high. There would have been plenty of space to the right to keep the whole declaration in a single line. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.185 -r1.186 src/usr.bin/indent/indent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.