git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1712
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
16 files changed:
#ifndef GRAS_DATADESC_H
#define GRAS_DATADESC_H
#ifndef GRAS_DATADESC_H
#define GRAS_DATADESC_H
-#include "xbt/misc.h" /* BEGIN_DECL */
+#include "xbt/misc.h" /* SG_BEGIN_DECL */
#include "xbt/dynar.h" /* void_f_pvoid_t */
#include "xbt/dynar.h" /* void_f_pvoid_t */
/** @addtogroup GRAS_dd Data description
* @brief Describing data to be exchanged (Communication facility)
/** @addtogroup GRAS_dd Data description
* @brief Describing data to be exchanged (Communication facility)
#endif /* GRAS_DATADESC_H */
#endif /* GRAS_DATADESC_H */
#ifndef GRAS_COND_H
#define GRAS_COND_H
#ifndef GRAS_COND_H
#define GRAS_COND_H
-#include "xbt/misc.h" /* BEGIN_DECL */
+#include "xbt/misc.h" /* SG_BEGIN_DECL */
/** @addtogroup GRAS_emul
* @brief Code execution "emulation" and "virtualization".
/** @addtogroup GRAS_emul
* @brief Code execution "emulation" and "virtualization".
#define GRAS_BENCH_ONCE_RUN_ONCE_END() } gras_bench_once_end()
/** @} */
#define GRAS_BENCH_ONCE_RUN_ONCE_END() } gras_bench_once_end()
/** @} */
#include "gras/transport.h"
#include "gras/datadesc.h"
#include "gras/transport.h"
#include "gras/datadesc.h"
/** @addtogroup GRAS_msg
* @brief Defining messages and callbacks, and exchanging messages (Communication facility)
/** @addtogroup GRAS_msg
* @brief Defining messages and callbacks, and exchanging messages (Communication facility)
#ifndef GRAS_PROCESS_H
#define GRAS_PROCESS_H
#ifndef GRAS_PROCESS_H
#define GRAS_PROCESS_H
-#include "xbt/misc.h" /* BEGIN_DECL */
+#include "xbt/misc.h" /* SG_BEGIN_DECL */
/* **************************************************************************
* Initializing the processes
/* **************************************************************************
* Initializing the processes
#define gras_userdata_new(type) (gras_userdata_set(xbt_new0(type,1)),gras_userdata_get())
/* @} */
#define gras_userdata_new(type) (gras_userdata_set(xbt_new0(type,1)),gras_userdata_get())
/* @} */
#endif /* GRAS_PROCESS_H */
#endif /* GRAS_PROCESS_H */
/** @addtogroup GRAS_timer
* @brief Delayed and repetitive tasks (Communication facility)
/** @addtogroup GRAS_timer
* @brief Delayed and repetitive tasks (Communication facility)
#endif /* GRAS_TIMER_H */
#endif /* GRAS_TIMER_H */
#ifndef GRAS_VIRTU_H
#define GRAS_VIRTU_H
#ifndef GRAS_VIRTU_H
#define GRAS_VIRTU_H
-#include "xbt/misc.h" /* BEGIN_DECL */
+#include "xbt/misc.h" /* SG_BEGIN_DECL */
/** @addtogroup GRAS_virtu
* @brief System call abstraction layer (Virtualization).
/** @addtogroup GRAS_virtu
* @brief System call abstraction layer (Virtualization).
int gras_os_getpid(void);
/** @} */
int gras_os_getpid(void);
/** @} */
#endif /* GRAS_VIRTU_H */
#endif /* GRAS_VIRTU_H */
#define MSG_DATATYPE_H
#include "xbt/misc.h"
#define MSG_DATATYPE_H
#include "xbt/misc.h"
/* ******************************** Host ************************************ */
/** @defgroup m_datatypes_management_details */
/* ******************************** Host ************************************ */
/** @defgroup m_datatypes_management_details */
#include "xbt/misc.h"
#include "xbt/sysdep.h"
#include "xbt/misc.h"
#include "xbt/sysdep.h"
#include "msg/datatypes.h"
#include "msg/datatypes.h"
/************************** Global ******************************************/
void MSG_config(const char *name, ...);
/************************** Global ******************************************/
void MSG_config(const char *name, ...);
double MSG_task_get_remaining_computation(m_task_t task);
double MSG_task_get_data_size(m_task_t task);
double MSG_task_get_remaining_computation(m_task_t task);
double MSG_task_get_data_size(m_task_t task);
/**
* \addtogroup XBT_error
/**
* \addtogroup XBT_error
#endif /* _XBT_ASSERTS_H */
#endif /* _XBT_ASSERTS_H */
/** @addtogroup XBT_config
*
/** @addtogroup XBT_config
*
#endif /* _XBT_CONFIG_H_ */
#endif /* _XBT_CONFIG_H_ */
#ifndef _XBT_DICT_H
#define _XBT_DICT_H
#ifndef _XBT_DICT_H
#define _XBT_DICT_H
-#include "xbt/misc.h" /* BEGIN_DECL */
+#include "xbt/misc.h" /* SG_BEGIN_DECL */
#include "xbt/dynar.h" /* void_f_pvoid_t */
#include "xbt/dynar.h" /* void_f_pvoid_t */
/** @addtogroup XBT_dict
*
/** @addtogroup XBT_dict
*
#ifndef _XBT_DYNAR_H
#define _XBT_DYNAR_H
#ifndef _XBT_DYNAR_H
#define _XBT_DYNAR_H
-#include "xbt/misc.h" /* BEGIN_DECL */
+#include "xbt/misc.h" /* SG_BEGIN_DECL */
/** \addtogroup XBT_dynar
*
/** \addtogroup XBT_dynar
*
xbt_dynar_cursor_step(_dynar,&(_cursor)) )
xbt_dynar_cursor_step(_dynar,&(_cursor)) )
/* @} */
#endif /* _XBT_DYNAR_H */
/* @} */
#endif /* _XBT_DYNAR_H */
#ifndef _XBT_FIFO_H
#define _XBT_FIFO_H
#ifndef _XBT_FIFO_H
#define _XBT_FIFO_H
-#include "xbt/misc.h" /* BEGIN_DECL */
+#include "xbt/misc.h" /* SG_BEGIN_DECL */
/** \addtogroup XBT_fifo
* @{ */
/** \addtogroup XBT_fifo
* @{ */
xbt_fifo_item_t xbt_fifo_getPrevItem(xbt_fifo_item_t i);
/** @} */
xbt_fifo_item_t xbt_fifo_getPrevItem(xbt_fifo_item_t i);
/** @} */
/** @} */
#endif /* _XBT_FIFO_H */
/** @} */
#endif /* _XBT_FIFO_H */
#define XBT_MAX_CHANNEL 10 /* FIXME: killme */
/*! C++ users need love */
#define XBT_MAX_CHANNEL 10 /* FIXME: killme */
/*! C++ users need love */
-# define BEGIN_DECL() extern "C" {
+# define SG_BEGIN_DECL() extern "C" {
+# define SG_BEGIN_DECL()
# endif
#endif
/*! C++ users need love */
# endif
#endif
/*! C++ users need love */
+# define SG_END_DECL() }
# endif
#endif
/* End of cruft for C++ */
# endif
#endif
/* End of cruft for C++ */
/* Dunno where to place this: needed by config and amok */
typedef struct {
char *name;
/* Dunno where to place this: needed by config and amok */
typedef struct {
char *name;
const char *xbt_procname(void);
const char *xbt_procname(void);
#ifndef _XBT_SET_H
#define _XBT_SET_H
#ifndef _XBT_SET_H
#define _XBT_SET_H
-#include "xbt/misc.h" /* BEGIN_DECL */
+#include "xbt/misc.h" /* SG_BEGIN_DECL */
/** @addtogroup XBT_set
*
/** @addtogroup XBT_set
*
#include "xbt/misc.h"
#include "xbt/asserts.h"
#include "xbt/misc.h"
#include "xbt/asserts.h"
/** @addtogroup XBT_syscall
* @{
/** @addtogroup XBT_syscall
* @{
int vasprintf (char **ptr, const char *fmt, va_list ap);
char *bprintf(const char*fmt, ...) _XBT_GNUC_PRINTF(1,2);
int vasprintf (char **ptr, const char *fmt, va_list ap);
char *bprintf(const char*fmt, ...) _XBT_GNUC_PRINTF(1,2);
#endif /* _XBT_SYSDEP_H */
#endif /* _XBT_SYSDEP_H */