X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/41a0af5d6003337f4ca3b3aed6f5757293bddab5..504b4d20dd2db9ea1eaa9c4b390b2a412d7c9779:/include/surf/surfxml_parse.h diff --git a/include/surf/surfxml_parse.h b/include/surf/surfxml_parse.h index 4ea23b9b6c..0d69e6ae1c 100644 --- a/include/surf/surfxml_parse.h +++ b/include/surf/surfxml_parse.h @@ -8,47 +8,54 @@ #ifndef _SURF_SURFXML_PARSE_H #define _SURF_SURFXML_PARSE_H +#include /* to have FILE */ #include "surf/surfxml.h" -#include "xbt/sysdep.h" /* to have FILE */ #include "xbt/function_types.h" +#include "xbt/dict.h" + /* Entry-point of the surfxml parser. */ -extern int_f_void_t *surf_parse; +XBT_PUBLIC_DATA(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; - -void surf_parse_open(const char *file); -void surf_parse_close(void); -void surf_parse_reset_parser(void); -void surf_parse_get_double(double *value,const char *string); +/* +XBT_PUBLIC_DATA(void_f_void_t) STag_surfxml_platform_description_fun; +XBT_PUBLIC_DATA(void_f_void_t) ETag_surfxml_platform_description_fun; +XBT_PUBLIC_DATA(void_f_void_t) STag_surfxml_cpu_fun; +XBT_PUBLIC_DATA(void_f_void_t) ETag_surfxml_cpu_fun; +XBT_PUBLIC_DATA(void_f_void_t) STag_surfxml_router_fun; +XBT_PUBLIC_DATA(void_f_void_t) ETag_surfxml_router_fun; +XBT_PUBLIC_DATA(void_f_void_t) STag_surfxml_network_link_fun; +XBT_PUBLIC_DATA(void_f_void_t) ETag_surfxml_network_link_fun; +XBT_PUBLIC_DATA(void_f_void_t) STag_surfxml_route_fun; +XBT_PUBLIC_DATA(void_f_void_t) ETag_surfxml_route_fun; +XBT_PUBLIC_DATA(void_f_void_t) STag_surfxml_route_element_fun; +XBT_PUBLIC_DATA(void_f_void_t) ETag_surfxml_route_element_fun; +XBT_PUBLIC_DATA(void_f_void_t) STag_surfxml_process_fun; +XBT_PUBLIC_DATA(void_f_void_t) ETag_surfxml_process_fun; +XBT_PUBLIC_DATA(void_f_void_t) STag_surfxml_argument_fun; +XBT_PUBLIC_DATA(void_f_void_t) ETag_surfxml_argument_fun; +XBT_PUBLIC_DATA(void_f_void_t) STag_surfxml_prop_fun; +XBT_PUBLIC_DATA(void_f_void_t) ETag_surfxml_prop_fun; +*/ + +XBT_PUBLIC(void) surf_parse_open(const char *file); +XBT_PUBLIC(void) surf_parse_close(void); +XBT_PUBLIC(void) surf_parse_reset_parser(void); +XBT_PUBLIC(void) surf_parse_get_double(double *value,const char *string); /* Prototypes of the functions offered by flex */ -int surf_parse_lex(void); -int surf_parse_get_lineno(void); -FILE *surf_parse_get_in(void); -FILE *surf_parse_get_out(void); -int surf_parse_get_leng(void); -char *surf_parse_get_text(void); -void surf_parse_set_lineno(int line_number); -void surf_parse_set_in(FILE * in_str); -void surf_parse_set_out(FILE * out_str); -int surf_parse_get_debug(void); -void surf_parse_set_debug(int bdebug); -int surf_parse_lex_destroy(void); +XBT_PUBLIC(int) surf_parse_lex(void); +XBT_PUBLIC(int) surf_parse_get_lineno(void); +XBT_PUBLIC(FILE*) surf_parse_get_in(void); +XBT_PUBLIC(FILE*) surf_parse_get_out(void); +XBT_PUBLIC(int) surf_parse_get_leng(void); +XBT_PUBLIC(char*) surf_parse_get_text(void); +XBT_PUBLIC(void) surf_parse_set_lineno(int line_number); +XBT_PUBLIC(void) surf_parse_set_in(FILE * in_str); +XBT_PUBLIC(void) surf_parse_set_out(FILE * out_str); +XBT_PUBLIC(int) surf_parse_get_debug(void); +XBT_PUBLIC(void) surf_parse_set_debug(int bdebug); +XBT_PUBLIC(int) surf_parse_lex_destroy(void); #endif