Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Forgotten cleanups in includes.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 7 Jan 2020 21:44:36 +0000 (22:44 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 7 Jan 2020 21:44:36 +0000 (22:44 +0100)
include/xbt/backtrace.hpp
src/xbt/backtrace.cpp

index d20fab8..4a3a589 100644 (file)
@@ -8,11 +8,9 @@
 
 #include <xbt/base.h>
 
-#include <cstddef>
 #include <functional>
 #include <memory>
 #include <string>
-#include <vector>
 
 SG_BEGIN_DECL
 /** @brief Shows a backtrace of the current location */
index 4e26ce0..349ed11 100644 (file)
 #include <xbt/sysdep.h>
 #include <xbt/virtu.h>
 
-#include <cstddef>
+#include <cstdio>
 #include <cstdlib>
-#include <cstring>
-#include <fstream>
 #include <sstream>
-#include <sys/stat.h>
-#include <vector>
-
-#include <boost/algorithm/string.hpp>
 
 // Try to detect and use the C++ itanium ABI for name demangling:
 #ifdef __GXX_ABI_VERSION
@@ -81,8 +75,8 @@ std::string Backtrace::resolve() const
 void Backtrace::display() const
 {
   std::string backtrace = resolve();
-  fprintf(stderr, "Backtrace (displayed in actor %s):\n%s\n", xbt_procname(),
-          backtrace.empty() ? "(backtrace not set -- did you install Boost.Stacktrace?)" : backtrace.c_str());
+  std::fprintf(stderr, "Backtrace (displayed in actor %s):\n%s\n", xbt_procname(),
+               backtrace.empty() ? "(backtrace not set -- did you install Boost.Stacktrace?)" : backtrace.c_str());
 }
 
 } // namespace xbt