git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8905
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
-#define VARIABLE_SEPARATOR '#'
-
//to check if variables were previously set to 0, otherwise paje won't simulate them
static xbt_dict_t platform_variables; /* host or link name -> array of categories */
//to check if variables were previously set to 0, otherwise paje won't simulate them
static xbt_dict_t platform_variables; /* host or link name -> array of categories */
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(tracing_surf, tracing, "Tracing Surf");
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(tracing_surf, tracing, "Tracing Surf");
-#define VARIABLE_SEPARATOR '#'
-
static xbt_dict_t created_links;
static xbt_dict_t host_containers;
static xbt_dict_t resource_variables; /* (host|link)#variable -> value */
static xbt_dict_t created_links;
static xbt_dict_t host_containers;
static xbt_dict_t resource_variables; /* (host|link)#variable -> value */
if (!IS_TRACING)
return;
snprintf(aux, 100, "%f", value);
if (!IS_TRACING)
return;
snprintf(aux, 100, "%f", value);
- snprintf(key, 100, "%s%c%s", resource, VARIABLE_SEPARATOR, variable);
+ snprintf(key, 100, "%s#%s", resource, variable);
last_value = xbt_dict_get_or_null(resource_variables, key);
if (last_value) {
last_value = xbt_dict_get_or_null(resource_variables, key);
if (last_value) {