Improve formating of macros:
if the line is too long and can be reduced, reduce it.
This commit is contained in:
1 parent
54d4b80368
commit
f1e2f81e79
1 file changed
+10
@@ -20,6 +20,16 @@ static void format(FILE *f)
|
|||||||
}
|
}
|
||||||
string_push_back(s, '\\');
|
string_push_back(s, '\\');
|
||||||
}
|
}
|
||||||
|
if (n >= MAX_COLUMN && string_get_char(s, n-1) == '\\') {
|
||||||
|
n--;
|
||||||
|
string_left(s, n);
|
||||||
|
while (n >= MAX_COLUMN-2 && string_get_char(s, n-1) == ' ') {
|
||||||
|
n--;
|
||||||
|
string_left(s, n);
|
||||||
|
}
|
||||||
|
string_push_back(s, ' ');
|
||||||
|
string_push_back(s, '\\');
|
||||||
|
}
|
||||||
printf("%s\n", string_get_cstr(s));
|
printf("%s\n", string_get_cstr(s));
|
||||||
}
|
}
|
||||||
string_clear(s);
|
string_clear(s);
|
||||||
|
|||||||
Reference in new issue
Block a user