Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove borland-compiler related cruft
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 25 Jul 2015 10:26:05 +0000 (12:26 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 25 Jul 2015 10:26:10 +0000 (12:26 +0200)
- there is no way that simgrid still compiles with that compiler
- I'm not even sure that this tool still exists :)

13 files changed:
CMakeLists.txt
include/simgrid_config.h.in
include/xbt/base.h
src/xbt/backtrace_windows.c
src/xbt/xbt_strbuff.c
teshsuite/surf/lmm_usage/lmm_usage.c
teshsuite/surf/maxmin_bench/maxmin_bench.c
teshsuite/surf/surf_usage/surf_usage.c
teshsuite/surf/surf_usage/surf_usage2.c
teshsuite/surf/trace_usage/trace_usage.c
teshsuite/xbt/graphxml_usage/graphxml_usage.c
teshsuite/xbt/heap_bench/heap_bench.c
teshsuite/xbt/log_usage/log_usage.c

index e280cd8..a7266eb 100644 (file)
@@ -216,8 +216,6 @@ if(WIN32)
     if(COMPILER_C_MINOR_VERSION)
       # set(__GNUC_MINOR__ ${COMPILER_C_MINOR_VERSION})
     endif()
-    set(MSVC 0)
-    set(BORLAND 0)
   else()
     message(FATAL_ERROR "Please use MinGW to compile SimGrid!")
   endif()
@@ -247,8 +245,6 @@ if(WIN32)
   message(STATUS "CMAKE_BUILD_TOOL              ${CMAKE_BUILD_TOOL}")
   message(STATUS "LINKER                        ${CMAKE_LINKER}")
   message(STATUS "CMAKE_GENERATOR               ${CMAKE_GENERATOR}")
-  message(STATUS "BORLAND                       ${BORLAND}")
-  message(STATUS "VISUALC                       ${MSVC}")
   message(STATUS "GNUC                          ${CMAKE_COMPILER_IS_GNUCC}")
 
 endif()
index 45d389d..5265002 100644 (file)
@@ -52,7 +52,6 @@
 #cmakedefine _WIN32 @_WIN32@                   /*this variable is set if it is a 32 bits windows platform*/
 #cmakedefine _WIN64 @_WIN64@                   /*this variable is set if it is a 64 bits  windows platform*/
 #cmakedefine __VISUALC__ @__VISUALC__@
-#cmakedefine __BORLANDC__ @__BORLANDC__@
 #ifdef _XBT_WIN32
        #ifndef __GNUC__
                #cmakedefine __GNUC__ @__GNUC__@
index 7e8ad78..e925011 100644 (file)
@@ -64,8 +64,6 @@
 #        define XBT_INLINE inline
 #    elif (defined(__STDC__) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
 #        define XBT_INLINE inline
-#    elif defined(__BORLANDC__) && !defined(__STRICT_ANSI__)
-#        define XBT_INLINE __inline
 #    else
 #        define XBT_INLINE
 #    endif
index 0953a8d..5414fc2 100644 (file)
@@ -12,7 +12,7 @@
  *  support for application self-debugging.
  */
 
-#if defined(_XBT_BORLAND_COMPILER) || defined(_XBT_VISUALC_COMPILER)
+#if defined(_XBT_VISUALC_COMPILER)
 /* native windows build */
 #  include <dbghelp.h>
 #else
index e52a575..12045e9 100644 (file)
@@ -6,11 +6,6 @@
 /* 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. */
 
-/* specific to Borland Compiler */
-#ifdef __BORLANDDC__
-#pragma hdrstop
-#endif
-
 #include "xbt/strbuff.h"
 
 #define minimal_increment 512
index 060ed25..80cb825 100644 (file)
@@ -6,10 +6,6 @@
 /* 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/sysdep.h"
 #include "surf/maxmin.h"
 #include "xbt/log.h"
@@ -470,10 +466,6 @@ void test3(method_t method)
   xbt_free(A);
 }
 
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
 int main(int argc, char **argv)
 {
   xbt_init(&argc, argv);
index 8e7d2b0..f6094e6 100644 (file)
@@ -6,11 +6,6 @@
 /* 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 "surf/maxmin.h"
 #include "xbt/module.h"
 #include "xbt/xbt_os_time.h"
@@ -76,11 +71,6 @@ void test(int nb_cnst, int nb_var, int nb_elem)
   free(used);
 }
 
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
-
 int main(int argc, char **argv)
 {
   int nb_cnst = 2000;
index 46fbbbd..a276637 100644 (file)
@@ -6,10 +6,6 @@
 /* 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 "simgrid/sg_config.h"
 #include "surf/surf.h"
@@ -119,10 +115,6 @@ void test(char *platform)
   XBT_DEBUG("Simulation Terminated");
 }
 
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
 int main(int argc, char **argv)
 {
   surf_init(&argc, argv);       /* Initialize some common structures */
index 8d3791e..c59240d 100644 (file)
@@ -6,10 +6,6 @@
 /* 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 "simgrid/sg_config.h"
 #include "surf/surf.h"
@@ -97,10 +93,6 @@ void test(char *platform)
 
 }
 
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
 int main(int argc, char **argv)
 {
   surf_init(&argc, argv);       /* Initialize some common structures */
index d56c0d7..32ab9e3 100644 (file)
@@ -6,10 +6,6 @@
 /* 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 "surf/trace_mgr.h"
 #include "surf/surf.h"
 
@@ -52,11 +48,6 @@ void test(void)
   free(host_A);
 }
 
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
-
 int main(int argc, char **argv)
 {
   surf_init(&argc, argv);
index 2a1f6f0..767dbeb 100644 (file)
@@ -6,10 +6,6 @@
 /* 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>
 
 #ifdef _MSC_VER
@@ -158,10 +154,6 @@ void test(char *graph_file)
 
 }
 
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
 int main(int argc, char **argv)
 {
   xbt_init(&argc, argv);
index a6d9157..823d6e1 100644 (file)
@@ -6,10 +6,6 @@
 /* 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_os_time.h>
 
 #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);
-#endif
 
 void test_heap_validity(int size);
 void test_heap_mean_operation(int size);
@@ -114,10 +106,6 @@ void test_reset_heap(xbt_heap_t * heap, int size)
 
 }
 
-#ifdef __BORLANDC__
-#pragma argsused
-#endif
-
 int main(int argc, char **argv)
 {
   int size;
index e5b41e1..c5f6f0a 100644 (file)
@@ -6,20 +6,12 @@
 /* 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.h"
 
 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
-
 static void dolog(const char *settings)
 {
   XBT_INFO("Test with the settings '%s'", settings);