scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit e93961332a0e356c117c0ba2b4e806290d5fbc34
parent 839a43fe5dfa1fe1b6d682725d46f73034e4395a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 16 Apr 2014 21:31:48 +0200

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.

Diffstat:
Mcc.h | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/cc.h b/cc.h @@ -71,11 +71,7 @@ struct funpar { /* definition of symbols */ -union value { - int i; - struct symbol *sym; - uint8_t ns, token; -}; + struct symbol { char *name; @@ -90,7 +86,11 @@ struct symbol { 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; };