[hackers] [scc] Emit enum constants || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Tue, 6 Oct 2015 09:23:25 +0200 (CEST)

commit 34f9e3e9ce1c23c5d0c4d8bf5a9728495604d629
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Sep 29 09:32:40 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Tue Sep 29 09:32:40 2015 +0200

    Emit enum constants

diff --git a/cc1/code.c b/cc1/code.c
index b54bc89..76a7dcf 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -193,6 +193,7 @@ emitconst(Node *np)
         switch (tp->op) {
         case PTR:
         case INT:
+ case ENUM:
                 u = (tp->sign) ? (TUINT) sym->u.i : sym->u.u;
                 printf("#%c%lX", np->type->letter, sym->u.i & ones(tp->size));
                 break;
Received on Tue Oct 06 2015 - 09:23:25 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 06 2015 - 09:24:11 CEST