A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
convert another file to C++ so that it can use the internal API
[simgrid.git]
/
src
/
surf
/
surfxml_parseplatf.cpp
diff --git
a/src/surf/surfxml_parseplatf.c
b/src/surf/surfxml_parseplatf.cpp
similarity index 97%
rename from
src/surf/surfxml_parseplatf.c
rename to
src/surf/surfxml_parseplatf.cpp
index
98031c6
..
989e211
100644
(file)
--- a/
src/surf/surfxml_parseplatf.c
+++ b/
src/surf/surfxml_parseplatf.cpp
@@
-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];
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);
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);
surfxml_bufferstack = old_buff;
else {
free(surfxml_bufferstack);