minor fixes

This commit is contained in:
ceriel
1986-12-09 17:41:06 +00:00
parent 7752bb27f6
commit fe2e67d1c6
12 changed files with 63 additions and 57 deletions

View File

@@ -91,10 +91,19 @@ DoOption(text)
break;
case 'I' :
if (++ndirs >= NDIRS) {
fatal("too many -I options");
if (*text) {
register int i = ndirs++;
register char *new = text;
while (new) {
register char *tmp = DEFPATH[i];
if (i >= NDIRS)
fatal("too many -I options");
DEFPATH[i++] = new;
new = tmp;
}
}
DEFPATH[ndirs] = text;
else DEFPATH[ndirs] = 0;
break;
case 'V' : /* set object sizes and alignment requirements */