summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-01-02 02:05:13 -0500
committermidipix <writeonce@midipix.org>2016-01-02 02:05:13 -0500
commitca20d63c3c17dfdb0b4d34a99b0d630043d1b74f (patch)
treed357d4718cb59dbac90c5cf36b9b924e7087ddd1 /src
parentd3f07e5d9a9fad51b71f35af6c704c1636c451fd (diff)
downloadapimagic-ca20d63c3c17dfdb0b4d34a99b0d630043d1b74f.tar.bz2
apimagic-ca20d63c3c17dfdb0b4d34a99b0d630043d1b74f.tar.xz
amgc_output_unit_enums(): initial implementation.
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;
+}