diff options
author | Michael Forney <mforney@mforney.org> | 2024-03-24 01:13:15 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2024-03-24 02:41:29 -0700 |
commit | 7c4217eaaf28ebf52106a4b2e8b03e992fef5da0 (patch) | |
tree | 97814601b137322e00fa9fc91825cde43898ed5c /cc.h | |
parent | 591853a8ddd01258a5dbf9484a3fd2114e5e87e7 (diff) |
attr: Parse some GNU attributes
Implements: https://todo.sr.ht/~mcf/cproc/68
Diffstat (limited to 'cc.h')
-rw-r--r-- | cc.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -473,11 +473,15 @@ void targinit(const char *); /* attr */ enum attrkind { - ATTRNONE, + ATTRALIGNED = 1<<0, + ATTRCONSTRUCTOR = 1<<1, + ATTRDESTRUCTOR = 1<<2, + ATTRPACKED = 1<<3, }; struct attr { enum attrkind kind; + int align; }; _Bool attr(struct attr *, enum attrkind); |