harder to compare whitespacing

This commit is contained in:
anon 2024-11-15 12:14:13 +01:00
parent ccdab83c06
commit 3ddf4faed9

View File

@ -680,10 +680,9 @@ if{wsnl}*\( { /* ignore 'if' */
/* FIXME HBB 20001007: should call input() instead */
switch (input()) { /* tab and EOF just fall through */
case ' ': /* breakpoint number line */
case '[':
for (i = 1; i < 8 && input() > LEXEOF; ++i)
;
break;
case '[': {
for (i = 1; i < 8 && input() > LEXEOF; ++i) { ; }
} break;
case '.': /* header line */
case '/':
/* skip to the end of the line */
@ -694,9 +693,9 @@ if{wsnl}*\( { /* ignore 'if' */
}
}
break;
case '\n': /* empty line */
case '\n': { /* empty line */
unput('\n');
break;
} break;
}
}
eol:
@ -770,6 +769,7 @@ if{wsnl}*\( { /* ignore 'if' */
}
"/*" yy_push_state(COMMENT);
<COMMENT>{
[^*\n]* |
"*"+[^*/\n]* ; /* do nothing */
@ -853,28 +853,28 @@ initscanner(char *srcfile)
/* if this is not a C file */
if ((s = strrchr(srcfile, '.')) != NULL) {
switch (*++s) { /* this switch saves time on C files */
case 'b':
case 'b': {
if (strcmp(s, "bp") == 0) { /* breakpoint listing */
bplisting = true;
}
break;
case 'l':
} break;
case 'l': {
if (strcmp(s, "l") == 0) { /* lex */
lex = true;
global = false;
}
break;
case 's':
} break;
case 's': {
if (strcmp(s, "sd") == 0) { /* sdl */
sdl = true;
BEGIN(SDL);
}
break;
case 'y':
} break;
case 'y': {
if (strcmp(s, "y") == 0) { /* yacc */
global = false;
}
break;
} break;
}
}
}