1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-01 03:30:20 +00:00

braces were requested

combining the two a = ' ' cases was requested
This commit is contained in:
bbbradsmith 2023-05-06 12:06:06 -04:00
parent 1df7ab0352
commit 532681c961

View File

@ -855,12 +855,20 @@ static char *filterInput (FILE *F, char *tbl)
if (i >= BLOODY_BIG_BUFFER) { if (i >= BLOODY_BIG_BUFFER) {
AbEnd ("File too large for internal parsing buffer (%d bytes)",BLOODY_BIG_BUFFER); AbEnd ("File too large for internal parsing buffer (%d bytes)",BLOODY_BIG_BUFFER);
} }
if ((a == '\n') || (a == '\015')) a = ' '; if (((a == '\n') || (a == '\015')) ||
if (a == ',' && quote) a = ' '; (a == ',' && quote)) {
if (a == '\042') quote =! quote; a = ' ';
}
if (a == '\042') {
quote =! quote;
}
if (quote) { if (quote) {
if ((a == '{') || (a == '(')) bracket++; if ((a == '{') || (a == '(')) {
if ((a == '}') || (a == ')')) bracket--; bracket++;
}
if ((a == '}') || (a == ')')) {
bracket--;
}
} }
if (a == EOF) { if (a == EOF) {
tbl[i] = '\0'; tbl[i] = '\0';