From edeedaeee717513814967046cb6934819a62b1ad Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:25:40 -0700 Subject: [PATCH] Add back spaces around ellipses in case statements GNU C allows the ellipsis (...) to be used in case statements to indicate a range. However, it requires spaces around it to be valid. Nindent stripped those off, put them back. Signed-off-by: H. Peter Anvin --- com32/lib/sys/ansi.c | 6 +++--- com32/lib/vsscanf.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/com32/lib/sys/ansi.c b/com32/lib/sys/ansi.c index a11a715..7d58085 100644 --- a/com32/lib/sys/ansi.c +++ b/com32/lib/sys/ansi.c @@ -77,7 +77,7 @@ void __ansi_putchar(const struct term_info *ti, uint8_t ch) switch (st->state) { case st_init: switch (ch) { - case 1...5: + case 1 ... 5: st->state = st_tbl; st->parms[0] = ch; break; @@ -339,7 +339,7 @@ void __ansi_putchar(const struct term_info *ti, uint8_t ch) case 27: st->reverse = 0; break; - case 30...37: + case 30 ... 37: st->fg = ansi2pc[a - 30]; break; case 38: @@ -350,7 +350,7 @@ void __ansi_putchar(const struct term_info *ti, uint8_t ch) st->fg = 7; st->underline = 0; break; - case 40...47: + case 40 ... 47: st->bg = ansi2pc[a - 40]; break; case 49: diff --git a/com32/lib/vsscanf.c b/com32/lib/vsscanf.c index 3c016db..153dbbd 100644 --- a/com32/lib/vsscanf.c +++ b/com32/lib/vsscanf.c @@ -116,7 +116,7 @@ int vsscanf(const char *buffer, const char *format, va_list ap) case '*': flags |= FL_SPLAT; break; - case '0'...'9': + case '0' ... '9': width = (ch - '0'); state = st_width; flags |= FL_WIDTH; -- 2.7.4