Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cleanup
[simgrid.git] / include / gras / core.h
index fc73b73..3330561 100644 (file)
 #include <stddef.h>    /* offsetof() */
 #include <sys/types.h>  /* size_t */
 #include <stdarg.h>
-
-
-/*! C++ users need love */
-#ifndef BEGIN_DECL
-# ifdef __cplusplus
-#  define BEGIN_DECL extern "C" {
-# else
-#  define BEGIN_DECL 
-# endif
-#endif
-
-/*! C++ users need love */
-#ifndef END_DECL
-# ifdef __cplusplus
-#  define END_DECL }
-# else
-#  define END_DECL 
-# endif
-#endif
-/* End of cruft for C++ */
-
-BEGIN_DECL
+#include "xbt/misc.h"
+
+
+/* /\*! C++ users need love *\/ */
+/* #ifndef BEGIN_DECL */
+/* # ifdef __cplusplus */
+/* #  define BEGIN_DECL() extern "C" { */
+/* # else */
+/* #  define BEGIN_DECL()  */
+/* # endif */
+/* #endif */
+
+/* /\*! C++ users need love *\/ */
+/* #ifndef END_DECL */
+/* # ifdef __cplusplus */
+/* #  define END_DECL() } */
+/* # else */
+/* #  define END_DECL()  */
+/* # endif */
+/* #endif */
+/* /\* End of cruft for C++ *\/ */
+
+BEGIN_DECL()
 
 /* **************************************************************************
  * Garbage collection support
  * **************************************************************************/
 typedef enum { free_after_use, free_never } e_xbt_free_directive_t;
 
-
-/* **************************************************************************
- * Wrappers over OS functions
- * **************************************************************************/
-
-/**
- * gras_get_my_fqdn:
- *
- * Returns the fully-qualified name of the host machine, or NULL if the name
- * cannot be determined.  Always returns the same value, so multiple calls
- * cause no problems.
- */
-const char *
-gras_get_my_fqdn(void);
-
 void gras_init(int *argc,char **argv, const char *defaultlog);
 void gras_exit(void);
 
-END_DECL
+END_DECL()
 
 #endif /* GRAS_CORE_H */