From 6adb90fd75f544895ba8ffc960f08ff00dc58949 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 2 Jan 2016 11:57:37 -0500 Subject: action vector and action iteration: initial implementation. --- src/apimagic.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/apimagic.c') diff --git a/src/apimagic.c b/src/apimagic.c index 6c6408c..dd0d893 100644 --- a/src/apimagic.c +++ b/src/apimagic.c @@ -23,6 +23,16 @@ static ssize_t apimagic_version(struct amgc_driver_ctx * dctx) static void apimagic_perform_unit_actions(struct amgc_unit_ctx * uctx) { + const struct amgc_action * action; + + for (action=uctx->cctx->actions; action->type; action++) + switch (action->action) { + case AMGC_OUTPUT_ENUM: + if (action->symbol) + (void)0; + else + amgc_output_unit_enums(uctx,0,stdout); + } } static int apimagic_exit(struct amgc_driver_ctx * dctx, int nerrors) -- cgit v1.2.3