summaryrefslogtreecommitdiffhomepage
path: root/src/output/amgc_output_compound.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/output/amgc_output_compound.c')
-rw-r--r--src/output/amgc_output_compound.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/output/amgc_output_compound.c b/src/output/amgc_output_compound.c
index 07bd730..fc95af7 100644
--- a/src/output/amgc_output_compound.c
+++ b/src/output/amgc_output_compound.c
@@ -346,3 +346,31 @@ int amgc_output_union(
else
return -1;
}
+
+int amgc_output_unit_structs(
+ const struct amgc_unit_ctx * uctx,
+ const struct amgc_layout * layout,
+ FILE * fout)
+{
+ const struct amgc_entity * aentity;
+
+ for (aentity=uctx->entities->structs; aentity->entity; aentity++)
+ if (output_compound_entity(uctx,aentity,layout,fout))
+ return -1;
+
+ return 0;
+}
+
+int amgc_output_unit_unions(
+ const struct amgc_unit_ctx * uctx,
+ const struct amgc_layout * layout,
+ FILE * fout)
+{
+ const struct amgc_entity * aentity;
+
+ for (aentity=uctx->entities->unions; aentity->entity; aentity++)
+ if (output_compound_entity(uctx,aentity,layout,fout))
+ return -1;
+
+ return 0;
+}