static debug_printing() in fsm.c is ok
work now only in [ widget x signal x fsm ]
This commit is contained in:
parent
6142fac0d4
commit
27be86da76
19
src/fsm.c
19
src/fsm.c
|
@ -90,23 +90,24 @@ int fsm_get_SITUATIONS_box_RESET_VALUE () {return choice_SITUATIONS_box_RESET_V
|
|||
/* D E B U G G E R S */
|
||||
/******************************************************************************/
|
||||
|
||||
static char *tab[] = { "STATE", "RULES", "DATA" };
|
||||
static char *tab_0 [] = { "EXEC", "EDIT" };
|
||||
static char *tab_1 [] = { "STATE", "RULES", "DATA" };
|
||||
|
||||
static void debug_printing (int value, int sub_automaton)
|
||||
{
|
||||
switch (sub_automaton) { // sub_automaton 0 is EXEC_EDIT and
|
||||
// sub_automaton 1 is STATE_RULES_DATA
|
||||
case (0) : printf("switch %5s x %5s > %5s x %5s\n",
|
||||
tab [choice_EXEC_EDIT],
|
||||
tab [choice_STATE_RULES_DATA],
|
||||
tab [value],
|
||||
tab [choice_STATE_RULES_DATA]);
|
||||
tab_0 [choice_EXEC_EDIT],
|
||||
tab_1 [choice_STATE_RULES_DATA],
|
||||
tab_0 [value],
|
||||
tab_1 [choice_STATE_RULES_DATA]);
|
||||
break;
|
||||
case (1) : printf("switch %5s x %5s > %5s x %5s\n",
|
||||
tab [choice_EXEC_EDIT],
|
||||
tab [choice_STATE_RULES_DATA],
|
||||
tab [choice_EXEC_EDIT],
|
||||
tab [value]);
|
||||
tab_0 [choice_EXEC_EDIT],
|
||||
tab_1 [choice_STATE_RULES_DATA],
|
||||
tab_0 [choice_EXEC_EDIT],
|
||||
tab_1 [value]);
|
||||
break;
|
||||
case (2) : printf("automat.fsm_set_OBJECTS_box_RESET_VALUE : %2d > %2d\n",
|
||||
fsm_get_OBJECTS_box_RESET_VALUE(), value);
|
||||
|
|
Loading…
Reference in New Issue