Fixes to compile pleaides.pla without errors

This commit is contained in:
David Schmenk 2014-05-23 14:42:16 -07:00
parent c105d61ca9
commit 76d900a4ee
2 changed files with 3 additions and 9 deletions

View File

@ -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)

View File

@ -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);