Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Compile pas, c'te merde
[simgrid.git] / src / include / surf / surf_parse.h
index 547ab6a..c656cc5 100644 (file)
@@ -1,11 +1,16 @@
-/* Authors: Arnaud Legrand                                                  */
+/*     $Id$     */
+
+/* Copyright (c) 2004 Arnaud Legrand. All rights reserved.                  */
 
 /* This program is free software; you can redistribute it and/or modify it
 
 /* This program is free software; you can redistribute it and/or modify it
  under the terms of the license (GNU LGPL) which comes with this package. */
* under the terms of the license (GNU LGPL) which comes with this package. */
 
 #ifndef _SURF_SURF_PARSE_H
 #define _SURF_SURF_PARSE_H
 
 
 #ifndef _SURF_SURF_PARSE_H
 #define _SURF_SURF_PARSE_H
 
+#include "xbt/misc.h"
+#include "surf/trace_mgr.h"
+
 typedef enum {
   TOKEN_EMPTY = 0,
   TOKEN_LP = 512,
 typedef enum {
   TOKEN_EMPTY = 0,
   TOKEN_LP = 512,
@@ -26,7 +31,29 @@ extern int char_pos;
 extern int tok_num;
 
 e_surf_token_t surf_parse(void);
 extern int tok_num;
 
 e_surf_token_t surf_parse(void);
+void find_section(const char* file, const char* section_name);
+void close_section(const char* section_name);
+void surf_parse_float(xbt_maxmin_float_t *value);
+void surf_parse_trace(tmgr_trace_t *trace);
+
+
+/* Should not be called if you use the previous "section" functions */
 void  surf_parse_open(const char *file);
 void  surf_parse_close(void);
 
 void  surf_parse_open(const char *file);
 void  surf_parse_close(void);
 
+/* 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);
+
+
 #endif
 #endif