diff options
author | Michael Forney <mforney@mforney.org> | 2021-10-24 22:47:44 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2024-03-24 02:41:18 -0700 |
commit | 731e7a2f3bf18baa4d4ce966006637ee13c5651a (patch) | |
tree | 8bc4457c7c663b544ccc0386dbabcccd7259a45a /cc.h | |
parent | 7585cbb758b7bc2169cba42b7665d46f0c57db93 (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.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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); |