Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Clean code.
[simgrid.git] / examples / msg / masterslave / masterslave_bypass.c
index e953f1a..60dfc3c 100644 (file)
@@ -18,6 +18,8 @@ static int surf_parse_bypass_platform(void)
 {
   static int AX_ptr = 0;
   static int surfxml_bufferstack_size = 2048;
+  static int surfxml_buffer_stack_stack_ptr = 0;
+  static int surfxml_buffer_stack_stack[1024];
 
   /* allocating memory for the buffer, I think 2kB should be enough */
   surfxml_bufferstack = xbt_new0(char, surfxml_bufferstack_size);
@@ -95,7 +97,8 @@ static int surf_parse_bypass_application(void)
 {
   static int AX_ptr;
   static int surfxml_bufferstack_size = 2048;
-
+  static int surfxml_buffer_stack_stack_ptr = 0;
+  static int surfxml_buffer_stack_stack[1024];
   /* allocating memory to the buffer, I think 2MB should be enough */
   surfxml_bufferstack = xbt_new0(char, surfxml_bufferstack_size);