From 7c4217eaaf28ebf52106a4b2e8b03e992fef5da0 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 24 Mar 2024 01:13:15 -0700 Subject: attr: Parse some GNU attributes Implements: https://todo.sr.ht/~mcf/cproc/68 --- cc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cc.h') diff --git a/cc.h b/cc.h index e07273f..974e1ef 100644 --- a/cc.h +++ b/cc.h @@ -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); -- cgit v1.2.3