commit 3e3d8d6fa48c37fc6b45fdabaaac2a5b7ffac7b2
parent 626153ccaa05ac4a5ae9ecab8854c30980485b50
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sun, 30 Mar 2014 13:35:11 +0200
Remove useless macros to check type
In this case is better compare directly
Diffstat:
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/cc.h b/cc.h
@@ -128,9 +128,6 @@ extern Type *voidtype,
#define ISQUAL(t) (isqual((t)->op))
#define UNQUAL(t) (ISQUAL(t) ? (t)->type : (t))
#define BTYPE(t) (UNQUAL(t)->op)
-#define isfun(op) ((op) == FTN)
-#define isptr(op) ((op) == PTR)
-#define isary(op) ((op) == ARY)
#define isarith(op) ((op) & ARITH)
#define isaddr(op) ((op) & POINTER)
#define isrecord(op) ((op) & RECORD)
diff --git a/decl.c b/decl.c
@@ -498,7 +498,7 @@ extdecl(void)
if (!(sclass & STATIC))
sym->s.isglobal = 1;
- if (isfun(BTYPE(tp))) {
+ if (BTYPE(tp) == FTN) {
emitfun(sym);
if (yytoken == '{') {
emitframe(sym);