Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix compilation errors about multiple definition of `automaton'.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 3 Feb 2012 14:21:20 +0000 (15:21 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Sun, 5 Feb 2012 18:44:50 +0000 (19:44 +0100)
examples/msg/mc/automatonparse_promela.c
examples/msg/mc/automatonparse_promela.h
include/xbt/automatonparse_promela.h
src/xbt/automatonparse_promela.c

index 88c2caf..128a874 100644 (file)
@@ -1,5 +1,6 @@
 #include "xbt/automatonparse_promela.h"
 
+xbt_automaton_t automaton;
 char* state_id_src;
 
 void init(){
index cb4fc9c..c80c34d 100644 (file)
@@ -5,10 +5,10 @@
 #include <string.h>
 #include "xbt/automaton.h"
 
-xbt_automaton_t automaton;
-
 SG_BEGIN_DECL()
 
+XBT_PUBLIC_DATA(xbt_automaton_t) automaton;
+
 XBT_PUBLIC(void) init(void);
 
 XBT_PUBLIC(void) new_state(char* id, int src);
index cb4fc9c..c80c34d 100644 (file)
@@ -5,10 +5,10 @@
 #include <string.h>
 #include "xbt/automaton.h"
 
-xbt_automaton_t automaton;
-
 SG_BEGIN_DECL()
 
+XBT_PUBLIC_DATA(xbt_automaton_t) automaton;
+
 XBT_PUBLIC(void) init(void);
 
 XBT_PUBLIC(void) new_state(char* id, int src);
index 88c2caf..128a874 100644 (file)
@@ -1,5 +1,6 @@
 #include "xbt/automatonparse_promela.h"
 
+xbt_automaton_t automaton;
 char* state_id_src;
 
 void init(){