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/dfagen/output/c/template.c | 2 +- tools/dfagen/dfagen/output/c/template_cb_decl.h | 2 +- tools/dfagen/dfagen/output/c/template_cb_impl.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/dfagen/dfagen/output/c') diff --git a/tools/dfagen/dfagen/output/c/template.c b/tools/dfagen/dfagen/output/c/template.c index a8679046..6beda928 100644 --- a/tools/dfagen/dfagen/output/c/template.c +++ b/tools/dfagen/dfagen/output/c/template.c @@ -8,7 +8,7 @@ #include #include -%(_user.type-decl)s +%(_user.type-decl)s /* %(name)s transition table. */ static const %(prefix)s_transition_t %(prefix)s_transition_table[%(PREFIX)s_STATE_NB][%(PREFIX)s_EVENT_NB] = { diff --git a/tools/dfagen/dfagen/output/c/template_cb_decl.h b/tools/dfagen/dfagen/output/c/template_cb_decl.h index a1e7c0f2..3bb0a35f 100644 --- a/tools/dfagen/dfagen/output/c/template_cb_decl.h +++ b/tools/dfagen/dfagen/output/c/template_cb_decl.h @@ -2,5 +2,5 @@ * %(state)s =%(event)s=> %(*branches_to)s */ %(prefix)s_branch_t -%(prefix)s__%(state)s__%(event)s (%(user.type)s *user); +%(callback)s (%(user.type)s *user); diff --git a/tools/dfagen/dfagen/output/c/template_cb_impl.c b/tools/dfagen/dfagen/output/c/template_cb_impl.c index ffd9720f..e5a4d789 100644 --- a/tools/dfagen/dfagen/output/c/template_cb_impl.c +++ b/tools/dfagen/dfagen/output/c/template_cb_impl.c @@ -2,7 +2,7 @@ * %(state)s =%(event)s=> %(*branches_to)s */ %(prefix)s_branch_t -%(prefix)s__%(state)s__%(event)s (%(user.type)s *user) +%(callback)s (%(user.type)s *user) { %(returns)s } -- cgit v1.2.3