aboutsummaryrefslogtreecommitdiff
path: root/decl.h
diff options
context:
space:
mode:
Diffstat (limited to 'decl.h')
-rw-r--r--decl.h53
1 files changed, 0 insertions, 53 deletions
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);