Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename mc_base.h -> .hpp (it's C++ only anyway).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 2 Mar 2021 19:54:07 +0000 (20:54 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 2 Mar 2021 20:46:42 +0000 (21:46 +0100)
MANIFEST.in
src/mc/inspect/LocationList.hpp
src/mc/mc_base.cpp
src/mc/mc_base.hpp [moved from src/mc/mc_base.h with 93% similarity]
src/mc/mc_record.cpp
src/xbt/mmalloc/mm_legacy.c
tools/cmake/DefinePackages.cmake

index acc1fb8..ca71a3a 100644 (file)
@@ -2246,7 +2246,7 @@ include src/mc/inspect/mc_unw.cpp
 include src/mc/inspect/mc_unw.hpp
 include src/mc/inspect/mc_unw_vmread.cpp
 include src/mc/mc_base.cpp
-include src/mc/mc_base.h
+include src/mc/mc_base.hpp
 include src/mc/mc_client_api.cpp
 include src/mc/mc_comm_pattern.hpp
 include src/mc/mc_config.cpp
index 2de26d7..3380494 100644 (file)
@@ -10,7 +10,7 @@
 #include "xbt/range.hpp"
 
 #include "src/mc/inspect/DwarfExpression.hpp"
-#include "src/mc/mc_base.h"
+#include "src/mc/mc_base.hpp"
 #include "src/mc/mc_forward.hpp"
 
 #include <cstdint>
index 3788cd4..3b44ac8 100644 (file)
@@ -3,7 +3,7 @@
 /* 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. */
 
-#include "src/mc/mc_base.h"
+#include "src/mc/mc_base.hpp"
 #include "mc/mc.h"
 #include "src/kernel/activity/CommImpl.hpp"
 #include "src/kernel/activity/MutexImpl.hpp"
similarity index 93%
rename from src/mc/mc_base.h
rename to src/mc/mc_base.hpp
index 189388f..30d4d15 100644 (file)
@@ -3,13 +3,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. */
 
-#ifndef SIMGRID_MC_BASE_H
-#define SIMGRID_MC_BASE_H
+#ifndef SIMGRID_MC_BASE_HPP
+#define SIMGRID_MC_BASE_HPP
 
 #include "simgrid/forward.h"
-
-#ifdef __cplusplus
-
 #include <vector>
 
 namespace simgrid {
@@ -41,9 +38,7 @@ XBT_PRIVATE bool actor_is_enabled(smx_actor_t process);
 
 /** Check if the given simcall is visible */
 XBT_PRIVATE bool request_is_visible(const s_smx_simcall* req);
-}
-}
-
-#endif
+} // namespace mc
+} // namespace simgrid
 
 #endif
index 38321e4..6e3fd31 100644 (file)
@@ -7,7 +7,7 @@
 #include "src/kernel/activity/CommImpl.hpp"
 #include "src/kernel/context/Context.hpp"
 #include "src/mc/Transition.hpp"
-#include "src/mc/mc_base.h"
+#include "src/mc/mc_base.hpp"
 #include "src/mc/mc_replay.hpp"
 
 #if SIMGRID_HAVE_MC
index 81230d1..7ab16fd 100644 (file)
@@ -13,7 +13,6 @@
 
 #include "mmprivate.h"
 #include "src/internal_config.h"
-#include "src/mc/mc_base.h"
 #include "src/mc/remote/mc_protocol.h"
 #include "src/xbt_modinter.h"
 #include <math.h>
index bb78652..548a950 100644 (file)
@@ -573,7 +573,7 @@ set(JEDULE_SRC
 
 set(MC_SRC_BASE
   src/mc/mc_base.cpp
-  src/mc/mc_base.h
+  src/mc/mc_base.hpp
   src/mc/mc_record.hpp
   src/mc/mc_replay.hpp
   src/mc/mc_record.cpp