0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-16 19:15:10 +00:00

(uxnasm) Removed setlocation

This commit is contained in:
Devine Lu Linvega 2024-03-26 11:19:01 -07:00
parent b1ec78a806
commit db25349114

View file

@ -88,14 +88,6 @@ error_asm(const char *name)
return 0;
}
static char *
setlocation(char *name)
{
p.location = name;
p.line = 0;
return name;
}
static Macro *
findmacro(char *name)
{
@ -302,9 +294,11 @@ static int
doinclude(char *filename)
{
FILE *f;
int res;
if(!(f = fopen(setlocation(filename), "r")))
int res = 0;
if(!(f = fopen(filename, "r")))
return error_top("Invalid source", filename);
p.location = filename;
p.line = 0;
res = tokenize(f);
fclose(f);
return res;