Include uses tokenizer
This commit is contained in:
parent
553e559e4e
commit
e871d8dc0c
|
@ -300,12 +300,9 @@ static int
|
||||||
doinclude(char *filename)
|
doinclude(char *filename)
|
||||||
{
|
{
|
||||||
FILE *f;
|
FILE *f;
|
||||||
char w[0x40];
|
|
||||||
if(!(f = fopen(setlocation(filename), "r")))
|
if(!(f = fopen(setlocation(filename), "r")))
|
||||||
return error_top("Include missing", filename);
|
return error_top("Include missing", filename);
|
||||||
while(fscanf(f, "%63s", w) == 1)
|
tokenize(f);
|
||||||
if(!parse(w, f))
|
|
||||||
return error_top("Unknown token", w);
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue