X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b9f8f01f1e31a9cec9df207ad241e9c732790cc1..08e7455d67920bbd7a87f440d00f2c1e071314a0:/src/mc/remote/mc_protocol.h diff --git a/src/mc/remote/mc_protocol.h b/src/mc/remote/mc_protocol.h index e620fc60a9..83d2239919 100644 --- a/src/mc/remote/mc_protocol.h +++ b/src/mc/remote/mc_protocol.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2015-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2015-2021. The SimGrid Team. All rights reserved. */ /* 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. */ @@ -16,9 +16,10 @@ #ifdef __cplusplus -#include "cstdint" #include "mc/datatypes.h" #include "simgrid/forward.h" // aid_t +#include +#include // ***** Messages namespace simgrid { @@ -44,7 +45,7 @@ enum class MessageType { } // namespace mc } // namespace simgrid -#define MC_MESSAGE_LENGTH 512 +constexpr unsigned MC_MESSAGE_LENGTH = 512; /** Basic structure for a MC message * @@ -88,7 +89,7 @@ struct s_mc_message_stack_region_t { struct s_mc_message_register_symbol_t { simgrid::mc::MessageType type; - char name[128]; + std::array name; int (*callback)(void*); void* data; };