0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2025-01-06 23:51:19 +00:00

Include uses tokenizer

This commit is contained in:
Devine Lu Linvega 2024-03-26 10:49:29 -07:00
parent 553e559e4e
commit e871d8dc0c

View file

@ -300,12 +300,9 @@ static int
doinclude(char *filename)
{
FILE *f;
char w[0x40];
if(!(f = fopen(setlocation(filename), "r")))
return error_top("Include missing", filename);
while(fscanf(f, "%63s", w) == 1)
if(!parse(w, f))
return error_top("Unknown token", w);
tokenize(f);
fclose(f);
return 1;
}