From 54303c25f3d61ab8696e233bfe5d1d154617a600 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Thu, 4 Apr 2019 12:05:06 -0700 Subject: Merge headers into cc.h --- decl.h | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 decl.h (limited to 'decl.h') diff --git a/decl.h b/decl.h deleted file mode 100644 index 4335278..0000000 --- a/decl.h +++ /dev/null @@ -1,53 +0,0 @@ -enum declkind { - DECLTYPE, - DECLOBJECT, - DECLFUNC, - DECLCONST, - DECLBUILTIN, -}; - -enum linkage { - LINKNONE, - LINKINTERN, - LINKEXTERN, -}; - -enum builtinkind { - BUILTINALLOCA, - BUILTINCONSTANTP, - BUILTININFF, - BUILTINNANF, - BUILTINOFFSETOF, - BUILTINVAARG, - BUILTINVACOPY, - BUILTINVAEND, - BUILTINVALIST, - BUILTINVASTART, -}; - -struct decl { - enum declkind kind; - enum linkage linkage; - struct type *type; - struct value *value; - - /* objects and functions */ - struct list link; - int align; /* may be more strict than type requires */ - _Bool tentative, defined; - - /* built-ins */ - enum builtinkind builtin; -}; - -struct scope; -struct func; - -struct decl *mkdecl(enum declkind, struct type *, enum linkage); -_Bool decl(struct scope *, struct func *); -struct type *typename(struct scope *); - -struct expr; -struct decl *stringdecl(struct expr *); - -void emittentativedefns(void); -- cgit v1.2.3