mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-12-26 19:29:27 +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 int idlocal_type[128];
|
||||
static int idlocal_offset[128];
|
||||
static char fixup_size[1024];
|
||||
static int fixup_type[1024];
|
||||
static int fixup_tag[1024];
|
||||
static char fixup_size[2048];
|
||||
static int fixup_type[2048];
|
||||
static int fixup_tag[2048];
|
||||
#define FIXUP_BYTE 0x00
|
||||
#define FIXUP_WORD 0x80
|
||||
int id_match(char *name, int len, char *id)
|
||||
@ -192,7 +192,6 @@ int id_tag(char *name, int len)
|
||||
return (idlocal_offset[i]);
|
||||
if ((i = idglobal_lookup(name, len)) >= 0)
|
||||
return (idglobal_tag[i]);
|
||||
parse_error("Undeclared identifier");
|
||||
return (-1);
|
||||
}
|
||||
int id_const(char *name, int len)
|
||||
|
@ -906,11 +906,6 @@ int parse_stmnt(void)
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
parse_error("Syntax error");
|
||||
return (0);
|
||||
}
|
||||
tokenstr = idptr;
|
||||
default:
|
||||
scan_rewind(tokenstr);
|
||||
|
Loading…
Reference in New Issue
Block a user