many bug fixes

This commit is contained in:
ceriel
1986-09-25 19:39:06 +00:00
parent c967d1ab3a
commit c3d4d40d1b
21 changed files with 480 additions and 398 deletions

View File

@@ -24,10 +24,14 @@ DoOption(text)
default:
options[text[-1]]++; /* flags, debug options etc. */
break;
/* recognized flags:
-L: don't generate fil/lin
-p: generate procentry/procexit
-w: no warnings
-n: no register messages
and many more if DEBUG
*/
case 'L' : /* don't generate fil/lin */
options['L'] = 1;
break;
case 'M': /* maximum identifier length */
idfsize = txt2int(&text);
@@ -37,10 +41,6 @@ DoOption(text)
fatal("maximum identifier length is %d", IDFSIZE);
break;
case 'p' : /* generate profiling code procentry/procexit ???? */
options['p'] = 1;
break;
case 'I' :
if (++ndirs >= NDIRS) {
fatal("Too many -I options");
@@ -99,14 +99,6 @@ DoOption(text)
}
break;
}
case 'n':
options['n'] = 1; /* use no registers */
break;
case 'w':
options['w'] = 1; /* no warnings will be given */
break;
}
}