#include "mpi.h"
#include "simgrid/s4u.hpp"
-#include <stdio.h> /* snprintf */
+#include <cstdio> /* snprintf */
XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "src/kernel/resource/profile/DatedValue.hpp"
-#include <math.h>
+#include <cmath>
namespace simgrid {
namespace kernel {
XBT_PRIVATE extern FILE* dot_output;
-XBT_PRIVATE void MC_show_deadlock(void);
+XBT_PRIVATE void MC_show_deadlock();
/********************************** Miscellaneous **********************************/
namespace simgrid {
XBT_PRIVATE const char* MC_smx_actor_get_name(smx_actor_t p);
XBT_PRIVATE const char* MC_smx_actor_get_host_name(smx_actor_t p);
-XBT_PRIVATE unsigned long MC_smx_get_maxpid(void);
+XBT_PRIVATE unsigned long MC_smx_get_maxpid();
#endif
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "src/mc/remote/CheckerSide.hpp"
-#include <signal.h>
+#include <csignal>
#include <sys/wait.h>
namespace simgrid {
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 {
#define MV2_MAX_NB_THRESHOLDS 32
-XBT_PUBLIC void smpi_coll_cleanup_mvapich2(void);
+XBT_PUBLIC void smpi_coll_cleanup_mvapich2();
struct mv2_alltoall_tuning_element {
int min;
log_cat_init_mutex = new std::recursive_mutex();
}
-static void xbt_log_help(void);
-static void xbt_log_help_categories(void);
+static void xbt_log_help();
+static void xbt_log_help_categories();
/** @brief Get all logging settings from the command line
*
cat->additivity = additivity;
}
-static void xbt_log_help(void)
+static void xbt_log_help()
{
XBT_HELP(
"Description of the logging output:\n"
}
}
-static void xbt_log_help_categories(void)
+static void xbt_log_help_categories()
{
XBT_HELP("Current log category hierarchy:");
xbt_log_help_categories_rec(&_XBT_LOGV(XBT_LOG_ROOT_CAT), " ");
#include <unistd.h>
#endif
+#include <cerrno>
#include <cstring>
-#include <errno.h>
#include <libgen.h> /* POSIX dirname */
simgrid::xbt::Path::Path()
// This is the MWE of https://framagit.org/simgrid/simgrid/-/issues/50
// The problem was occurring when suspending an actor that will be executed later in the same scheduling round
+#include <cstdio>
+#include <cstdlib>
#include <iostream>
#include <simgrid/s4u.hpp>
-#include <stdio.h>
-#include <stdlib.h>
#include <vector>
XBT_LOG_NEW_DEFAULT_CATEGORY(mwe, "Minimum Working Example");
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "simgrid/s4u.hpp"
-#include <float.h>
+#include <cfloat>
XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Messages specific to this example");
static void sender_fun()
#include "simgrid/s4u.hpp"
#include "xbt/random.hpp"
#include "xbt/xbt_os_time.h"
-#include <stdio.h>
+#include <cstdio>
int main(int argc, char** argv)
{
// teshsuite/s4u/evaluate-parse-time/evaluate-parse-time examples/platforms/g5k.xml
-#include <stdio.h>
+#include <cstdio>
#include "simgrid/s4u/Engine.hpp"
#include "xbt/xbt_os_time.h"