summaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
Diffstat (limited to 'src/output')
-rw-r--r--src/output/amgc_output_compound.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/output/amgc_output_compound.c b/src/output/amgc_output_compound.c
index 02923b4..07bd730 100644
--- a/src/output/amgc_output_compound.c
+++ b/src/output/amgc_output_compound.c
@@ -314,3 +314,35 @@ int amgc_output_compound(
else
return -1;
}
+
+int amgc_output_struct(
+ const struct amgc_unit_ctx * uctx,
+ const struct amgc_entity * aentity,
+ const struct amgc_layout * layout,
+ FILE * fout)
+{
+ union entity_t const * entity;
+
+ entity = aentity->entity;
+
+ if (entity->kind == ENTITY_STRUCT)
+ return output_compound_entity(uctx,aentity,layout,fout);
+ else
+ return -1;
+}
+
+int amgc_output_union(
+ const struct amgc_unit_ctx * uctx,
+ const struct amgc_entity * aentity,
+ const struct amgc_layout * layout,
+ FILE * fout)
+{
+ union entity_t const * entity;
+
+ entity = aentity->entity;
+
+ if (entity->kind == ENTITY_UNION)
+ return output_compound_entity(uctx,aentity,layout,fout);
+ else
+ return -1;
+}