mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Fix spaces vs tabs and use FALLTHRU as it's used elsewhere
This commit is contained in:
12
codegen.c
12
codegen.c
@@ -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
2
file.c
@@ -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
2
qio.c
@@ -144,7 +144,7 @@ qprintf(char *fmt, ...)
|
||||
case '-':
|
||||
sign = -1;
|
||||
ch = *fmt++;
|
||||
/* fall through */
|
||||
/*FALLTHRU*/
|
||||
default:
|
||||
if (('0' <= ch && ch <= '9') ||
|
||||
ch == '.' || ch == '*') {
|
||||
|
Reference in New Issue
Block a user