scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 8ae1031043e527a86ee96bb6740f10078314583a
parent b17f870636b9dea46db7f76c0f69be3192267e19
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 14 May 2014 15:53:43 +0200

Move unode convert functions to code.c

Diffstat:
cc1/cc1.h | 3---
cc1/code.c | 3+++
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cc1/cc1.h b/cc1/cc1.h @@ -223,9 +223,6 @@ extern Node *symcode(Symbol *sym), *fieldcode(Node *child, struct field *fp); -#define SYM(s) ((union unode) {.sym = s}) -#define OP(s) ((union unode) {.op = s}) -#define TYP(s) ((union unode) {.type = s}) #define NEGATE(n, v) ((n)->u.op ^= (v)) /* TODO: remove some of these ugly macros */ #define ISNODEBIN(n) ((n)->code == emitbin) diff --git a/cc1/code.c b/cc1/code.c @@ -5,6 +5,9 @@ #include <cc.h> #include "cc1.h" +#define SYM(s) ((union unode) {.sym = s}) +#define TYP(s) ((union unode) {.type = s}) +#define OP(s) ((union unode) {.op = s}) #define FIELD(s) ((union unode) {.field = s}) char *opcodes[] = {