Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert another file to C++ so that it can use the internal API
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 31 Jan 2016 15:02:59 +0000 (16:02 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 31 Jan 2016 22:04:39 +0000 (23:04 +0100)
src/surf/surfxml_parseplatf.cpp [moved from src/surf/surfxml_parseplatf.c with 97% similarity]
tools/cmake/DefinePackages.cmake

similarity index 97%
rename from src/surf/surfxml_parseplatf.c
rename to src/surf/surfxml_parseplatf.cpp
index 98031c6..989e211 100644 (file)
@@ -36,9 +36,9 @@ static char *old_buff = NULL;
 XBT_IMPORT_NO_EXPORT(unsigned int) surfxml_buffer_stack_stack_ptr;
 XBT_IMPORT_NO_EXPORT(unsigned int) surfxml_buffer_stack_stack[1024];
 
-void surfxml_bufferstack_push(int new)
+void surfxml_bufferstack_push(int new_one)
 {
-  if (!new)
+  if (!new_one)
     old_buff = surfxml_bufferstack;
   else {
     xbt_dynar_push(surfxml_bufferstack_stack, &surfxml_bufferstack);
@@ -46,9 +46,9 @@ void surfxml_bufferstack_push(int new)
   }
 }
 
-void surfxml_bufferstack_pop(int new)
+void surfxml_bufferstack_pop(int new_one)
 {
-  if (!new)
+  if (!new_one)
     surfxml_bufferstack = old_buff;
   else {
     free(surfxml_bufferstack);
index 7a85fdf..4a08a38 100644 (file)
@@ -341,7 +341,7 @@ set(SURF_SRC
   src/surf/surf_routing_none.cpp
   src/surf/surf_routing_vivaldi.cpp
   src/surf/surfxml_parse.c
-  src/surf/surfxml_parseplatf.c
+  src/surf/surfxml_parseplatf.cpp
   src/surf/trace_mgr.hpp
   src/surf/trace_mgr.cpp
   src/surf/vm_hl13.cpp