Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Gcc is *very* permissive with pointers to functions. If we declare them as function...
[simgrid.git] / include / xbt / function_types.h
index c12ca70..a5044bd 100644 (file)
 
 SG_BEGIN_DECL()
 
-   typedef void  (void_f_ppvoid_t)(void**);
-   typedef void  (void_f_pvoid_t) (void*);
-   typedef void* (pvoid_f_void_t)(void);
-   typedef void* (pvoid_f_pvoid_t)(void*);
-   typedef void  (void_f_void_t) (void);
+   typedef void  (*void_f_ppvoid_t)(void**);
+   typedef void  (*void_f_pvoid_t) (void*);
+   typedef void* (*pvoid_f_void_t)(void);
+   typedef void* (*pvoid_f_pvoid_t)(void*);
+   typedef void  (*void_f_void_t) (void);
 
-   typedef int   (int_f_void_t)   (void);
+   typedef int   (*int_f_void_t)   (void);
 
-   typedef int  (int_f_pvoid_pvoid_t) (void*,void*);
+   typedef int  (*int_f_pvoid_pvoid_t) (void*,void*);
 
    typedef int  (*xbt_main_func_t)(int argc, char *argv[]);
 
-   typedef void* (*pvoid_pf_void_t)(void);
-   typedef void (*void_fp_pvoid_t)(void*);
 SG_END_DECL()
 
 #endif /* XBT_FUNCTION_TYPE_H */