From e871d8dc0c6ae736cdec1436ee4eabba5c38d27d Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Tue, 26 Mar 2024 10:49:29 -0700 Subject: [PATCH] Include uses tokenizer --- src/uxnasm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/uxnasm.c b/src/uxnasm.c index 9859b49..7a8cc20 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -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; }