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
add pragmas for builder6 compatibility
[simgrid.git]
/
testsuite
/
xbt
/
heap_bench.c
diff --git
a/testsuite/xbt/heap_bench.c
b/testsuite/xbt/heap_bench.c
index b3706d7fac3fe15556cfc963268cf2f72e229aa1..ca64029dc394fd849ad32490e6f302fa36dea062 100644
(file)
--- a/
testsuite/xbt/heap_bench.c
+++ b/
testsuite/xbt/heap_bench.c
@@
-6,6
+6,10
@@
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+
+ #ifdef __BORLANDC__
+ #pragma hdrstop
+ #endif
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
@@
-15,7
+19,12
@@
#define MAX_TEST 1000000
#define MAX_TEST 1000000
+#ifdef __BORLANDC__
+int _XBT_CALL compare_double(const void *a, const void *b);
+#else
int compare_double(const void *a, const void *b);
int compare_double(const void *a, const void *b);
+#endif
+
void test_heap_validity(int size);
void test_heap_mean_operation(int size);
void test_reset_heap(xbt_heap_t heap,int size);
void test_heap_validity(int size);
void test_heap_mean_operation(int size);
void test_reset_heap(xbt_heap_t heap,int size);
@@
-103,6
+112,10
@@
void test_reset_heap(xbt_heap_t heap,int size)
}
}
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+
int main(int argc, char **argv)
{
int size;
int main(int argc, char **argv)
{
int size;