Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
stop being foolish and deal with public data the regular way
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 19 Sep 2015 21:30:49 +0000 (23:30 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 19 Sep 2015 21:30:49 +0000 (23:30 +0200)
src/include/surf/maxmin.h
src/surf/maxmin.cpp

index cea914e..3394673 100644 (file)
@@ -12,7 +12,6 @@
 #include "xbt/asserts.h"
 #include "surf/datatypes.h"
 #include <math.h>
-//#include <float.h>
 
 
 /** @addtogroup SURF_lmm 
@@ -87,8 +86,8 @@
  * to consrtaint and the communications to variables.
  */
 
-XBT_EXPORT_NO_IMPORT(double) sg_maxmin_precision;
-XBT_EXPORT_NO_IMPORT(double) sg_surf_precision;
+XBT_PUBLIC_DATA(double) sg_maxmin_precision;
+XBT_PUBLIC_DATA(double) sg_surf_precision;
  
 static XBT_INLINE void double_update(double *variable, double value, double precision)
 {
index 2ed593c..a060d6b 100644 (file)
@@ -20,8 +20,8 @@ typedef struct s_dyn_light {
   int size;
 } s_dyn_light_t, *dyn_light_t;
 
-XBT_EXPORT_NO_IMPORT(double) sg_maxmin_precision = 0.00001;
-XBT_EXPORT_NO_IMPORT(double) sg_surf_precision   = 0.00001;
+double sg_maxmin_precision = 0.00001;
+double sg_surf_precision   = 0.00001;
 
 static void *lmm_variable_mallocator_new_f(void);
 static void lmm_variable_mallocator_free_f(void *var);