From b566e4bcd0c7cb3c90ad941b37db223134090ded Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 8 May 2009 23:07:25 +0200 Subject: * tools/dfagen: - added state attributes. - added support for more than one initial state. - added table of transitions with only one default branch. - added state and event template parameter. - added --output-dir. - make template directory relative to config file. - more options checking. - added transition attributes and callback definition. - conserve input file order in output. - added --dump and more option checking. - fixed missing newline. --- tools/dfagen/examples/tpl/template_table.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'tools/dfagen/examples/tpl/template_table.h') diff --git a/tools/dfagen/examples/tpl/template_table.h b/tools/dfagen/examples/tpl/template_table.h index 817197fa..39f07bdb 100644 --- a/tools/dfagen/examples/tpl/template_table.h +++ b/tools/dfagen/examples/tpl/template_table.h @@ -7,6 +7,20 @@ /* %(name)s transition table. */ static const %(prefix)s_transition_t -%(prefix)s_transition_table[%(PREFIX)s_STATE_NB][%(PREFIX)s_EVENT_NB] = { +%(prefix)s_transition_table[%(PREFIX)s_STATE_NB][%(PREFIX)s_EVENT_TYPE_NB] = { %(transition_table)s}; +/* %(name)s only branch table. */ +static const %(prefix)s_state_t +%(prefix)s_only_table[%(PREFIX)s_STATE_NB][%(PREFIX)s_EVENT_TYPE_NB] = { +%(only_branch_table)s}; + +/* %(name)s initial states. */ +static const %(prefix)s_state_t +%(prefix)s_initials_table[] = { +%(initials)s}; + +/* %(name)s state attributes. */ +static const %(prefix)s_state_t +%(prefix)s_attr_table[] = { +%(states,"%(state)s (%(@)s) (%(@in)s) (%(@out|no_out)s)")s}; -- cgit v1.2.3