X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/513baa2ee64b3db9b8697c61123715e6892afb4e..c4978cdc959fa1fd3fb1a7223d05160f6f01b7ba:/src/surf/surfxml_parseplatf.c diff --git a/src/surf/surfxml_parseplatf.c b/src/surf/surfxml_parseplatf.c index 6b906efa4f..202fbe1b6c 100644 --- a/src/surf/surfxml_parseplatf.c +++ b/src/surf/surfxml_parseplatf.c @@ -52,11 +52,11 @@ 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_host_arg_t struct_host = 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 +181,6 @@ void parse_platform_file(const char *file) { int parse_status; - surf_parse_reset_callbacks(); surf_parse_add_callback_config(); @@ -193,7 +192,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(); }