build: remove c99 specific constructions

This commit is contained in:
Charlie Gordon 2016-12-26 09:28:36 +00:00
commit bd5086c85c
2 changed files with 5 additions and 2 deletions

View file

@ -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
View file

@ -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);