Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Drop sg_cmdline. Please use xbt_cmdline instead (+include reduction)
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 27 Dec 2018 10:32:03 +0000 (11:32 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 27 Dec 2018 10:32:03 +0000 (11:32 +0100)
ChangeLog
include/smpi/smpi.h
include/xbt/misc.h
src/instr/instr_config.cpp
src/smpi/mpi/smpi_datatype_derived.cpp

index 9ecffb0..121fc47 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,9 @@ MSG:
    This C++ function was a pimple in the C API, made necessary at some
    point by the Java bindings. This is fixed now.
 
    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
 Fixed bugs:
  - #261: Document the parameters of parallel execution's constructor
  - #314: SMPI args internal cleanup
index 8128abf..a4ff7c8 100644 (file)
@@ -6,11 +6,13 @@
 #ifndef SMPI_H
 #define SMPI_H
 
 #ifndef SMPI_H
 #define SMPI_H
 
-#include <unistd.h>
-#include <sys/time.h>
 #include <simgrid/forward.h>
 #include <smpi/forward.hpp>
 #include <simgrid/forward.h>
 #include <smpi/forward.hpp>
+#include <xbt/function_types.h>
+
 #include <stddef.h>
 #include <stddef.h>
+#include <sys/time.h>
+#include <unistd.h>
 #include <xbt/misc.h>
 
 #ifdef _WIN32
 #include <xbt/misc.h>
 
 #ifdef _WIN32
index 7af1415..48015b4 100644 (file)
@@ -8,9 +8,7 @@
 #ifndef XBT_MISC_H
 #define XBT_MISC_H
 
 #ifndef XBT_MISC_H
 #define XBT_MISC_H
 
-#include <simgrid/config.h>
 #include <xbt/base.h>
 #include <xbt/base.h>
-#include <xbt/dynar.h>
 
 #include <stdarg.h>
 
 
 #include <stdarg.h>
 
@@ -25,9 +23,6 @@ XBT_PUBLIC_DATA int xbt_pagebits;
 /** 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);
 
 /** 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
   * @{ */
 /* snprintf related functions */
 /** @addtogroup XBT_str
   * @{ */
index 2522bfb..7ac0a9c 100644 (file)
@@ -7,7 +7,8 @@
 #include "simgrid/s4u/Engine.hpp"
 #include "src/instr/instr_private.hpp"
 #include "surf/surf.hpp"
 #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 <fstream>
 #include <string>
 #include <vector>
index 5bde9a6..6aa6b88 100644 (file)
@@ -8,6 +8,8 @@
 #include "smpi_op.hpp"
 #include <xbt/log.h>
 
 #include "smpi_op.hpp"
 #include <xbt/log.h>
 
+#include <cstring>
+
 namespace simgrid{
 namespace smpi{
 
 namespace simgrid{
 namespace smpi{