Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove prototypes.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 30 Nov 2012 16:30:56 +0000 (17:30 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 3 Dec 2012 10:22:23 +0000 (11:22 +0100)
These inline functions are only used in smx_user.  Forward declarations are useless.

src/simix/smx_smurf_private.h

index ac677cd..ff62452 100644 (file)
       SIMCALL_FUNC_RETURN(res)\
     }
 
       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 ,
 /* 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 *);
 
 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;
 /* Pack all possible scalar types in an union */
 union u_smx_scalar {
   char            c;