From 27be86da76f53564a2825f7f442c7457b1d4745c Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Fri, 19 Jul 2024 19:12:32 +0200 Subject: [PATCH] static debug_printing() in fsm.c is ok work now only in [ widget x signal x fsm ] --- src/fsm.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/fsm.c b/src/fsm.c index 11530cf..753178c 100644 --- a/src/fsm.c +++ b/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);