build: remove c99 specific constructions
This commit is contained in:
parent
433d6bec4f
commit
bd5086c85c
2 changed files with 5 additions and 2 deletions
4
extras.c
4
extras.c
|
|
@ -423,7 +423,9 @@ void do_show_date_and_time(EditState *s, int argval)
|
|||
/* Return the matching delimiter for all pairs */
|
||||
static int matching_delimiter(int c) {
|
||||
static const char pairs[] = "(){}[]<>";
|
||||
for (int i = 0; pairs[i]; i++) {
|
||||
int i;
|
||||
|
||||
for (i = 0; pairs[i]; i++) {
|
||||
if (pairs[i] == c)
|
||||
return pairs[i ^ 1];
|
||||
}
|
||||
|
|
|
|||
3
qe.c
3
qe.c
|
|
@ -3813,8 +3813,9 @@ static int combine_static_colorized_line(EditState *s, unsigned int *buf,
|
|||
int len, int offset)
|
||||
{
|
||||
EditBuffer *b = s->b;
|
||||
int i;
|
||||
|
||||
for (int i = 0; i < len; i++) {
|
||||
for (i = 0; i < len; i++) {
|
||||
int style = eb_get_style(b, offset);
|
||||
if (style) {
|
||||
buf[i] = (buf[i] & CHAR_MASK) | (style << STYLE_SHIFT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue