From: schnorr Date: Mon, 13 Dec 2010 16:45:02 +0000 (+0000) Subject: [trace] protecting the declaration of multiple types with the same name X-Git-Tag: v3.6_beta2~729 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f34a151765f71a67195058a01e2dd96d7ddb8416 [trace] protecting the declaration of multiple types with the same name git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9194 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/instr/instr_routing.c b/src/instr/instr_routing.c index 3ed7eed7b0..1c5deabba3 100644 --- a/src/instr/instr_routing.c +++ b/src/instr/instr_routing.c @@ -534,7 +534,7 @@ void instr_destroy_platform () static void recursiveNewUserVariableType (const char *new_typename, const char *color, type_t root) { if (!strcmp (root->name, "HOST") || !strcmp (root->name, "LINK")){ - newVariableType(new_typename, TYPE_VARIABLE, color, root); + getVariableType(new_typename, color, root); } xbt_dict_cursor_t cursor = NULL; type_t child_type; @@ -552,7 +552,7 @@ void instr_new_user_variable_type (const char *new_typename, const char *color) static void recursiveNewUserLinkVariableType (const char *new_typename, const char *color, type_t root) { if (!strcmp (root->name, "LINK")){ - newVariableType(new_typename, TYPE_VARIABLE, color, root); + getVariableType(new_typename, color, root); } xbt_dict_cursor_t cursor = NULL; type_t child_type; @@ -571,7 +571,7 @@ void instr_new_user_link_variable_type (const char *new_typename, const char *c static void recursiveNewUserHostVariableType (const char *new_typename, const char *color, type_t root) { if (!strcmp (root->name, "HOST")){ - newVariableType(new_typename, TYPE_VARIABLE, color, root); + getVariableType(new_typename, color, root); } xbt_dict_cursor_t cursor = NULL; type_t child_type;