This C++ function was a pimple in the C API, made necessary at some
point by the Java bindings. This is fixed now.
+XBT:
+ - Drop sg_cmdline. Please use xbt_cmdline instead.
+
Fixed bugs:
- #261: Document the parameters of parallel execution's constructor
- #314: SMPI args internal cleanup
#ifndef SMPI_H
#define SMPI_H
-#include <unistd.h>
-#include <sys/time.h>
#include <simgrid/forward.h>
#include <smpi/forward.hpp>
+#include <xbt/function_types.h>
+
#include <stddef.h>
+#include <sys/time.h>
+#include <unistd.h>
#include <xbt/misc.h>
#ifdef _WIN32
#ifndef XBT_MISC_H
#define XBT_MISC_H
-#include <simgrid/config.h>
#include <xbt/base.h>
-#include <xbt/dynar.h>
#include <stdarg.h>
/** Helps ensuring that header version (SIMGRID_VERSION_MAJOR and friends) and dynamic library version do match. */
XBT_PUBLIC void sg_version_check(int lib_version_major, int lib_version_minor, int lib_version_patch);
-/** Contains all the parameters we got from the command line */
-XBT_PUBLIC_DATA xbt_dynar_t sg_cmdline;
-
/* snprintf related functions */
/** @addtogroup XBT_str
* @{ */
#include "simgrid/s4u/Engine.hpp"
#include "src/instr/instr_private.hpp"
#include "surf/surf.hpp"
-#include "xbt/virtu.h" /* sg_cmdline */
+#include "xbt/virtu.h" /* xbt_cmdline */
+
#include <fstream>
#include <string>
#include <vector>
#include "smpi_op.hpp"
#include <xbt/log.h>
+#include <cstring>
+
namespace simgrid{
namespace smpi{