Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Move include before any code.
[simgrid.git] / src / xbt / automaton / automatonparse_promela.c
index 104630c..bf93af4 100644 (file)
@@ -15,6 +15,8 @@
 #include <xbt/log.h>
 #include <xbt/sysdep.h>
 
+#include "parserPromela.tab.cacc"
+
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(xbt_automaton);
 
 static xbt_automaton_t parsed_automaton;
@@ -60,8 +62,6 @@ static void new_transition(char* id, xbt_automaton_exp_label_t label)
 
 }
 
-#include "parserPromela.tab.cacc"
-
 void xbt_automaton_load(xbt_automaton_t a, const char *file)
 {
   parsed_automaton = a;