Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make last version of flex (2.5.33-2) happy.
[simgrid.git] / include / surf / surfxml_parse.h
1 /*      $Id$     */
2
3 /* Copyright (c) 2005 Arnaud Legrand. 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 _SURF_SURFXML_PARSE_H
9 #define _SURF_SURFXML_PARSE_H
10
11 #include "surf/surfxml.h"
12 #include "xbt/misc.h"
13
14 /* Entry-point of the surfxml parser. */
15 extern int_f_void_t surf_parse;
16
17 /* Hook for the different tags. They can be redefined at will whereas
18    the versions without the _fun can't. */
19
20 extern void_f_void_t STag_surfxml_platform_description_fun;
21 extern void_f_void_t ETag_surfxml_platform_description_fun;
22 extern void_f_void_t STag_surfxml_cpu_fun;
23 extern void_f_void_t ETag_surfxml_cpu_fun;
24 extern void_f_void_t STag_surfxml_network_link_fun;
25 extern void_f_void_t ETag_surfxml_network_link_fun;
26 extern void_f_void_t STag_surfxml_route_fun;
27 extern void_f_void_t ETag_surfxml_route_fun;
28 extern void_f_void_t STag_surfxml_route_element_fun;
29 extern void_f_void_t ETag_surfxml_route_element_fun;
30 extern void_f_void_t STag_surfxml_process_fun;
31 extern void_f_void_t ETag_surfxml_process_fun;
32 extern void_f_void_t STag_surfxml_argument_fun;
33 extern void_f_void_t ETag_surfxml_argument_fun;
34
35 void surf_parse_open(const char *file);
36 void surf_parse_close(void);
37 void surf_parse_reset_parser(void);
38 void surf_parse_get_double(double *value,const char *string);
39
40 /* Prototypes of the functions offered by flex */
41 int surf_parse_lex(void);
42 int surf_parse_get_lineno(void);
43 FILE *surf_parse_get_in(void);
44 FILE *surf_parse_get_out(void);
45 int surf_parse_get_leng(void);
46 char *surf_parse_get_text(void);
47 void surf_parse_set_lineno(int line_number);
48 void surf_parse_set_in(FILE * in_str);
49 void surf_parse_set_out(FILE * out_str);
50 int surf_parse_get_debug(void);
51 void surf_parse_set_debug(int bdebug);
52 int surf_parse_lex_destroy(void);
53
54 #endif