mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-01-14 10:30:24 +00:00
Fixes to compile pleaides.pla without errors
This commit is contained in:
parent
c105d61ca9
commit
76d900a4ee
@ -25,9 +25,9 @@ static int localsize = 0;
|
|||||||
static char idlocal_name[128][17];
|
static char idlocal_name[128][17];
|
||||||
static int idlocal_type[128];
|
static int idlocal_type[128];
|
||||||
static int idlocal_offset[128];
|
static int idlocal_offset[128];
|
||||||
static char fixup_size[1024];
|
static char fixup_size[2048];
|
||||||
static int fixup_type[1024];
|
static int fixup_type[2048];
|
||||||
static int fixup_tag[1024];
|
static int fixup_tag[2048];
|
||||||
#define FIXUP_BYTE 0x00
|
#define FIXUP_BYTE 0x00
|
||||||
#define FIXUP_WORD 0x80
|
#define FIXUP_WORD 0x80
|
||||||
int id_match(char *name, int len, char *id)
|
int id_match(char *name, int len, char *id)
|
||||||
@ -192,7 +192,6 @@ int id_tag(char *name, int len)
|
|||||||
return (idlocal_offset[i]);
|
return (idlocal_offset[i]);
|
||||||
if ((i = idglobal_lookup(name, len)) >= 0)
|
if ((i = idglobal_lookup(name, len)) >= 0)
|
||||||
return (idglobal_tag[i]);
|
return (idglobal_tag[i]);
|
||||||
parse_error("Undeclared identifier");
|
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
int id_const(char *name, int len)
|
int id_const(char *name, int len)
|
||||||
|
@ -906,11 +906,6 @@ int parse_stmnt(void)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
parse_error("Syntax error");
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
tokenstr = idptr;
|
tokenstr = idptr;
|
||||||
default:
|
default:
|
||||||
scan_rewind(tokenstr);
|
scan_rewind(tokenstr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user