summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/output/amgc_output_enum.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/output/amgc_output_enum.c b/src/output/amgc_output_enum.c
index 0a15728..c69d49f 100644
--- a/src/output/amgc_output_enum.c
+++ b/src/output/amgc_output_enum.c
@@ -124,3 +124,17 @@ int amgc_output_custom_enum(
: penum->altname,
enumvals,layout,fout);
}
+
+int amgc_output_unit_enums(
+ const struct amgc_unit_ctx * uctx,
+ const struct amgc_layout * layout,
+ FILE * fout)
+{
+ const struct amgc_entity * aentity;
+
+ for (aentity=uctx->entities->enums; aentity->entity; aentity++)
+ if (amgc_output_unit_enum(uctx,aentity->entity,layout,fout))
+ return -1;
+
+ return 0;
+}