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