X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/513baa2ee64b3db9b8697c61123715e6892afb4e..70388188c97f56fbe2b645c9b00dcb05d0b86509:/src/surf/surfxml_parseplatf.c diff --git a/src/surf/surfxml_parseplatf.c b/src/surf/surfxml_parseplatf.c index 6b906efa4f..d37459aa28 100644 --- a/src/surf/surfxml_parseplatf.c +++ b/src/surf/surfxml_parseplatf.c @@ -52,11 +52,10 @@ void surfxml_bufferstack_pop(int new) * Pass arguments to parsing callback as structures to save some time (and allow callbacks to ignore some) */ -hostSG_t struct_host = NULL; -router_t struct_router = NULL; -cluster_t struct_cluster = NULL; -peer_t struct_peer = NULL; -link_t struct_lnk = NULL; +surf_parsing_router_arg_t struct_router = NULL; +surf_parsing_cluster_arg_t struct_cluster = NULL; +surf_parsing_peer_arg_t struct_peer = NULL; +surf_parsing_link_arg_t struct_lnk = NULL; /* @@ -181,7 +180,6 @@ void parse_platform_file(const char *file) { int parse_status; - surf_parse_reset_callbacks(); surf_parse_add_callback_config(); @@ -193,7 +191,8 @@ void parse_platform_file(const char *file) parse_status = surf_parse(); free_data(); surf_parse_close(); - xbt_assert(!parse_status, "Parse error in %s", file); + if (parse_status) + xbt_die("Parse error in %s", file); surf_config_models_create_elms(); }