1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-06-08 21:29:30 +00:00

Added stub for ENUM inside STRUCT

This commit is contained in:
Curtis F Kaylor 2020-02-23 13:19:25 -05:00
parent e3c66fea0f
commit 4bc038a56d

View File

@ -66,7 +66,7 @@ int fndmbr(int idx, char *name) {
* alwcon - allow const variable *
* name - variable name */
void chksym(int alwreg, int alwcon, char *name) {
DEBUG("Checking symbol %s ", name)
DEBUG("vars.chksym: Checking symbol %s\n", name)
if (strlen(name) == 1 && strchr("AXY", name[0])) {
if (alwreg && valtyp != ARRAY) {
valtyp = REGISTER;
@ -426,6 +426,9 @@ void defstc(void) {
mbrsiz = 1;
stcidx = -1;
break;
case TENUM:
ERROR("ENUM in STRUCT Not Implemented\n", 0, EXIT_FAILURE)
break;
default:
ERROR("Invalid Type %s in Struct Definition\n", word, EXIT_FAILURE)
}