aboutsummaryrefslogtreecommitdiff
path: root/cc.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-10-24 22:47:44 -0700
committerMichael Forney <mforney@mforney.org>2024-03-24 02:41:18 -0700
commit731e7a2f3bf18baa4d4ce966006637ee13c5651a (patch)
tree8bc4457c7c663b544ccc0386dbabcccd7259a45a /cc.h
parent7585cbb758b7bc2169cba42b7665d46f0c57db93 (diff)
Add support for C23 attribute syntax
Currently, all attributes are ignored. References: https://todo.sr.ht/~mcf/cproc/68
Diffstat (limited to 'cc.h')
-rw-r--r--cc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/cc.h b/cc.h
index 4f72a68..2bf61c3 100644
--- a/cc.h
+++ b/cc.h
@@ -470,6 +470,18 @@ extern const struct target *targ;
void targinit(const char *);
+/* attr */
+
+enum attrkind {
+ ATTRNONE,
+};
+
+struct attr {
+ enum attrkind kind;
+};
+
+_Bool attr(struct attr *, enum attrkind);
+
/* decl */
struct decl *mkdecl(enum declkind, struct type *, enum typequal, enum linkage);