summaryrefslogtreecommitdiff
path: root/cparser/C.mli
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2011-05-12 09:41:09 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2011-05-12 09:41:09 +0000
commitfe8baff11737d3785ff51d20ace9ab31665cd295 (patch)
treeedbab0f933283d5ecf455a5f94150c4f09379c51 /cparser/C.mli
parent239cbd2ebab8814b11d7ef43c35a17ce56a7ba0b (diff)
cparser: support for attributes over struct and union.
cparser: added experimental emulation of packed structs (PackedStruct.ml) git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1650 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'cparser/C.mli')
-rw-r--r--cparser/C.mli5
1 files changed, 3 insertions, 2 deletions
diff --git a/cparser/C.mli b/cparser/C.mli
index 9d5a7d7..35e872d 100644
--- a/cparser/C.mli
+++ b/cparser/C.mli
@@ -231,8 +231,9 @@ type globdecl =
and globdecl_desc =
| Gdecl of decl (* variable declaration, function prototype *)
| Gfundef of fundef (* function definition *)
- | Gcompositedecl of struct_or_union * ident (* struct/union declaration *)
- | Gcompositedef of struct_or_union * ident * field list
+ | Gcompositedecl of struct_or_union * ident * attributes
+ (* struct/union declaration *)
+ | Gcompositedef of struct_or_union * ident * attributes * field list
(* struct/union definition *)
| Gtypedef of ident * typ (* typedef *)
| Genumdef of ident * (ident * exp option) list (* enum definition *)