Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Factorize the current_property_set symbol of simix (for process properties) and surf...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 27 Oct 2007 09:07:26 +0000 (09:07 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 27 Oct 2007 09:07:26 +0000 (09:07 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4899 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/include/surf/surf.h
src/simix/private.h
src/surf/surf_private.h
src/surf/surfxml_parse.c

index 5c7e563..851f33d 100644 (file)
@@ -545,6 +545,7 @@ XBT_PUBLIC(double)surf_get_clock(void);
 XBT_PUBLIC(void) surf_exit(void);
 
 /* Prototypes of the functions that handle the properties */
+XBT_PUBLIC_DATA(xbt_dict_t) current_property_set; /* the prop set for the currently parsed element (also used in SIMIX) */
 void parse_properties(void);
 void free_string(void*);
 
index 0b119fb..8a31f69 100644 (file)
@@ -125,6 +125,4 @@ void __SIMIX_cond_wait(smx_cond_t cond);
 void __SIMIX_cond_display_actions(smx_cond_t cond);
 void __SIMIX_action_display_conditions(smx_action_t action);
 
-xbt_dict_t current_property_set;
-
 #endif
index a2c6654..daa9be1 100644 (file)
@@ -17,8 +17,6 @@
 #define NO_MAX_DURATION -1.0
 #define SG_TCP_CTE_GAMMA 20000.0
 
-xbt_dict_t current_property_set;
-
 extern const char *surf_action_state_names[6];
 
 typedef enum {
index 31e3397..d839e25 100644 (file)
@@ -36,6 +36,8 @@ xbt_dynar_t ETag_surfxml_argument_cb_list = NULL;
 xbt_dynar_t STag_surfxml_prop_cb_list = NULL;
 xbt_dynar_t ETag_surfxml_prop_cb_list = NULL;
 
+xbt_dict_t current_property_set = NULL;
+  
 static xbt_dynar_t surf_input_buffer_stack = NULL;
 static xbt_dynar_t surf_file_to_parse_stack = NULL;