diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-04 12:05:06 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-04 12:27:43 -0700 |
commit | 54303c25f3d61ab8696e233bfe5d1d154617a600 (patch) | |
tree | e48069fd506dd906f0220633488b7f1aa3e55539 /decl.h | |
parent | 2d036a019aa2879b092a17b740de3009d7352f74 (diff) |
Merge headers into cc.h
Diffstat (limited to 'decl.h')
-rw-r--r-- | decl.h | 53 |
1 files changed, 0 insertions, 53 deletions
@@ -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); |