#include <xbt/dict.h>
/* C interface */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** @brief Actor datatype.
@ingroup m_actor_management
XBT_PUBLIC void* sg_actor_data(sg_actor_t actor);
XBT_PUBLIC void sg_actor_data_set(sg_actor_t actor, void* userdata);
-SG_END_DECL()
+SG_END_DECL
#endif /* INCLUDE_SIMGRID_ACTOR_H_ */
#endif
/* C interface */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC sg_bar_t sg_barrier_init(unsigned int count);
XBT_PUBLIC void sg_barrier_destroy(sg_bar_t bar);
XBT_PUBLIC int sg_barrier_wait(sg_bar_t bar);
-SG_END_DECL()
+SG_END_DECL
#endif /* INCLUDE_SIMGRID_BARRIER_H_ */
#include <simgrid/forward.h>
/* C interface */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** @brief Creates a condition variable */
XBT_PUBLIC sg_cond_t sg_cond_init();
/** @brief Destroys the given mutex variable */
XBT_PUBLIC void sg_cond_destroy(sg_cond_t cond);
-SG_END_DECL()
+SG_END_DECL
#endif /* INCLUDE_SIMGRID_COND_H_ */
#define SIMGRID_VERSION_PATCH @SIMGRID_VERSION_PATCH@
#define SIMGRID_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** Retrieves the version numbers of the used dynamic library (so, DLL or dynlib), while
SIMGRID_VERSION_MAJOR and friends give the version numbers of the used header files */
XBT_PUBLIC void sg_version_get(int* major, int* minor, int* patch);
/** Display the version information and some additional blurb. */
XBT_PUBLIC void sg_version();
-SG_END_DECL()
+SG_END_DECL
/* Version as a single integer. v3.4 is 30400, v3.16.2 is 31602, v42 will be 420000, and so on. */
#include <simgrid/forward.h>
/* C interface */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC void simgrid_init(int* argc, char** argv);
XBT_PUBLIC void simgrid_load_platform(const char* filename);
XBT_PUBLIC void simgrid_load_deployment(const char* filename);
XBT_PUBLIC double simgrid_get_clock();
XBT_PUBLIC void sg_config_continue_after_help();
-SG_END_DECL()
+SG_END_DECL
#endif /* INCLUDE_SIMGRID_ENGINE_H_ */
#include <xbt/dynar.h>
#include <simgrid/forward.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** @brief Host datatype.
*
* A <em>location</em> (or <em>host</em>) is any possible place where an actor may run. Thus it is represented as a
XBT_PUBLIC void sg_host_dump(sg_host_t ws);
XBT_PUBLIC void sg_host_get_actor_list(sg_host_t host, xbt_dynar_t whereto);
-SG_END_DECL()
+SG_END_DECL
#endif /* SIMGRID_HOST_H_ */
#include <simgrid/msg.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/* Functions to manage tracing categories */
XBT_PUBLIC void TRACE_category(const char* category);
XBT_PUBLIC xbt_dynar_t TRACE_get_node_types();
XBT_PUBLIC xbt_dynar_t TRACE_get_edge_types();
-SG_END_DECL()
+SG_END_DECL
#endif /* INSTR_H_ */
#include <simgrid/simdag.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC void jedule_log_sd_event(SD_task_t task);
XBT_PUBLIC void jedule_sd_init(void);
XBT_PUBLIC void jedule_sd_exit(void);
XBT_PUBLIC void jedule_sd_dump(const char* filename);
-SG_END_DECL()
+SG_END_DECL
#endif /* JEDULE_SD_BINDING_H_ */
#include <xbt/base.h>
/* C interface */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC const char* sg_link_name(sg_link_t link);
XBT_PUBLIC sg_link_t sg_link_by_name(const char* name);
XBT_PUBLIC int sg_link_is_shared(sg_link_t link);
XBT_PUBLIC void sg_link_data_set(sg_link_t link, void* data);
XBT_PUBLIC int sg_link_count();
XBT_PUBLIC sg_link_t* sg_link_list();
-SG_END_DECL()
+SG_END_DECL
#endif /* INCLUDE_SIMGRID_LINK_H_ */
#include <xbt/base.h>
/* C interface */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC void sg_mailbox_set_receiver(const char* alias);
XBT_PUBLIC int sg_mailbox_listen(const char* alias);
-SG_END_DECL()
+SG_END_DECL
#endif /* INCLUDE_SIMGRID_MAILBOX_H_ */
#include <stddef.h> /* size_t */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC int MC_random(int min, int max);
#endif
-SG_END_DECL()
+SG_END_DECL
#endif /* SIMGRID_MODELCHECKER_H */
#include <simgrid/forward.h>
/* C interface */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC sg_mutex_t sg_mutex_init();
XBT_PUBLIC void sg_mutex_lock(sg_mutex_t mutex);
XBT_PUBLIC void sg_mutex_unlock(sg_mutex_t mutex);
XBT_PUBLIC int sg_mutex_try_lock(sg_mutex_t mutex);
XBT_PUBLIC void sg_mutex_destroy(sg_mutex_t mutex);
-SG_END_DECL()
+SG_END_DECL
#endif /* INCLUDE_SIMGRID_MUTEX_H_ */
#include <simgrid/forward.h>
#include <xbt/base.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC void sg_host_dvfs_plugin_init();
#define MSG_host_dvfs_plugin_init() sg_host_dvfs_plugin_init()
-SG_END_DECL()
+SG_END_DECL
#endif
#include <xbt/base.h>
#include <simgrid/forward.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC void sg_host_energy_plugin_init();
XBT_PUBLIC void sg_host_energy_update_all();
#define MSG_host_get_power_range_slope_at(host,pstate) sg_host_get_power_range_slope_at((host), (pstate))
#define MSG_host_get_current_consumption(host) sg_host_get_current_consumption(host)
-SG_END_DECL()
+SG_END_DECL
#endif
////////////////
typedef sg_file_t msg_file_t; // MSG backwards compatibility
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC void sg_storage_file_system_init();
XBT_PUBLIC sg_file_t sg_file_open(const char* fullpath, void* data);
XBT_PUBLIC sg_size_t sg_file_read(sg_file_t fd, sg_size_t size);
#define MSG_host_get_storage_content(st) sg_host_get_storage_content(st)
-SG_END_DECL()
+SG_END_DECL
// C++ interface
//////////////////
#include <simgrid/forward.h>
#include <xbt/base.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC void sg_vm_live_migration_plugin_init();
XBT_PRIVATE void sg_vm_dirty_page_tracking_init();
#define MSG_vm_is_migrating(vm) sg_vm_is_migrating(vm)
#define MSG_vm_migrate(vm, dst_pm) sg_vm_migrate((vm), (dst_pm))
-SG_END_DECL()
+SG_END_DECL
#endif
#include <simgrid/forward.h>
#include <xbt/base.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC void sg_host_load_plugin_init();
XBT_PUBLIC double sg_host_get_current_load(sg_host_t host);
#define MSG_host_get_computed_flops(host) sg_host_get_computed_flops(host)
#define MSG_host_get_avg_load(host) sg_host_get_avg_load(host)
-SG_END_DECL()
+SG_END_DECL
#endif
#include <simgrid/forward.h>
#include <xbt/base.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC void sg_load_balancer_plugin_init();
-SG_END_DECL()
+SG_END_DECL
#endif
#include <simgrid/forward.h>
/* C interface */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC sg_sem_t sg_sem_init(int initial_value);
XBT_PUBLIC void sg_sem_acquire(sg_sem_t sem);
XBT_PUBLIC int sg_sem_acquire_timeout(sg_sem_t sem, double timeout);
XBT_PUBLIC void sg_sem_destroy(sg_sem_t sem);
XBT_PUBLIC int sg_sem_would_block(sg_sem_t sem);
-SG_END_DECL()
+SG_END_DECL
#endif /* INCLUDE_SIMGRID_SEMAPHORE_H_ */
#include <set>
#endif
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** @brief Link opaque datatype
@ingroup SD_link_api
//SD_route_get_size
//SD_route_get_list
//TRACE_sd_set_task_category
-SG_END_DECL()
+SG_END_DECL
#ifdef __cplusplus
namespace simgrid {
extern unsigned smx_context_stack_size;
extern unsigned smx_context_guard_size;
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC smx_actor_t SIMIX_process_from_PID(aid_t PID);
double SIMIX_timer_get_date(smx_timer_t timer);
XBT_PUBLIC void SIMIX_display_process_status();
-SG_END_DECL()
+SG_END_DECL
/******************************** Deployment **********************************/
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC void SIMIX_function_register_default(xbt_main_func_t code);
XBT_PUBLIC void SIMIX_init_application();
XBT_PUBLIC void SIMIX_process_set_function(const char* process_host, const char* process_function,
xbt_dynar_t arguments, double process_start_time, double process_kill_time);
-SG_END_DECL()
+SG_END_DECL
#ifdef __cplusplus
XBT_PUBLIC void SIMIX_function_register(const std::string& name, void (*code)(std::vector<std::string>));
#endif
/********************************* Process ************************************/
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC int SIMIX_process_count();
XBT_PUBLIC smx_actor_t SIMIX_process_self();
XBT_PUBLIC const char* SIMIX_process_self_get_name();
XBT_PUBLIC void SIMIX_process_self_set_data(void* data);
XBT_PUBLIC void* SIMIX_process_self_get_data();
-SG_END_DECL()
+SG_END_DECL
#ifdef __cplusplus
XBT_PUBLIC void SIMIX_process_on_exit(smx_actor_t process, const std::function<void(bool /*failed*/)>& fun);
#endif
/**************************** Process simcalls ********************************/
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
void simcall_process_set_data(smx_actor_t process, void* data);
XBT_ATTRIB_DEPRECATED_v328("Please use Actor::suspend()") XBT_PUBLIC void simcall_process_suspend(smx_actor_t process);
/* Sleep control */
XBT_PUBLIC e_smx_state_t simcall_process_sleep(double duration);
-SG_END_DECL()
+SG_END_DECL
/************************** Communication simcalls ****************************/
#endif
/************************** Synchro simcalls **********************************/
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC smx_mutex_t simcall_mutex_init();
XBT_PUBLIC void simcall_mutex_lock(smx_mutex_t mutex);
XBT_PUBLIC int simcall_mutex_trylock(smx_mutex_t mutex);
XBT_PUBLIC void simcall_sem_acquire(smx_sem_t sem);
XBT_PUBLIC int simcall_sem_acquire_timeout(smx_sem_t sem, double max_duration);
-SG_END_DECL()
+SG_END_DECL
/***************************** Io **************************************/
#ifdef __cplusplus
XBT_PUBLIC e_smx_state_t simcall_io_wait(const smx_activity_t& io);
#endif
/************************** MC simcalls **********************************/
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC int simcall_mc_random(int min, int max);
-SG_END_DECL()
+SG_END_DECL
#endif
#include <xbt/base.h>
/* C interface */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC const char* sg_storage_get_name(sg_storage_t storage);
XBT_PUBLIC sg_storage_t sg_storage_get_by_name(const char* name);
XBT_PUBLIC sg_size_t sg_storage_read(sg_storage_t storage, sg_size_t size);
XBT_PUBLIC sg_size_t sg_storage_write(sg_storage_t storage, sg_size_t size);
-SG_END_DECL()
+SG_END_DECL
#endif /* INCLUDE_SIMGRID_STORAGE_H_ */
#include <xbt/base.h>
/* C interface */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** @brief Opaque type describing a Virtual Machine.
* @ingroup msg_VMs
XBT_PUBLIC void sg_vm_shutdown(sg_vm_t vm);
XBT_PUBLIC void sg_vm_destroy(sg_vm_t vm);
-SG_END_DECL()
+SG_END_DECL
#endif /* INCLUDE_SIMGRID_VM_H_ */
#include <xbt/dict.h>
/* C interface */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC sg_netzone_t sg_zone_get_root();
XBT_PUBLIC const char* sg_zone_get_name(sg_netzone_t zone);
XBT_PUBLIC void sg_zone_set_property_value(sg_netzone_t netzone, const char* name, char* value);
XBT_PUBLIC void sg_zone_get_hosts(sg_netzone_t zone, xbt_dynar_t whereto);
-SG_END_DECL()
+SG_END_DECL
#endif /* INCLUDE_SIMGRID_ZONE_H_ */
#define free(ptr) _sampi_free(ptr)
#endif
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC void* _sampi_malloc(size_t size);
XBT_PUBLIC void* _sampi_calloc(size_t n_elm, size_t elm_size);
AMPI_CALL(XBT_PUBLIC int, MPI_Iteration_out, (MPI_Comm comm))
AMPI_CALL(XBT_PUBLIC void, MPI_Migrate, (MPI_Comm comm))
-SG_END_DECL()
+SG_END_DECL
#endif
type _XBT_CONCAT(P, name) args
#endif
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
#define MPI_THREAD_SINGLE 0
#define MPI_THREAD_FUNNELED 1
#define MPI_THREAD_SERIALIZED 2
XBT_PUBLIC void SMPI_init();
XBT_PUBLIC void SMPI_finalize();
-SG_END_DECL()
+SG_END_DECL
/* C++ declarations for shared_malloc */
#ifdef __cplusplus
#include <xbt/log.h>
#include <xbt/misc.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC_DATA int xbt_log_no_loc; /* Do not show the backtrace on failed backtrace when doing our tests */
XBT_PUBLIC void xbt_backtrace_display_current();
#endif
/** @} */
-SG_END_DECL()
+SG_END_DECL
#endif /* XBT_ASSERTS_H */
#include <xbt/dynar.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
typedef struct xbt_automaton_state {
char* id;
XBT_PUBLIC void xbt_automaton_propositional_symbol_free_voidp(void* ps);
XBT_PUBLIC void xbt_automaton_free(xbt_automaton_t a);
-SG_END_DECL()
+SG_END_DECL
#endif
#include <string>
#include <vector>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** @brief Shows a backtrace of the current location */
XBT_PUBLIC void xbt_backtrace_display_current();
-SG_END_DECL()
+SG_END_DECL
namespace simgrid {
namespace xbt {
/* C++ users need love */
#ifndef SG_BEGIN_DECL
# ifdef __cplusplus
-# define SG_BEGIN_DECL() extern "C" {
+# define SG_BEGIN_DECL extern "C" {
# else
-# define SG_BEGIN_DECL()
+# define SG_BEGIN_DECL
# endif
#endif
#ifndef SG_END_DECL
# ifdef __cplusplus
-# define SG_END_DECL() }
+# define SG_END_DECL }
# else
-# define SG_END_DECL()
+# define SG_END_DECL
# endif
#endif
/* End of cruft for C++ */
typedef void* xbt_cfg_t;
#endif
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/* Set the value of the cell @a name in @a cfg with the provided value.*/
XBT_PUBLIC void sg_cfg_set_int(const char* name, int val);
XBT_PUBLIC int sg_cfg_get_boolean(const char* name);
/** @} */
-SG_END_DECL()
+SG_END_DECL
#endif /* XBT_CONFIG_H */
#include <stdint.h> /* uintptr_t */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** @addtogroup XBT_dict
* @brief The dictionary data structure (comparable to hash tables)
/** @} */
-SG_END_DECL()
+SG_END_DECL
#endif /* XBT_DICT_H */
#include <xbt/base.h> /* SG_BEGIN_DECL */
#include <xbt/function_types.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** @addtogroup XBT_dynar
* @brief DynArr are dynamically sized vector which may contain any type of variables.
(_cursor)++)
#endif
/** @} */
-SG_END_DECL()
+SG_END_DECL
#endif /* XBT_DYNAR_H */
* exactly play nicely together.
*/
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** Helper function used to throw exceptions in C */
XBT_ATTRIB_NORETURN XBT_PUBLIC void _xbt_throw(char* message, int value, const char* file, int line, const char* func);
*/
#define DIE_IMPOSSIBLE xbt_die("The Impossible Did Happen (yet again)")
-SG_END_DECL()
+SG_END_DECL
/** @} */
#endif /* __XBT_EX_H__ */
#include <xbt/base.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
typedef void (*void_f_pvoid_t) (void *);
typedef void *(*pvoid_f_void_t) (void);
typedef int (*xbt_main_func_t) (int argc, char *argv[]);
-SG_END_DECL()
+SG_END_DECL
#endif /* XBT_FUNCTION_TYPE_H */
#include <xbt/dynar.h>
#include <xbt/misc.h> /* SG_BEGIN_DECL */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
- /** @addtogroup XBT_graph
- * @brief A graph data type with several interesting algorithms
- *
- * @{
- */
+/** @addtogroup XBT_graph
+ * @brief A graph data type with several interesting algorithms
+ *
+ * @{
+ */
typedef struct xbt_node *xbt_node_t;
typedef struct xbt_edge *xbt_edge_t;
XBT_PUBLIC xbt_node_t xbt_graph_edge_get_source(xbt_edge_t e);
XBT_PUBLIC xbt_node_t xbt_graph_edge_get_target(xbt_edge_t e);
-SG_END_DECL()
+SG_END_DECL
#endif /* XBT_GRAPH_H */
/** @} */
#include <stddef.h> /* NULL */
#include <stdio.h> /* FILE */
#include <xbt/misc.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/**@brief Log priorities
* @ingroup XBT_log
*
* Implementation of XBT_LOG_NEW_SUBCATEGORY, which must declare "extern parent" in addition to avoid an extra
* declaration of root when XBT_LOG_NEW_SUBCATEGORY is called by XBT_LOG_NEW_CATEGORY */
#define XBT_LOG_NEW_SUBCATEGORY_helper(catName, parent, desc) \
- SG_BEGIN_DECL() \
+ SG_BEGIN_DECL \
extern void _XBT_LOGV_CTOR(catName)(void) XBT_ATTRIB_CONSTRUCTOR(600); \
void _XBT_LOGV_CTOR(catName)(void) \
{ \
_xbt_log_cat_init(&_XBT_LOGV(catName), xbt_log_priority_uninitialized); \
} \
} \
- SG_END_DECL() \
+ SG_END_DECL \
XBT_EXPORT_NO_IMPORT s_xbt_log_category_t _XBT_LOGV(catName) = { \
&_XBT_LOGV(parent), \
NULL /* firstChild */, \
*/
#define XBT_HELP(...) XBT_CINFO(xbt_help, __VA_ARGS__)
-SG_END_DECL()
+SG_END_DECL
#endif /* ! _XBT_LOG_H_ */
#include <xbt/function_types.h>
#include <xbt/misc.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** @addtogroup XBT_mallocator
* @brief The mallocator system
XBT_PUBLIC void xbt_mallocator_initialization_is_done(int protect);
/** @} */
-SG_END_DECL()
+SG_END_DECL
#endif /* _XBT_MALLOCATOR_H */
#include <stdarg.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** Cache the size of a memory page for the current system. */
XBT_PUBLIC_DATA int xbt_pagesize;
XBT_PUBLIC char* bprintf(const char* fmt, ...) XBT_ATTRIB_PRINTF(1, 2);
/** @} */
-SG_END_DECL()
+SG_END_DECL
#endif /* XBT_MISC_H */
#include <xbt/misc.h> /* XBT_PUBLIC */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC void xbt_init(int* argc, char** argv);
-SG_END_DECL()
+SG_END_DECL
#endif /* XBT_MODULE_H */
#include <stdarg.h> /* va_* */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** @addtogroup XBT_str
* @brief String manipulation functions
}
/**@}*/
-SG_END_DECL()
+SG_END_DECL
#endif /* XBT_STR_H */
#include <xbt/function_types.h>
#include <xbt/misc.h> /* SG_BEGIN_DECL */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** @addtogroup XBT_synchro
* @brief XBT synchronization tools
/** @} */
-SG_END_DECL()
+SG_END_DECL
#endif /* _XBT_THREAD_H */
#include <stdlib.h>
#include <stdarg.h> /* va_list */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/* They live in asserts.h, but need to be declared before this module.
double declaration to cut dependency cycle */
/** @brief should be given a pointer to pointer, and frees the second one */
XBT_PUBLIC void xbt_free_ref(void* d) XBT_FREE_NOEXCEPT;
-SG_END_DECL()
+SG_END_DECL
#define xbt_new(type, count) ((type*)xbt_malloc (sizeof (type) * (count)))
/** @brief like calloc, but xbt_die() on error
#include <xbt/function_types.h>
#include <xbt/misc.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
XBT_PUBLIC const char* xbt_procname(void);
/** Contains all the parameters we got from the command line (including argv[0]) */
XBT_PUBLIC_DATA xbt_dynar_t xbt_cmdline;
-SG_END_DECL()
+SG_END_DECL
#endif /* XBT_VIRTU_H */
#include <xbt/misc.h> /* XBT_PUBLIC */
#include <stddef.h> /* size_t */
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** @brief get time in seconds
*
XBT_PUBLIC void xbt_os_threadtimer_resume(xbt_os_timer_t timer);
XBT_PUBLIC void xbt_os_threadtimer_stop(xbt_os_timer_t timer);
-SG_END_DECL()
+SG_END_DECL
#endif
#include "simgrid/msg.h"
#include <jni.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/* Shut up some errors in eclipse online compiler. I wish such a pimple wouldn't be needed */
#ifndef JNIEXPORT
JNIEXPORT void JNICALL Java_org_simgrid_msg_Comm_waitAll(JNIEnv *env, jclass cls, jobjectArray jcomms, jdouble timeout);
JNIEXPORT int JNICALL Java_org_simgrid_msg_Comm_waitAny(JNIEnv *env, jclass cls, jobjectArray jcomms);
-SG_END_DECL()
+SG_END_DECL
#endif
#include "simgrid/plugins/file_system.h"
#include <jni.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/* Shut up some errors in eclipse online compiler. I wish such a pimple wouldn't be needed */
#ifndef JNIEXPORT
JNIEXPORT void JNICALL Java_org_simgrid_msg_File_seek(JNIEnv *env, jobject jfile, jlong joffset, jlong jorigin);
JNIEXPORT void JNICALL Java_org_simgrid_msg_File_close(JNIEnv *env, jobject jfile);
-SG_END_DECL()
+SG_END_DECL
#endif
#include "simgrid/plugins/file_system.h"
#include <jni.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/* Shut up some errors in eclipse online compiler. I wish such a pimple wouldn't be needed */
#ifndef JNIEXPORT
JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getCurrentLoad(JNIEnv *env, jobject jhost);
JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getAvgLoad(JNIEnv *env, jobject jhost);
JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getComputedFlops (JNIEnv *env, jobject jhost);
-SG_END_DECL()
+SG_END_DECL
#endif
#include "simgrid/msg.h"
#include <jni.h>
-SG_BEGIN_DECL();
+SG_BEGIN_DECL;
/* Shut up some errors in eclipse online compiler. I wish such a pimple wouldn't be needed */
#ifndef JNIEXPORT
JNIEXPORT void JNICALL Java_org_simgrid_msg_Process_setKillTime(JNIEnv* env, jobject jprocess, jdouble jkilltime);
JNIEXPORT jint JNICALL Java_org_simgrid_msg_Process_getCount(JNIEnv * env, jclass cls);
-SG_END_DECL();
+SG_END_DECL;
#endif
#include "simgrid/msg.h"
#include <jni.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** Returns a new java instance of a storage. */
jobject jstorage_new_instance(JNIEnv * env);
JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Storage_getHost(JNIEnv * env,jobject jstorage);
JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_Storage_all(JNIEnv *env, jclass cls);
-SG_END_DECL()
+SG_END_DECL
#endif
#include "xbt/base.h"
#include <jni.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_nativeInit(JNIEnv *env, jclass cls);
JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_init(JNIEnv * env, jobject obj);
JNIEXPORT jboolean JNICALL Java_org_simgrid_msg_Semaphore_wouldBlock(JNIEnv * env, jobject obj);
JNIEXPORT void JNICALL Java_org_simgrid_msg_Semaphore_nativeFinalize(JNIEnv * env, jobject obj);
-SG_END_DECL()
+SG_END_DECL
#endif
#include <jni.h>
#include "simgrid/msg.h"
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/** Binds a native instance to a java instance. */
void jtask_bind(jobject jtask, msg_task_t task, JNIEnv * env);
JNIEXPORT jint JNICALL Java_org_simgrid_msg_Task_listenFromHost(JNIEnv* env, jclass cls, jstring jalias, jobject jhost);
JNIEXPORT jint JNICALL Java_org_simgrid_msg_Task_listenFrom(JNIEnv* env, jclass cls, jstring jalias);
-SG_END_DECL()
+SG_END_DECL
#endif
#include <jni.h>
#include "simgrid/msg.h"
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/* Shut up some errors in eclipse online compiler. I wish such a pimple wouldn't be needed */
#ifndef JNIEXPORT
JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_shutdown(JNIEnv* env, jobject jvm);
JNIEXPORT void JNICALL Java_org_simgrid_msg_VM_destroy(JNIEnv* env, jobject jvm);
-SG_END_DECL()
+SG_END_DECL
#endif
#include <ucontext.h>
#endif
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
struct s_stack_region{
void *address;
};
typedef struct s_stack_region s_stack_region_t;
-SG_END_DECL()
+SG_END_DECL
#endif
#define STD_HEAP_SIZE (sizeof(void*)<=4 ? (100*1024*1024) : (1ll*1024*1024*1024*1024))
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/********************************* Global *************************************/
XBT_ATTRIB_NORETURN XBT_PUBLIC void MC_run();
/********************************* Memory *************************************/
XBT_PUBLIC void MC_memory_init(); /* Initialize the memory subsystem */
-SG_END_DECL()
+SG_END_DECL
#endif
#include <xbt/base.h>
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
#ifdef COVERAGE
extern void __gcov_flush();
#define coverage_checkpoint() (void)0
#endif
-SG_END_DECL()
+SG_END_DECL
#endif
#include "xbt/dict.h"
#include "xbt/dynar.h"
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/* Datatype representing a separate heap. The whole point of the mmalloc module is to allow several such heaps in the
* process. It thus works by redefining all the classical memory management functions (malloc and friends) with an
xbt_mheap_t mmalloc_get_current_heap(void);
#endif
-SG_END_DECL()
+SG_END_DECL
#endif /* SIMGRID_MMALLOC_H */
#include "simgrid/forward.h"
#include "stdint.h"
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
// ***** Environment variables for passing context to the model-checked process
XBT_PRIVATE const char* MC_message_type_name(enum e_mc_message_type type);
-SG_END_DECL()
+SG_END_DECL
#endif
#include "xbt/dict.h"
#include "xbt/mallocator.h"
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
typedef struct s_xbt_dict {
void_f_pvoid_t free_f;
XBT_PRIVATE void xbt_dictelm_free(xbt_dict_t dict, xbt_dictelm_t element);
XBT_PRIVATE void xbt_dictelm_set_data(xbt_dict_t dict, xbt_dictelm_t element, void* data);
-SG_END_DECL()
+SG_END_DECL
#endif
#define ADDRESS(B) ((void*) (((ADDR2UINT(B)) - 1) * BLOCKSIZE + (char*) mdp -> heapbase))
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/* Doubly linked lists of free fragments. */
struct list {
XBT_PRIVATE size_t mmalloc_get_bytes_used_remote(size_t heaplimit, const malloc_info* heapinfo);
-SG_END_DECL()
+SG_END_DECL
#endif
#define XBT_MODINTER_H
#include "xbt/misc.h"
-SG_BEGIN_DECL()
+SG_BEGIN_DECL
/* Modules definitions */
extern int smx_cleaned;
extern int xbt_initialized;
-SG_END_DECL()
+SG_END_DECL
#endif