From ca20d63c3c17dfdb0b4d34a99b0d630043d1b74f Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 2 Jan 2016 02:05:13 -0500 Subject: amgc_output_unit_enums(): initial implementation. --- src/output/amgc_output_enum.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; +} -- cgit v1.2.3