mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-28 06:52:35 +00:00
* LCC bug fix from the how-the-fuck-did-that-ever-work? department
This commit is contained in:
parent
5028c174ba
commit
ffc78a67ba
1 changed files with 7 additions and 1 deletions
|
@ -19,6 +19,8 @@ setup(int argc, char **argv)
|
||||||
char *fp, *dp;
|
char *fp, *dp;
|
||||||
Tokenrow tr;
|
Tokenrow tr;
|
||||||
extern void setup_kwtab(void);
|
extern void setup_kwtab(void);
|
||||||
|
char *includeDirs[ NINCLUDE ] = { 0 };
|
||||||
|
int numIncludeDirs = 0;
|
||||||
|
|
||||||
setup_kwtab();
|
setup_kwtab();
|
||||||
while ((c = getopt(argc, argv, "MNOVv+I:D:U:F:lg")) != -1)
|
while ((c = getopt(argc, argv, "MNOVv+I:D:U:F:lg")) != -1)
|
||||||
|
@ -29,7 +31,7 @@ setup(int argc, char **argv)
|
||||||
includelist[i].deleted = 1;
|
includelist[i].deleted = 1;
|
||||||
break;
|
break;
|
||||||
case 'I':
|
case 'I':
|
||||||
appendDirToIncludeList( optarg );
|
includeDirs[ numIncludeDirs++ ] = newstring( (uchar *)optarg, strlen( optarg ), 0 );
|
||||||
break;
|
break;
|
||||||
case 'D':
|
case 'D':
|
||||||
case 'U':
|
case 'U':
|
||||||
|
@ -73,6 +75,10 @@ setup(int argc, char **argv)
|
||||||
setobjname(fp);
|
setobjname(fp);
|
||||||
includelist[NINCLUDE-1].always = 0;
|
includelist[NINCLUDE-1].always = 0;
|
||||||
includelist[NINCLUDE-1].file = dp;
|
includelist[NINCLUDE-1].file = dp;
|
||||||
|
|
||||||
|
for( i = 0; i < numIncludeDirs; i++ )
|
||||||
|
appendDirToIncludeList( includeDirs[ i ] );
|
||||||
|
|
||||||
setsource(fp, fd, NULL);
|
setsource(fp, fd, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue