Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add pragmas for builder6 compatibility
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 21 Dec 2006 15:01:52 +0000 (15:01 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 21 Dec 2006 15:01:52 +0000 (15:01 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3020 48e7efb5-ca39-0410-a469-dd3cf9ba447f

12 files changed:
testsuite/gras/datadesc_usage.c
testsuite/gras/trp_tcp_client.c
testsuite/gras/trp_tcp_server.c
testsuite/surf/maxmin_bench.c
testsuite/surf/maxmin_usage.c
testsuite/surf/surf_usage.c
testsuite/surf/surf_usage2.c
testsuite/surf/trace_usage.c
testsuite/xbt/context_usage.c
testsuite/xbt/graphxml_usage.c
testsuite/xbt/heap_bench.c
testsuite/xbt/log_usage.c

index d811141..09b0e60 100644 (file)
@@ -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 <stdio.h>
 #include "gras.h"
 
 #include <stdio.h>
 #include "gras.h"
@@ -598,6 +602,10 @@ void test_clause(gras_socket_t sock, int direction) {
   free(i);
 }
 
   free(i);
 }
 
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+
 int main(int argc,char *argv[]) {
   gras_socket_t sock=NULL;
   int direction = RW;
 int main(int argc,char *argv[]) {
   gras_socket_t sock=NULL;
   int direction = RW;
index bb58f8f..55aa602 100644 (file)
@@ -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 <stdio.h>
 #include "gras.h"
 
 #include <stdio.h>
 #include "gras.h"
index c8f7215..dfbc31d 100644 (file)
@@ -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 <stdio.h>
 #include "gras.h"
 
 #include <stdio.h>
 #include "gras.h"
 
 XBT_LOG_NEW_CATEGORY(test,"Logging for this test");
 
 
 XBT_LOG_NEW_CATEGORY(test,"Logging for this test");
 
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+
 int main(int argc,char *argv[]) {
   gras_socket_t sock, conn;
   char data_recv[256];
 int main(int argc,char *argv[]) {
   gras_socket_t sock, conn;
   char data_recv[256];
index 0002161..ee7e2e1 100644 (file)
@@ -7,6 +7,11 @@
 /* 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 "xbt/xbt_portability.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include "xbt/xbt_portability.h"
@@ -69,6 +74,10 @@ void test(int nb_cnst, int nb_var, int nb_elem)
   free(used);
 }
 
   free(used);
 }
 
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+
 
 int main(int argc, char **argv)
 {
 
 int main(int argc, char **argv)
 {
index 96f2703..ba72040 100644 (file)
@@ -7,6 +7,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 "surf/maxmin.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include "surf/maxmin.h"
@@ -113,7 +117,11 @@ void test2(void)
   DEBUG0("\n");
 
   lmm_system_free(Sys);
   DEBUG0("\n");
 
   lmm_system_free(Sys);
-} 
+}
+
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
 
 int main(int argc, char **argv)
 {
 
 int main(int argc, char **argv)
 {
index 3a104fb..7296f60 100644 (file)
@@ -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 <stdio.h>
 #include "surf/surf.h"
 
 #include <stdio.h>
 #include "surf/surf.h"
@@ -133,6 +137,10 @@ void test(char *platform)
   DEBUG0("Simulation Terminated\n");
 }
 
   DEBUG0("Simulation Terminated\n");
 }
 
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+
 int main(int argc, char **argv)
 {
   surf_init(&argc, argv);      /* Initialize some common structures */
 int main(int argc, char **argv)
 {
   surf_init(&argc, argv);      /* Initialize some common structures */
index 2adbbad..e3af4cf 100644 (file)
@@ -6,6 +6,9 @@
 
 /* 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 <stdio.h>
 #include "surf/surf.h"
 
 #include <stdio.h>
 #include "surf/surf.h"
@@ -105,6 +108,10 @@ void test(char *platform)
 
 }
 
 
 }
 
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+
 int main(int argc, char **argv)
 {
   surf_init(&argc, argv);      /* Initialize some common structures */
 int main(int argc, char **argv)
 {
   surf_init(&argc, argv);      /* Initialize some common structures */
index 9232409..5082646 100644 (file)
@@ -6,6 +6,9 @@
 
 /* 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>
@@ -46,6 +49,10 @@ void test(void)
   free(host_A);
 }
 
   free(host_A);
 }
 
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+
 
 int main(int argc, char **argv)
 {
 
 int main(int argc, char **argv)
 {
index 3a8f22f..d216860 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef __BORLANDC__
+#pragma hdrstop
+#endif
+
 #include "xbt/context.h"
 #include "xbt/fifo.h"
 #include "stdlib.h"
 #include "xbt/context.h"
 #include "xbt/fifo.h"
 #include "stdlib.h"
@@ -69,6 +73,10 @@ int fC(int argc, char** argv)
   return 0;
 }
 
   return 0;
 }
 
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+
 int main(int argc, char** argv)
 {
   xbt_context_t context = NULL;
 int main(int argc, char** argv)
 {
   xbt_context_t context = NULL;
index 89255a7..cf89b3c 100644 (file)
@@ -6,7 +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 "xbt/module.h"
 #include "xbt/sysdep.h"
 #include "xbt/graph.h"
 #include "xbt/module.h"
 #include "xbt/sysdep.h"
 #include "xbt/graph.h"
@@ -147,6 +150,10 @@ void test(char *graph_file)
   xbt_graph_free_graph(graph, free_label, NULL, NULL);
 }
 
   xbt_graph_free_graph(graph, free_label, NULL, NULL);
 }
 
+#ifdef __BORLANDC__
+#pragma argsused
+#endif 
+
 int main(int argc, char **argv) {
   xbt_init(&argc, argv);
   if (argc == 1) {
 int main(int argc, char **argv) {
   xbt_init(&argc, argv);
   if (argc == 1) {
index b3706d7..ca64029 100644 (file)
@@ -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>
 
 #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;
index 81f004f..180dd4e 100644 (file)
@@ -6,12 +6,22 @@
 
 /* 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 "gras.h"
 
 
 #include "gras.h"
 
+
+
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(test, top,"Logging specific to this test");
 XBT_LOG_NEW_CATEGORY(top,"Useless test channel");
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(test, top,"Logging specific to this test");
 XBT_LOG_NEW_CATEGORY(top,"Useless test channel");
 
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+
 int main(int argc, char **argv) {
   xbt_init(&argc,argv);
 
 int main(int argc, char **argv) {
   xbt_init(&argc,argv);