Remove unnecessarily nested symbol data union

This commit is contained in:
ISSOtm
2020-08-23 02:22:23 +02:00
parent dbef51ba05
commit 7381d7b92f

View File

@@ -40,7 +40,6 @@ struct Symbol {
bool hasCallback; bool hasCallback;
union { union {
union { /* Otherwise */
/* If sym_IsNumeric */ /* If sym_IsNumeric */
int32_t value; int32_t value;
int32_t (*numCallback)(void); int32_t (*numCallback)(void);
@@ -52,7 +51,6 @@ struct Symbol {
/* For SYM_EQUS, TODO: separate "base" fields from SYM_MACRO */ /* For SYM_EQUS, TODO: separate "base" fields from SYM_MACRO */
char const *(*strCallback)(void); /* For SYM_EQUS */ char const *(*strCallback)(void); /* For SYM_EQUS */
}; };
};
uint32_t ID; /* ID of the symbol in the object file (-1 if none) */ uint32_t ID; /* ID of the symbol in the object file (-1 if none) */
struct Symbol *next; /* Next object to output in the object file */ struct Symbol *next; /* Next object to output in the object file */