Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add explicit keyword to one-parameter constructors.
[simgrid.git] / include / xbt / function_types.h
1 /* function_type.h - classical types for pointer to function                */
2
3 /* Copyright (c) 2006-2017. The SimGrid Team. All rights reserved.          */
4
5 /* This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. */
7
8 #ifndef XBT_FUNCTION_TYPE_H
9 #define XBT_FUNCTION_TYPE_H
10
11 #include "xbt/base.h"
12
13 SG_BEGIN_DECL()
14
15 typedef void (*void_f_pvoid_t) (void *);
16 typedef void *(*pvoid_f_void_t) (void);
17 typedef void *(*pvoid_f_pvoid_t) (void *);
18 typedef void (*void_f_void_t) (void);
19
20 typedef int (*int_f_pvoid_pvoid_t) (void *, void *);
21 typedef int (*int_f_cpvoid_cpvoid_t) (const void *, const void *);
22
23 typedef int (*xbt_main_func_t) (int argc, char *argv[]);
24
25 SG_END_DECL()
26 #endif                          /* XBT_FUNCTION_TYPE_H */