ref: 3e3d8d6fa48c37fc6b45fdabaaac2a5b7ffac7b2
parent: 626153ccaa05ac4a5ae9ecab8854c30980485b50
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Mar 30 09:35:11 EDT 2014
Remove useless macros to check type In this case is better compare directly
--- a/cc.h
+++ b/cc.h
@@ -128,9 +128,6 @@
#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)
--- a/decl.c
+++ b/decl.c
@@ -498,7 +498,7 @@
if (!(sclass & STATIC))
sym->s.isglobal = 1;
- if (isfun(BTYPE(tp))) {
+ if (BTYPE(tp) == FTN) {
emitfun(sym);
if (yytoken == '{') {
emitframe(sym);
--
⑨