Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename BEGIN_DECL since we changed the usual definition to a macro with arguments...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 8 Sep 2005 22:07:59 +0000 (22:07 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 8 Sep 2005 22:07:59 +0000 (22:07 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1712 48e7efb5-ca39-0410-a469-dd3cf9ba447f

16 files changed:
include/gras/datadesc.h
include/gras/emul.h
include/gras/messages.h
include/gras/process.h
include/gras/timer.h
include/gras/virtu.h
include/msg/datatypes.h
include/msg/msg.h
include/xbt/asserts.h
include/xbt/config.h
include/xbt/dict.h
include/xbt/dynar.h
include/xbt/fifo.h
include/xbt/misc.h
include/xbt/set.h
include/xbt/sysdep.h

index 3ac22b8..31a4e36 100644 (file)
 #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 */
 
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /** @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)
@@ -382,6 +382,6 @@ gras_datadesc_import_nws(const char           *name,
                         unsigned long         howmany);
 
 
                         unsigned long         howmany);
 
 
-END_DECL()
+SG_END_DECL()
 
 #endif /* GRAS_DATADESC_H */
 
 #endif /* GRAS_DATADESC_H */
index 4d8eb83..a183509 100644 (file)
@@ -11,9 +11,9 @@
 #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 */
 
 
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /** @addtogroup GRAS_emul
  *  @brief Code execution "emulation" and "virtualization".
 
 /** @addtogroup GRAS_emul
  *  @brief Code execution "emulation" and "virtualization".
@@ -167,7 +167,7 @@ int gras_bench_once_end(void);
 #define GRAS_BENCH_ONCE_RUN_ONCE_END()      } gras_bench_once_end()
 /** @} */
 
 #define GRAS_BENCH_ONCE_RUN_ONCE_END()      } gras_bench_once_end()
 /** @} */
 
-END_DECL()
+SG_END_DECL()
 
 #endif /* GRAS_COND_H */
 
 
 #endif /* GRAS_COND_H */
 
index 5a8d95a..d704834 100644 (file)
@@ -15,7 +15,7 @@
 #include "gras/transport.h"
 #include "gras/datadesc.h"
 
 #include "gras/transport.h"
 #include "gras/datadesc.h"
 
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /** @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) 
@@ -115,7 +115,7 @@ typedef struct s_gras_msgtype *gras_msgtype_t;
 
 /* @} */
 
 
 /* @} */
 
-END_DECL()
+SG_END_DECL()
 
 #endif /* GRAS_MSG_H */
 
 
 #endif /* GRAS_MSG_H */
 
index 30dd5a3..15dd07f 100644 (file)
@@ -10,9 +10,9 @@
 #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 */
 
 
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /* **************************************************************************
  * Initializing the processes
 
 /* **************************************************************************
  * Initializing the processes
@@ -65,7 +65,7 @@ void gras_userdata_set(void *ud);
 #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())
 /* @} */
 
-END_DECL()
+SG_END_DECL()
 
 #endif /* GRAS_PROCESS_H */
 
 
 #endif /* GRAS_PROCESS_H */
 
index 8c5e418..f12c599 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "xbt/misc.h"
 
 
 #include "xbt/misc.h"
 
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /** @addtogroup GRAS_timer
  *  @brief Delayed and repetitive tasks (Communication facility)
 
 /** @addtogroup GRAS_timer
  *  @brief Delayed and repetitive tasks (Communication facility)
@@ -52,6 +52,6 @@ BEGIN_DECL()
 
 /** @} */
 
 
 /** @} */
 
-END_DECL()
+SG_END_DECL()
 
 #endif /* GRAS_TIMER_H */
 
 #endif /* GRAS_TIMER_H */
index aab294e..2eb87e5 100644 (file)
@@ -10,9 +10,9 @@
 #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 */
 
 
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /** @addtogroup GRAS_virtu  
  *  @brief System call abstraction layer (Virtualization).
 
 /** @addtogroup GRAS_virtu  
  *  @brief System call abstraction layer (Virtualization).
@@ -47,7 +47,7 @@ gras_os_myname(void);
 int gras_os_getpid(void);
 
 /** @} */
 int gras_os_getpid(void);
 
 /** @} */
-END_DECL()
+SG_END_DECL()
 
 #endif /* GRAS_VIRTU_H */
 
 
 #endif /* GRAS_VIRTU_H */
 
index 8034f9f..116dbd1 100644 (file)
@@ -9,7 +9,7 @@
 #define MSG_DATATYPE_H
 #include "xbt/misc.h"
 
 #define MSG_DATATYPE_H
 #include "xbt/misc.h"
 
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /* ******************************** Host ************************************ */
 /** @defgroup m_datatypes_management_details */
 
 /* ******************************** Host ************************************ */
 /** @defgroup m_datatypes_management_details */
@@ -124,5 +124,5 @@ typedef enum {
 } MSG_error_t;
 /** @} */
 
 } MSG_error_t;
 /** @} */
 
-END_DECL()
+SG_END_DECL()
 #endif
 #endif
index 33f4ce0..8455264 100644 (file)
@@ -11,8 +11,9 @@
 #include "xbt/misc.h"
 #include "xbt/sysdep.h"
 
 #include "xbt/misc.h"
 #include "xbt/sysdep.h"
 
-BEGIN_DECL()
 #include "msg/datatypes.h"
 #include "msg/datatypes.h"
+SG_BEGIN_DECL()
+
 
 /************************** Global ******************************************/
 void MSG_config(const char *name, ...);
 
 /************************** Global ******************************************/
 void MSG_config(const char *name, ...);
@@ -111,5 +112,5 @@ double MSG_task_get_compute_duration(m_task_t task);
 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);
 
-END_DECL()
+SG_END_DECL()
 #endif
 #endif
index 9e1a7aa..ac75704 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "xbt/misc.h"
   
 
 #include "xbt/misc.h"
   
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /**
  * \addtogroup XBT_error
 
 /**
  * \addtogroup XBT_error
@@ -51,6 +51,6 @@ void xbt_die(const char *msg) _XBT_GNUC_NORETURN;
 
 /** @} */     
   
 
 /** @} */     
   
-END_DECL()
+SG_END_DECL()
 
 #endif /* _XBT_ASSERTS_H */
 
 #endif /* _XBT_ASSERTS_H */
index fa317a4..dfd08b2 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "xbt/dynar.h"
 
 
 #include "xbt/dynar.h"
 
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /** @addtogroup XBT_config
  * 
 
 /** @addtogroup XBT_config
  * 
@@ -197,6 +197,6 @@ void xbt_cfg_empty(xbt_cfg_t cfg, const char *name);
 
 /** @} */
 /** @} */
 
 /** @} */
 /** @} */
-END_DECL()
+SG_END_DECL()
   
 #endif /* _XBT_CONFIG_H_ */
   
 #endif /* _XBT_CONFIG_H_ */
index 395f53e..3c0f80e 100644 (file)
 #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 */
 
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /** @addtogroup XBT_dict
  * 
 
 /** @addtogroup XBT_dict
  * 
@@ -168,6 +168,6 @@ void xbt_multidict_remove_ext(xbt_dict_t mdict, xbt_dynar_t keys, xbt_dynar_t le
 /** @} */
 /** @} */
 
 /** @} */
 /** @} */
 
-END_DECL()
+SG_END_DECL()
 
 #endif /* _XBT_DICT_H */
 
 #endif /* _XBT_DICT_H */
index d9f599b..90c5fe4 100644 (file)
@@ -10,9 +10,9 @@
 #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 */
 
 
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /** \addtogroup XBT_dynar
   *  
 
 /** \addtogroup XBT_dynar
   *  
@@ -176,7 +176,7 @@ xbt_dynar_foreach (dyn,cpt,str) {
             xbt_dynar_cursor_step(_dynar,&(_cursor))         )
 
 
             xbt_dynar_cursor_step(_dynar,&(_cursor))         )
 
 
-END_DECL()
+SG_END_DECL()
 
 /* @} */
 #endif /* _XBT_DYNAR_H */
 
 /* @} */
 #endif /* _XBT_DYNAR_H */
index 01dfbff..004db05 100644 (file)
@@ -7,9 +7,9 @@
 
 #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 */
 
 
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /** \addtogroup XBT_fifo
  *  @{ */
 
 /** \addtogroup XBT_fifo
  *  @{ */
@@ -100,7 +100,7 @@ xbt_fifo_item_t xbt_fifo_getNextItem(xbt_fifo_item_t i);
 xbt_fifo_item_t xbt_fifo_getPrevItem(xbt_fifo_item_t i);
 /** @} */
 
 xbt_fifo_item_t xbt_fifo_getPrevItem(xbt_fifo_item_t i);
 /** @} */
 
-END_DECL()
+SG_END_DECL()
 
 /** @} */
 #endif                         /* _XBT_FIFO_H */
 
 /** @} */
 #endif                         /* _XBT_FIFO_H */
index 0a97552..2842868 100644 (file)
 
 #define XBT_MAX_CHANNEL 10 /* FIXME: killme */
 /*! C++ users need love */
 
 #define XBT_MAX_CHANNEL 10 /* FIXME: killme */
 /*! C++ users need love */
-#ifndef BEGIN_DECL
+#ifndef SG_BEGIN_DECL
 # ifdef __cplusplus
 # ifdef __cplusplus
-#  define BEGIN_DECL() extern "C" {
+#  define SG_BEGIN_DECL() extern "C" {
 # else
 # else
-#  define BEGIN_DECL() 
+#  define SG_BEGIN_DECL() 
 # endif
 #endif
 
 /*! C++ users need love */
 # endif
 #endif
 
 /*! C++ users need love */
-#ifndef END_DECL
+#ifndef SG_END_DECL
 # ifdef __cplusplus
 # ifdef __cplusplus
-#  define END_DECL() }
+#  define SG_END_DECL() }
 # else
 # else
-#  define END_DECL() 
+#  define SG_END_DECL() 
 # endif
 #endif
 /* End of cruft for C++ */
 
 # endif
 #endif
 /* End of cruft for C++ */
 
-BEGIN_DECL()
+SG_BEGIN_DECL()
 /* 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;
@@ -84,6 +84,6 @@ typedef struct {
 
 const char *xbt_procname(void);
 
 
 const char *xbt_procname(void);
 
-END_DECL()
+SG_END_DECL()
 
 #endif /* XBT_MISC_H */
 
 #endif /* XBT_MISC_H */
index 726efad..47a4cc4 100644 (file)
@@ -10,9 +10,9 @@
 #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 */
 
 
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /** @addtogroup XBT_set
  * 
 
 /** @addtogroup XBT_set
  * 
@@ -91,6 +91,6 @@ int          xbt_set_cursor_get_or_free (xbt_set_cursor_t *cursor,
 
 /* @} */
 /* @} */
 
 /* @} */
 /* @} */
-END_DECL()
+SG_END_DECL()
 
 #endif /* _XBT_SET_H */
 
 #endif /* _XBT_SET_H */
index e6bec9d..2c7c194 100644 (file)
@@ -19,7 +19,7 @@
 #include "xbt/misc.h"
 #include "xbt/asserts.h"
   
 #include "xbt/misc.h"
 #include "xbt/asserts.h"
   
-BEGIN_DECL()
+SG_BEGIN_DECL()
 
 /** @addtogroup XBT_syscall
  *  @{
 
 /** @addtogroup XBT_syscall
  *  @{
@@ -98,6 +98,6 @@ static inline void *xbt_realloc(void*p,int s){
 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);
   
-END_DECL()
+SG_END_DECL()
 
 #endif /* _XBT_SYSDEP_H */
 
 #endif /* _XBT_SYSDEP_H */