From 36eaa45fc14692a0e3438b4fe100856adb38c7c0 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Fri, 30 Nov 2012 17:30:56 +0100 Subject: [PATCH] Remove prototypes. These inline functions are only used in smx_user. Forward declarations are useless. --- src/simix/smx_smurf_private.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/simix/smx_smurf_private.h b/src/simix/smx_smurf_private.h index ac677cddec..ff62452969 100644 --- a/src/simix/smx_smurf_private.h +++ b/src/simix/smx_smurf_private.h @@ -170,12 +170,6 @@ SIMCALL_FUNC_RETURN(res)\ } -/* generate the simcalls prototypes functions */ -#define VOID_IF_EMPTY(...) GET_CLEAN(,##__VA_ARGS__,,,,,,,,,,,void) -#define SIMCALL_FUNC_PROTO(type, name, answer, res, ...)\ - inline static SIMCALL_FUNC_RETURN_TYPE(res) simcall_BODY_##name(VOID_IF_EMPTY(__VA_ARGS__) MAP(SIMCALL_ARG, ##__VA_ARGS__)); - - /* generate a comma if there is an argument*/ #define WITHOUT_COMMA #define WITH_COMMA , @@ -395,12 +389,6 @@ NUM_SIMCALLS typedef int (*simix_match_func_t)(void *, void *, smx_action_t); typedef void (*simix_clean_func_t)(void *); -/** - * \brief Prototypes of SIMIX - */ -SIMCALL_LIST(SIMCALL_FUNC_PROTO, SIMCALL_SEP_NOTHING) - - /* Pack all possible scalar types in an union */ union u_smx_scalar { char c; -- 2.20.1