Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix typos [Arnaud Giersch]
[simgrid.git] / src / surf / surfxml_parse.c
index e101d03..aa49b3c 100644 (file)
@@ -31,6 +31,10 @@ int surfxml_bufferstack_size = 2048;
 static char *old_buff = NULL;
 static void surf_parse_error(char *msg);
 
+unsigned int surfxml_buffer_stack_stack_ptr;
+unsigned int surfxml_buffer_stack_stack[1024];
+
+
 void surfxml_bufferstack_push(int new)
 {
   if (!new)
@@ -356,6 +360,10 @@ static void free_data(void)
 void parse_platform_file(const char *file)
 {
   int parse_status;
+
+  surfxml_buffer_stack_stack_ptr = 1;
+  surfxml_buffer_stack_stack[0] = 0;
+
   surf_parse_open(file);
   init_data();
   parse_status = surf_parse();
@@ -563,7 +571,7 @@ void surf_wsL07_link_create_resource(char *name,
 
 void surf_add_route_element(char* link_ctn_id)
 {
-       xbt_die("\"surf_add_route_element\" not support");
+       xbt_die("\"surf_add_route_element\" not supported");
 //     char *val;
 //     val = xbt_strdup(link_ctn_id);
 //     xbt_dynar_push(route_link_list,&val);
@@ -573,7 +581,7 @@ void surf_add_route_element(char* link_ctn_id)
  */
 void surf_route_set_resource(char *source_id,char *destination_id,xbt_dynar_t links_id,int action)
 {
-       xbt_die("\"surf_route_set_resource\" not support");
+       xbt_die("\"surf_route_set_resource\" not supported");
        //route_link_list = xbt_dynar_new(sizeof(char *), NULL);
        //routing_add_route(source_id,destination_id,links_id,action);
 
@@ -584,7 +592,7 @@ void surf_route_set_resource(char *source_id,char *destination_id,xbt_dynar_t li
  */
 void surf_route_add_host(char *host_id)
 {
-       xbt_die("\"surf_route_add_host\" not support");
+       xbt_die("\"surf_route_add_host\" not supported");
        //routing_add_host(host_id);
 }
 
@@ -611,6 +619,6 @@ void surf_wsL07_add_traces(void)
  */
 void surf_set_routes(void)
 {
-       xbt_die("\"surf_set_routes\" not support");
+       xbt_die("\"surf_set_routes\" not supported");
        //routing_set_routes();
 }