ref: e93961332a0e356c117c0ba2b4e806290d5fbc34
parent: 839a43fe5dfa1fe1b6d682725d46f73034e4395a
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Apr 16 17:31:48 EDT 2014
Integrate union into Symbol struct This union was only used in Symbol, so it is a non sense to put it in a different named union.
--- a/cc.h
+++ b/cc.h
@@ -71,12 +71,8 @@
/* definition of symbols */
-union value {
- int i;
- struct symbol *sym;
- uint8_t ns, token;
-};
+
struct symbol {
char *name;
Type *type;
@@ -90,7 +86,11 @@
bool isauto : 1;
bool isregister : 1;
} s;
- union value u;
+ union {
+ int i;
+ struct symbol *sym;
+ uint8_t ns, token;
+ } u;
struct symbol *next;
struct symbol *hash;
};