Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't define variables in header files (part 2).
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 4 Jul 2012 09:53:40 +0000 (11:53 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 4 Jul 2012 11:10:56 +0000 (13:10 +0200)
src/mc/mc_global.c
src/mc/mc_private.h

index 1af07a9..476c4d4 100644 (file)
@@ -59,6 +59,7 @@ mc_state_t mc_current_state = NULL;
 char mc_replay_mode = FALSE;
 double *mc_time = NULL;
 mc_snapshot_t initial_snapshot = NULL;
+int raw_mem_set;
 
 /* Safety */
 
index 519e708..9b36857 100644 (file)
@@ -153,7 +153,7 @@ struct mstats {
 #define MC_SET_RAW_MEM    mmalloc_set_current_heap(raw_heap)
 #define MC_UNSET_RAW_MEM  mmalloc_set_current_heap(std_heap)
 
-int raw_mem_set;
+extern int raw_mem_set;
 
 /******************************* MEMORY MAPPINGS ***************************/
 /* These functions and data structures implements a binary interface for   */