tweaks: rename a variable, to be more compact
parent
2d16c27820
commit
4d44b03fc8
|
@ -172,16 +172,16 @@ void do_indent(void)
|
||||||
* but at most a tab's worth. */
|
* but at most a tab's worth. */
|
||||||
size_t length_of_white(const char *text)
|
size_t length_of_white(const char *text)
|
||||||
{
|
{
|
||||||
size_t bytes_of_white = 0;
|
size_t white_count = 0;
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
if (*text == '\t')
|
if (*text == '\t')
|
||||||
return ++bytes_of_white;
|
return ++white_count;
|
||||||
|
|
||||||
if (*text != ' ')
|
if (*text != ' ')
|
||||||
return bytes_of_white;
|
return white_count;
|
||||||
|
|
||||||
if (++bytes_of_white == tabsize)
|
if (++white_count == tabsize)
|
||||||
return tabsize;
|
return tabsize;
|
||||||
|
|
||||||
text++;
|
text++;
|
||||||
|
|
Loading…
Reference in New Issue