(uxnasm) Removed setlocation
This commit is contained in:
parent
b1ec78a806
commit
db25349114
14
src/uxnasm.c
14
src/uxnasm.c
|
@ -88,14 +88,6 @@ error_asm(const char *name)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
|
||||||
setlocation(char *name)
|
|
||||||
{
|
|
||||||
p.location = name;
|
|
||||||
p.line = 0;
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
static Macro *
|
static Macro *
|
||||||
findmacro(char *name)
|
findmacro(char *name)
|
||||||
{
|
{
|
||||||
|
@ -302,9 +294,11 @@ static int
|
||||||
doinclude(char *filename)
|
doinclude(char *filename)
|
||||||
{
|
{
|
||||||
FILE *f;
|
FILE *f;
|
||||||
int res;
|
int res = 0;
|
||||||
if(!(f = fopen(setlocation(filename), "r")))
|
if(!(f = fopen(filename, "r")))
|
||||||
return error_top("Invalid source", filename);
|
return error_top("Invalid source", filename);
|
||||||
|
p.location = filename;
|
||||||
|
p.line = 0;
|
||||||
res = tokenize(f);
|
res = tokenize(f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in New Issue