From fbf96d959e4912fe445823b75cf102a0e89131e2 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Fri, 2 Sep 2016 17:53:53 +0200 Subject: [PATCH] msg_private.h is a C++ header so add pp --- src/msg/instr_msg_process.cpp | 2 +- src/msg/instr_msg_task.cpp | 2 +- src/msg/instr_msg_vm.cpp | 2 +- src/msg/msg_actions.cpp | 2 +- src/msg/msg_deployment.cpp | 2 +- src/msg/msg_environment.cpp | 2 +- src/msg/msg_global.cpp | 3 ++- src/msg/msg_gos.cpp | 2 +- src/msg/msg_host.cpp | 2 +- src/msg/msg_io.cpp | 2 +- src/msg/msg_mailbox.cpp | 3 ++- src/msg/{msg_private.h => msg_private.hpp} | 0 src/msg/msg_process.cpp | 3 ++- src/msg/msg_synchro.cpp | 2 +- src/msg/msg_task.cpp | 2 +- src/msg/msg_vm.cpp | 2 +- src/s4u/s4u_activity.cpp | 3 +-- src/s4u/s4u_actor.cpp | 4 ++-- src/s4u/s4u_comm.cpp | 3 +-- src/s4u/s4u_file.cpp | 4 ++-- src/s4u/s4u_host.cpp | 2 +- src/s4u/s4u_mailbox.cpp | 3 ++- src/s4u/s4u_mutex.cpp | 2 +- src/simix/ActorImpl.cpp | 2 +- src/smpi/smpi_global.cpp | 2 +- tools/cmake/DefinePackages.cmake | 2 +- 26 files changed, 31 insertions(+), 29 deletions(-) rename src/msg/{msg_private.h => msg_private.hpp} (100%) diff --git a/src/msg/instr_msg_process.cpp b/src/msg/instr_msg_process.cpp index bcdb775ff8..d2d6be0754 100644 --- a/src/msg/instr_msg_process.cpp +++ b/src/msg/instr_msg_process.cpp @@ -4,8 +4,8 @@ /* 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 "msg_private.hpp" #include "src/simix/ActorImpl.hpp" -#include "msg_private.h" XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_msg_process, instr, "MSG process"); diff --git a/src/msg/instr_msg_task.cpp b/src/msg/instr_msg_task.cpp index c450a220c0..a6f655b1c3 100644 --- a/src/msg/instr_msg_task.cpp +++ b/src/msg/instr_msg_task.cpp @@ -5,8 +5,8 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "src/instr/instr_private.h" -#include "msg_private.h" #include "mc/mc.h" +#include "msg_private.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_msg, instr, "MSG"); diff --git a/src/msg/instr_msg_vm.cpp b/src/msg/instr_msg_vm.cpp index 995a22ddda..2c9478ede6 100644 --- a/src/msg/instr_msg_vm.cpp +++ b/src/msg/instr_msg_vm.cpp @@ -4,7 +4,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 "msg_private.h" +#include "msg_private.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_msg_vm, instr, "MSG VM"); diff --git a/src/msg/msg_actions.cpp b/src/msg/msg_actions.cpp index 85f009f5a9..461b7cbed4 100644 --- a/src/msg/msg_actions.cpp +++ b/src/msg/msg_actions.cpp @@ -4,11 +4,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. */ -#include "msg_private.h" #include "xbt/dynar.h" #include "xbt/replay.h" #include +#include "msg_private.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_action, msg, "MSG actions for trace driven simulation"); diff --git a/src/msg/msg_deployment.cpp b/src/msg/msg_deployment.cpp index 015d748e8c..6f09557559 100644 --- a/src/msg/msg_deployment.cpp +++ b/src/msg/msg_deployment.cpp @@ -4,9 +4,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. */ -#include "msg_private.h" #include "xbt/sysdep.h" #include "xbt/log.h" +#include "msg_private.hpp" /** \ingroup msg_simulation * \brief An application deployer. diff --git a/src/msg/msg_environment.cpp b/src/msg/msg_environment.cpp index 5e29b9705c..bd0ec18228 100644 --- a/src/msg/msg_environment.cpp +++ b/src/msg/msg_environment.cpp @@ -4,12 +4,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. */ -#include "msg_private.h" #include "xbt/sysdep.h" #include "xbt/log.h" #include "simgrid/s4u/As.hpp" #include "simgrid/s4u/engine.hpp" +#include "msg_private.hpp" #if HAVE_LUA #include diff --git a/src/msg/msg_global.cpp b/src/msg/msg_global.cpp index 9a953007f0..f787cc0ee5 100644 --- a/src/msg/msg_global.cpp +++ b/src/msg/msg_global.cpp @@ -8,10 +8,11 @@ #include "simgrid/msg.h" #include "instr/instr_interface.h" -#include "msg_private.h" #include "mc/mc.h" #include "xbt/sysdep.h" #include "xbt/log.h" + +#include "msg_private.hpp" #include "simgrid/sg_config.h" /* Configuration mechanism of SimGrid */ #include "src/surf/xml/platf_private.hpp" // FIXME: KILLME by removing MSG_post_create_environment() diff --git a/src/msg/msg_gos.cpp b/src/msg/msg_gos.cpp index 295ba5f308..865aa3e5e5 100644 --- a/src/msg/msg_gos.cpp +++ b/src/msg/msg_gos.cpp @@ -6,10 +6,10 @@ #include #include "src/simix/smx_private.h" /* MSG_task_listen looks inside the rdv directly. Not clean. */ -#include "msg_private.h" #include "mc/mc.h" #include "xbt/log.h" #include "xbt/sysdep.h" +#include "msg_private.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_gos, msg, "Logging specific to MSG (gos)"); diff --git a/src/msg/msg_host.cpp b/src/msg/msg_host.cpp index 6a56a66425..c1af957400 100644 --- a/src/msg/msg_host.cpp +++ b/src/msg/msg_host.cpp @@ -4,11 +4,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. */ -#include "src/msg/msg_private.h" #include "xbt/sysdep.h" #include "xbt/log.h" #include "simgrid/simix.h" #include +#include "msg_private.hpp" XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(msg); diff --git a/src/msg/msg_io.cpp b/src/msg/msg_io.cpp index 510ac65395..6e99bcff2e 100644 --- a/src/msg/msg_io.cpp +++ b/src/msg/msg_io.cpp @@ -6,8 +6,8 @@ #include -#include "msg_private.h" #include "xbt/log.h" +#include "msg_private.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_io, msg, "Logging specific to MSG (io)"); diff --git a/src/msg/msg_mailbox.cpp b/src/msg/msg_mailbox.cpp index 218671054d..8b09b2e0a4 100644 --- a/src/msg/msg_mailbox.cpp +++ b/src/msg/msg_mailbox.cpp @@ -9,8 +9,9 @@ #include #include "simgrid/msg.h" -#include "msg_private.h" #include "simgrid/s4u/Actor.hpp" + +#include "msg_private.hpp" #include "simgrid/s4u/Mailbox.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_mailbox, msg, "Logging specific to MSG (mailbox)"); diff --git a/src/msg/msg_private.h b/src/msg/msg_private.hpp similarity index 100% rename from src/msg/msg_private.h rename to src/msg/msg_private.hpp diff --git a/src/msg/msg_process.cpp b/src/msg/msg_process.cpp index 17b02ef0d2..ada529cc80 100644 --- a/src/msg/msg_process.cpp +++ b/src/msg/msg_process.cpp @@ -6,10 +6,11 @@ #include -#include "msg_private.h" #include "xbt/sysdep.h" #include "xbt/log.h" #include "xbt/functional.hpp" + +#include "msg_private.hpp" #include "src/simix/ActorImpl.hpp" #include "src/simix/smx_private.h" diff --git a/src/msg/msg_synchro.cpp b/src/msg/msg_synchro.cpp index fa46da9ba5..4c00c9c297 100644 --- a/src/msg/msg_synchro.cpp +++ b/src/msg/msg_synchro.cpp @@ -6,10 +6,10 @@ #include -#include "msg_private.h" #include "xbt/sysdep.h" #include "xbt/synchro_core.h" #include "xbt/log.h" +#include "msg_private.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_synchro, msg, "Logging specific to MSG (synchro)"); diff --git a/src/msg/msg_task.cpp b/src/msg/msg_task.cpp index a8b0c6b5ee..1e8986f035 100644 --- a/src/msg/msg_task.cpp +++ b/src/msg/msg_task.cpp @@ -3,10 +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. */ -#include "msg_private.h" #include "src/simix/smx_private.h" #include "xbt/sysdep.h" #include "xbt/log.h" +#include "msg_private.hpp" /** @addtogroup m_task_management * diff --git a/src/msg/msg_vm.cpp b/src/msg/msg_vm.cpp index 2198f6d593..1879dd2e19 100644 --- a/src/msg/msg_vm.cpp +++ b/src/msg/msg_vm.cpp @@ -13,10 +13,10 @@ #include -#include "msg_private.h" #include "xbt/sysdep.h" #include "xbt/log.h" #include "simgrid/host.h" +#include "msg_private.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_vm, msg, "Cloud-oriented parts of the MSG API"); diff --git a/src/s4u/s4u_activity.cpp b/src/s4u/s4u_activity.cpp index 4568abb6c3..12343db26b 100644 --- a/src/s4u/s4u_activity.cpp +++ b/src/s4u/s4u_activity.cpp @@ -5,9 +5,8 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/log.h" -#include "src/msg/msg_private.h" - #include "simgrid/s4u/Activity.hpp" +#include "../msg/msg_private.hpp" XBT_LOG_EXTERNAL_CATEGORY(s4u); XBT_LOG_NEW_DEFAULT_SUBCATEGORY(s4u_activity,s4u,"S4U activities"); diff --git a/src/s4u/s4u_actor.cpp b/src/s4u/s4u_actor.cpp index 1b46b96d40..c239a29cf5 100644 --- a/src/s4u/s4u_actor.cpp +++ b/src/s4u/s4u_actor.cpp @@ -5,11 +5,11 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/log.h" -#include "src/msg/msg_private.h" - #include "simgrid/s4u/Actor.hpp" #include "simgrid/s4u/comm.hpp" #include "simgrid/s4u/host.hpp" + +#include "../msg/msg_private.hpp" #include "simgrid/s4u/Mailbox.hpp" #include "src/kernel/context/Context.hpp" diff --git a/src/s4u/s4u_comm.cpp b/src/s4u/s4u_comm.cpp index 3d6be869d4..6d051ecf93 100644 --- a/src/s4u/s4u_comm.cpp +++ b/src/s4u/s4u_comm.cpp @@ -5,10 +5,9 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/log.h" -#include "src/msg/msg_private.h" - #include "simgrid/s4u/comm.hpp" #include +#include "../msg/msg_private.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(s4u_comm,s4u_activity,"S4U asynchronous communications"); diff --git a/src/s4u/s4u_file.cpp b/src/s4u/s4u_file.cpp index 7512efb3a7..3256e2706e 100644 --- a/src/s4u/s4u_file.cpp +++ b/src/s4u/s4u_file.cpp @@ -4,11 +4,11 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/log.h" -#include "src/msg/msg_private.h" - #include "simgrid/s4u/Actor.hpp" #include "simgrid/s4u/comm.hpp" #include "simgrid/s4u/host.hpp" + +#include "../msg/msg_private.hpp" #include "simgrid/s4u/Mailbox.hpp" XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_file,"S4U files"); diff --git a/src/s4u/s4u_host.cpp b/src/s4u/s4u_host.cpp index d38b8e03f2..9af303277b 100644 --- a/src/s4u/s4u_host.cpp +++ b/src/s4u/s4u_host.cpp @@ -13,12 +13,12 @@ #include "simgrid/simix.hpp" #include "src/surf/HostImpl.hpp" #include "xbt/log.h" -#include "src/msg/msg_private.h" #include "src/simix/ActorImpl.hpp" #include "src/simix/smx_private.h" #include "src/surf/cpu_interface.hpp" #include "simgrid/s4u/host.hpp" #include "simgrid/s4u/storage.hpp" +#include "../msg/msg_private.hpp" int MSG_HOST_LEVEL = -1; int USER_HOST_LEVEL = -1; diff --git a/src/s4u/s4u_mailbox.cpp b/src/s4u/s4u_mailbox.cpp index c23d735e4c..90233b5e76 100644 --- a/src/s4u/s4u_mailbox.cpp +++ b/src/s4u/s4u_mailbox.cpp @@ -5,7 +5,8 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/log.h" -#include "src/msg/msg_private.h" + +#include "../msg/msg_private.hpp" #include "src/simix/ActorImpl.hpp" #include "src/simix/smx_network_private.h" #include "simgrid/s4u/Mailbox.hpp" diff --git a/src/s4u/s4u_mutex.cpp b/src/s4u/s4u_mutex.cpp index 4f2cce6deb..20d87d9e8b 100644 --- a/src/s4u/s4u_mutex.cpp +++ b/src/s4u/s4u_mutex.cpp @@ -5,10 +5,10 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/log.h" -#include "src/msg/msg_private.h" #include "src/simix/smx_synchro_private.h" #include "simgrid/s4u/Mutex.hpp" +#include "../msg/msg_private.hpp" namespace simgrid { namespace s4u { diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index d283b1e794..6aaab5e613 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -20,12 +20,12 @@ #include #include +#include "../msg/msg_private.hpp" #include "src/surf/surf_interface.hpp" #include "smx_private.h" #include "src/mc/mc_replay.h" #include "src/mc/Client.hpp" -#include "src/msg/msg_private.h" #include "src/kernel/activity/SynchroSleep.hpp" #include "src/kernel/activity/SynchroRaw.hpp" #include "src/kernel/activity/SynchroIo.hpp" diff --git a/src/smpi/smpi_global.cpp b/src/smpi/smpi_global.cpp index 542997798f..560bce26e1 100644 --- a/src/smpi/smpi_global.cpp +++ b/src/smpi/smpi_global.cpp @@ -14,7 +14,6 @@ #include "src/simix/smx_private.h" #include "simgrid/sg_config.h" #include "src/mc/mc_replay.h" -#include "src/msg/msg_private.h" #include "src/kernel/activity/SynchroComm.hpp" #include /* DBL_MAX */ @@ -25,6 +24,7 @@ #include #include #include +#include "../msg/msg_private.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_kernel, smpi, "Logging specific to SMPI (kernel)"); #include diff --git a/tools/cmake/DefinePackages.cmake b/tools/cmake/DefinePackages.cmake index ba6c3c026e..11a7f08f0d 100644 --- a/tools/cmake/DefinePackages.cmake +++ b/tools/cmake/DefinePackages.cmake @@ -14,7 +14,7 @@ set(EXTRA_DIST src/include/surf/datatypes.h src/include/surf/maxmin.h src/include/surf/surf.h - src/msg/msg_private.h + src/msg/msg_private.hpp src/simdag/dax.dtd src/simdag/dax_dtd.c src/simdag/dax_dtd.h -- 2.20.1