ref: 7381d7b92fa21cce3c086cb01199036053687078
parent: dbef51ba052ff9d98fbed87f36b53e5a2d4af074
author: ISSOtm <[email protected]>
date: Sat Aug 22 22:22:23 EDT 2020
Remove unnecessarily nested symbol data union
--- a/include/asm/symbol.h
+++ b/include/asm/symbol.h
@@ -40,18 +40,16 @@
bool hasCallback;
union {
- union { /* Otherwise */
- /* If sym_IsNumeric */
- int32_t value;
- int32_t (*numCallback)(void);
- /* For SYM_MACRO */
- struct {
- size_t macroSize;
- char *macro;
- };
- /* For SYM_EQUS, TODO: separate "base" fields from SYM_MACRO */
- char const *(*strCallback)(void); /* For SYM_EQUS */
+ /* If sym_IsNumeric */
+ int32_t value;
+ int32_t (*numCallback)(void);
+ /* For SYM_MACRO */
+ struct {
+ size_t macroSize;
+ char *macro;
};
+ /* For SYM_EQUS, TODO: separate "base" fields from SYM_MACRO */
+ char const *(*strCallback)(void); /* For SYM_EQUS */
};
uint32_t ID; /* ID of the symbol in the object file (-1 if none) */