Fix spaces vs tabs and use FALLTHRU as it's used elsewhere

This commit is contained in:
Jack Culhane
2019-05-17 17:18:07 +01:00
parent 1f8269c0e2
commit fa173cd9aa
6 changed files with 20 additions and 20 deletions

View File

@@ -1021,7 +1021,7 @@ getstatement(LABEL *contlabel, LABEL *breaklabel,
return;
}
reread();
/* fall through */
/*FALLTHRU*/
default:
rescantoken();
@@ -1384,7 +1384,7 @@ creatematrix(void)
switch (gettoken()) {
case T_RIGHTBRACKET:
rescantoken();
/* fall through */
/*FALLTHRU*/
case T_COMMA:
addop(OP_ONE);
addop(OP_SUB);
@@ -1395,7 +1395,7 @@ creatematrix(void)
switch(gettoken()) {
case T_RIGHTBRACKET:
rescantoken();
/* fall through */
/*FALLTHRU*/
case T_COMMA:
continue;
}
@@ -2213,7 +2213,7 @@ getterm(void)
scanerror(T_NULL,
"Function calls not allowed "
"as expressions");
/* fall through */
/*FALLTHRU*/
default:
rescantoken();
return type;
@@ -2251,7 +2251,7 @@ getidexpr(BOOL okmat, int autodef)
if (autodef != T_GLOBAL && autodef != T_LOCAL &&
autodef != T_STATIC)
autodef = 1;
/* fall through */
/*FALLTHRU*/
default:
rescantoken();
usesymbol(name, autodef);
@@ -2280,7 +2280,7 @@ getidexpr(BOOL okmat, int autodef)
scanerror(T_NULL,
"Function calls not allowed "
"as expressions");
/* fall through */
/*FALLTHRU*/
default:
rescantoken();
return type;

2
file.c
View File

@@ -1021,7 +1021,7 @@ idprintf(FILEID id, char *fmt, int count, VALUE **vals)
switch (ch) {
case 's':
printstring = TRUE;
/* fall through */
/*FALLTHRU*/
case 'c':
printchar = TRUE;
case 'd':

2
qio.c
View File

@@ -144,7 +144,7 @@ qprintf(char *fmt, ...)
case '-':
sign = -1;
ch = *fmt++;
/* fall through */
/*FALLTHRU*/
default:
if (('0' <= ch && ch <= '9') ||
ch == '.' || ch == '*') {

View File

@@ -447,7 +447,7 @@ eatstring(int quotechar)
case '\n':
if (!newlines)
break;
/* fall through */
/*FALLTHRU*/
case EOF:
reread();
scanerror(T_NULL,