#include "xbt/sysdep.h" /* to have FILE */
#include "xbt/function_types.h"
/* Entry-point of the surfxml parser. */
-extern int_f_void_t surf_parse;
+extern int_f_void_t *surf_parse;
/* Hook for the different tags. They can be redefined at will whereas
the versions without the _fun can't. */
-extern void_f_void_t STag_surfxml_platform_description_fun;
-extern void_f_void_t ETag_surfxml_platform_description_fun;
-extern void_f_void_t STag_surfxml_cpu_fun;
-extern void_f_void_t ETag_surfxml_cpu_fun;
-extern void_f_void_t STag_surfxml_network_link_fun;
-extern void_f_void_t ETag_surfxml_network_link_fun;
-extern void_f_void_t STag_surfxml_route_fun;
-extern void_f_void_t ETag_surfxml_route_fun;
-extern void_f_void_t STag_surfxml_route_element_fun;
-extern void_f_void_t ETag_surfxml_route_element_fun;
-extern void_f_void_t STag_surfxml_process_fun;
-extern void_f_void_t ETag_surfxml_process_fun;
-extern void_f_void_t STag_surfxml_argument_fun;
-extern void_f_void_t ETag_surfxml_argument_fun;
+extern void_f_void_t *STag_surfxml_platform_description_fun;
+extern void_f_void_t *ETag_surfxml_platform_description_fun;
+extern void_f_void_t *STag_surfxml_cpu_fun;
+extern void_f_void_t *ETag_surfxml_cpu_fun;
+extern void_f_void_t *STag_surfxml_network_link_fun;
+extern void_f_void_t *ETag_surfxml_network_link_fun;
+extern void_f_void_t *STag_surfxml_route_fun;
+extern void_f_void_t *ETag_surfxml_route_fun;
+extern void_f_void_t *STag_surfxml_route_element_fun;
+extern void_f_void_t *ETag_surfxml_route_element_fun;
+extern void_f_void_t *STag_surfxml_process_fun;
+extern void_f_void_t *ETag_surfxml_process_fun;
+extern void_f_void_t *STag_surfxml_argument_fun;
+extern void_f_void_t *ETag_surfxml_argument_fun;
void surf_parse_open(const char *file);
void surf_parse_close(void);
SG_BEGIN_DECL()
- typedef void (void_f_ppvoid_t)(void**);
- typedef void (void_f_pvoid_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 void (void_f_void_t) (void);
+
+ typedef int (int_f_void_t) (void);
typedef int (int_f_pvoid_pvoid_t) (void*,void*);
-
- typedef void (*void_pf_void_t) (void);
- typedef int (*int_pf_void_t) (void);
SG_END_DECL()
#include "xbt/graphxml.h"
/* Entry-point of the graphxml parser. */
-extern int_pf_void_t xbt_graph_parse;
+extern int_f_void_t *xbt_graph_parse;
/* Hook for the different tags. They can be redefined at will whereas
the versions without the _fun can't. */
-extern void_pf_void_t STag_graphxml_graph_fun;
-extern void_pf_void_t ETag_graphxml_graph_fun;
-extern void_pf_void_t STag_graphxml_node_fun;
-extern void_pf_void_t ETag_graphxml_node_fun;
-extern void_pf_void_t STag_graphxml_edge_fun;
-extern void_pf_void_t ETag_graphxml_edge_fun;
+extern void_f_void_t *STag_graphxml_graph_fun;
+extern void_f_void_t *ETag_graphxml_graph_fun;
+extern void_f_void_t *STag_graphxml_node_fun;
+extern void_f_void_t *ETag_graphxml_node_fun;
+extern void_f_void_t *STag_graphxml_edge_fun;
+extern void_f_void_t *ETag_graphxml_edge_fun;
void xbt_graph_parse_open(const char *file);
void xbt_graph_parse_close(void);
typedef struct {
double expiry;
double period;
- void_f_void_t action;
+ void_f_void_t *action;
int repeat;
} s_gras_timer_t, *gras_timer_t;
DEBUG2("Action %p expires in %f", timer->action, untilthis);
if (untilthis <= 0.0) {
- void_f_void_t action = timer->action;
+ void_f_void_t *action = timer->action;
DEBUG5("[%.0f] Serve %s action %p (%f<%f)",gras_os_time(),
timer->repeat ? "repetitive" : "delayed", timer->action,
return;
}
-void_f_void_t STag_surfxml_platform_description_fun = nil_function;
-void_f_void_t ETag_surfxml_platform_description_fun = nil_function;
-void_f_void_t STag_surfxml_cpu_fun = nil_function;
-void_f_void_t ETag_surfxml_cpu_fun = nil_function;
-void_f_void_t STag_surfxml_network_link_fun = nil_function;
-void_f_void_t ETag_surfxml_network_link_fun = nil_function;
-void_f_void_t STag_surfxml_route_fun = nil_function;
-void_f_void_t ETag_surfxml_route_fun = nil_function;
-void_f_void_t STag_surfxml_route_element_fun = nil_function;
-void_f_void_t ETag_surfxml_route_element_fun = nil_function;
-void_f_void_t STag_surfxml_process_fun = nil_function;
-void_f_void_t ETag_surfxml_process_fun = nil_function;
-void_f_void_t STag_surfxml_argument_fun = nil_function;
-void_f_void_t ETag_surfxml_argument_fun = nil_function;
+void_f_void_t *STag_surfxml_platform_description_fun = nil_function;
+void_f_void_t *ETag_surfxml_platform_description_fun = nil_function;
+void_f_void_t *STag_surfxml_cpu_fun = nil_function;
+void_f_void_t *ETag_surfxml_cpu_fun = nil_function;
+void_f_void_t *STag_surfxml_network_link_fun = nil_function;
+void_f_void_t *ETag_surfxml_network_link_fun = nil_function;
+void_f_void_t *STag_surfxml_route_fun = nil_function;
+void_f_void_t *ETag_surfxml_route_fun = nil_function;
+void_f_void_t *STag_surfxml_route_element_fun = nil_function;
+void_f_void_t *ETag_surfxml_route_element_fun = nil_function;
+void_f_void_t *STag_surfxml_process_fun = nil_function;
+void_f_void_t *ETag_surfxml_process_fun = nil_function;
+void_f_void_t *STag_surfxml_argument_fun = nil_function;
+void_f_void_t *ETag_surfxml_argument_fun = nil_function;
YY_BUFFER_STATE surf_input_buffer;
FILE *surf_file_to_parse;
return surf_parse_lex();
}
-int_f_void_t surf_parse = _surf_parse;
+int_f_void_t *surf_parse = _surf_parse;
void surf_parse_get_double(double *value,const char *string)
{
return;
}
-void_pf_void_t STag_graphxml_graph_fun = nil_function;
-void_pf_void_t ETag_graphxml_graph_fun = nil_function;
-void_pf_void_t STag_graphxml_node_fun = nil_function;
-void_pf_void_t ETag_graphxml_node_fun = nil_function;
-void_pf_void_t STag_graphxml_edge_fun = nil_function;
-void_pf_void_t ETag_graphxml_edge_fun = nil_function;
+void_f_void_t *STag_graphxml_graph_fun = nil_function;
+void_f_void_t *ETag_graphxml_graph_fun = nil_function;
+void_f_void_t *STag_graphxml_node_fun = nil_function;
+void_f_void_t *ETag_graphxml_node_fun = nil_function;
+void_f_void_t *STag_graphxml_edge_fun = nil_function;
+void_f_void_t *ETag_graphxml_edge_fun = nil_function;
YY_BUFFER_STATE xbt_graph_input_buffer;
FILE *xbt_graph_file_to_parse;
return xbt_graph_parse_lex();
}
-int_pf_void_t xbt_graph_parse = _xbt_graph_parse;
+int_f_void_t *xbt_graph_parse = _xbt_graph_parse;
void xbt_graph_parse_get_double(double *value,const char *string)
{