mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-30 23:50:04 +00:00
Added stub for ENUM inside STRUCT
This commit is contained in:
parent
e3c66fea0f
commit
4bc038a56d
@ -66,7 +66,7 @@ int fndmbr(int idx, char *name) {
|
|||||||
* alwcon - allow const variable *
|
* alwcon - allow const variable *
|
||||||
* name - variable name */
|
* name - variable name */
|
||||||
void chksym(int alwreg, int alwcon, char *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 (strlen(name) == 1 && strchr("AXY", name[0])) {
|
||||||
if (alwreg && valtyp != ARRAY) {
|
if (alwreg && valtyp != ARRAY) {
|
||||||
valtyp = REGISTER;
|
valtyp = REGISTER;
|
||||||
@ -426,6 +426,9 @@ void defstc(void) {
|
|||||||
mbrsiz = 1;
|
mbrsiz = 1;
|
||||||
stcidx = -1;
|
stcidx = -1;
|
||||||
break;
|
break;
|
||||||
|
case TENUM:
|
||||||
|
ERROR("ENUM in STRUCT Not Implemented\n", 0, EXIT_FAILURE)
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
ERROR("Invalid Type %s in Struct Definition\n", word, EXIT_FAILURE)
|
ERROR("Invalid Type %s in Struct Definition\n", word, EXIT_FAILURE)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user