X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c8eac09e9fea8df05ac324368525b417998a60b3..cf56a22da60094d8e7f14b1457526dc194d40226:/src/surf/surfxml_parse.c diff --git a/src/surf/surfxml_parse.c b/src/surf/surfxml_parse.c index 7fd132a908..348a8577d3 100644 --- a/src/surf/surfxml_parse.c +++ b/src/surf/surfxml_parse.c @@ -17,6 +17,11 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_parse, surf, #undef CLEANUP #include "surfxml.c" +/* Initialize the parsing globals */ +int route_action = 0; +xbt_dict_t traces_set_list = NULL; +xbt_dynar_t traces_connect_list = NULL; + /* This buffer is used to store the original buffer before substituing it by out own buffer. Usefull for the foreach tag */ char* old_buff; /* Stores the set name reffered to by the foreach tag */ @@ -576,6 +581,9 @@ void parse_sets(void) char *id, *suffix, *prefix, *radical; int start, end; xbt_dynar_t radical_ends; + xbt_dynar_t current_set; + char *value; + int i; id = xbt_strdup(A_surfxml_set_id); prefix = xbt_strdup(A_surfxml_set_prefix); @@ -590,10 +598,9 @@ void parse_sets(void) surf_parse_get_int(&start, xbt_dynar_get_as(radical_ends, 0, char*)); surf_parse_get_int(&end, xbt_dynar_get_as(radical_ends, 1, char*)); - xbt_dynar_t current_set = xbt_dynar_new(sizeof(char*), NULL); + current_set = xbt_dynar_new(sizeof(char*), NULL); - char *value; - int i; + for (i=start; i