X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/953c0b61d637f5ade9219ab35bb7eaae2f39e5e0..1a0c56f51ac6e9369d23bacff6900e08a738a861:/include/xbt/misc.h diff --git a/include/xbt/misc.h b/include/xbt/misc.h index a3a9e7ffe6..ef4ae2e409 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -21,12 +21,14 @@ # define _XBT_GNUC_FORMAT( arg_idx ) \ __attribute__((__format_arg__ (arg_idx))) # define _XBT_GNUC_NORETURN __attribute__((__noreturn__)) +# define _XBT_GNUC_UNUSED __attribute__((unused)) #else /* !__GNUC__ */ # define _XBT_GNUC_PRINTF( format_idx, arg_idx ) # define _XBT_GNUC_SCANF( format_idx, arg_idx ) # define _XBT_GNUC_FORMAT( arg_idx ) # define _XBT_GNUC_NORETURN +# define _XBT_GNUC_UNUSED #endif /* !__GNUC__ */ @@ -76,25 +78,9 @@ /* End of cruft for C++ */ SG_BEGIN_DECL() -/* Dunno where to place this: needed by config and amok */ -typedef struct { - char *name; - int port; -} s_xbt_host_t, *xbt_host_t; const char *xbt_procname(void); - -/* Generic function type */ - - typedef void (void_f_ppvoid_t)(void**); - typedef void (void_f_pvoid_t) (void*); - typedef void (*void_f_void_t) (void); - - typedef int (int_f_pvoid_pvoid_t) (void*,void*); - - typedef int (*int_f_void_t) (void); /* FIXME: rename it to int_pf_void_t */ - #define XBT_BACKTRACE_SIZE 10 /* FIXME: better place? Do document */ SG_END_DECL()