version using input module and detecting preprocessor loops

This commit is contained in:
ceriel
1986-12-04 16:29:44 +00:00
parent 91aad0b28e
commit 53d6dfcb6b
13 changed files with 239 additions and 599 deletions

View File

@@ -34,7 +34,10 @@ do_option(text)
switch(*text++) {
default:
options[text[-1]] = 1; /* flags, debug options etc. */
fatal("illegal option: %c", *--text);
case '-':
options[*text] = 1; /* flags, debug options etc. */
break;
case 'C' : /* E option + comment output */
@@ -105,6 +108,7 @@ do_option(text)
new = tmp;
}
}
else inctable[inc_pos] = 0;
#else NOPP
warning("-I option ignored");
#endif NOPP
@@ -135,6 +139,10 @@ do_option(text)
#endif NOPP
break;
case 'R':
options['R'] = 1;
break;
#ifdef USE_TMP
case 'T' :
if (*text)