X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d9dde0b9bb9032fdea9a8caa97b5fec79f9ca280..5930585fb6f11543a87e4c5c72356ac89222237c:/src/simix/popping_private.hpp diff --git a/src/simix/popping_private.hpp b/src/simix/popping_private.hpp index 70e6d28f92..285d39bb6f 100644 --- a/src/simix/popping_private.hpp +++ b/src/simix/popping_private.hpp @@ -9,17 +9,18 @@ #include "simgrid/forward.h" #include "src/kernel/activity/ActivityImpl.hpp" +#include #include /********************************* Simcalls *********************************/ -#include "popping_enum.h" /* Definition of e_smx_simcall_t, with one value per simcall */ +#include "popping_enum.hpp" /* Definition of e_smx_simcall_t, with one value per simcall */ -XBT_PUBLIC_DATA const char* simcall_names[]; /* Name of each simcall */ +XBT_PUBLIC_DATA const std::array simcall_names; /* Name of each simcall */ typedef bool (*simix_match_func_t)(void*, void*, simgrid::kernel::activity::CommImpl*); typedef void (*simix_copy_data_func_t)(simgrid::kernel::activity::CommImpl*, void*, size_t); typedef void (*simix_clean_func_t)(void*); -typedef void (*FPtr)(void); // Hide the ugliness +typedef void (*FPtr)(); // Hide the ugliness /* Pack all possible scalar types in an union */ union u_smx_scalar { @@ -48,8 +49,8 @@ struct s_smx_simcall { smx_timer_t timeout_cb_ = nullptr; // Callback to timeouts simgrid::mc::SimcallInspector* inspector_ = nullptr; // makes that simcall observable by the MC int mc_value_ = 0; - u_smx_scalar args_[11] = {{0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}}; - u_smx_scalar result_ = {0}; + u_smx_scalar args_[11] = {}; + u_smx_scalar result_ = {}; }; #define SIMCALL_SET_MC_VALUE(simcall, value) ((simcall).mc_value_ = (value))