Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
code simplification: nobody use that extensibility feature anymore
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 11 Jul 2017 15:10:09 +0000 (17:10 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 11 Jul 2017 15:10:09 +0000 (17:10 +0200)
src/surf/xml/platf.hpp
src/surf/xml/surfxml_sax_cb.cpp

index 010e6f0..3d29ba4 100644 (file)
@@ -31,7 +31,7 @@ XBT_PUBLIC(double) surf_parse_get_size(const char *string, const char *entity_ki
 XBT_PUBLIC(double) surf_parse_get_bandwidth(const char *string, const char *entity_kind, const char *name);
 XBT_PUBLIC(double) surf_parse_get_speed(const char *string, const char *entity_kind, const char *name);
 
-XBT_PUBLIC_DATA(int_f_void_t) surf_parse;       /* Entry-point to the parser. Set this to your function. */
+XBT_PUBLIC(int) surf_parse(); /* Entry-point to the parser */
 
 SG_END_DECL()
 
index e304c1f..b82863a 100644 (file)
@@ -1138,11 +1138,10 @@ void surf_parse_close()
   }
 }
 
-/* Call the lexer to parse the currently opened file. This pointer to function enables bypassing of the parser */
-static int _surf_parse() {
+/* Call the lexer to parse the currently opened file */
+int surf_parse()
+{
   return surf_parse_lex();
 }
 
-int_f_void_t surf_parse = &_surf_parse;
-
 SG_END_DECL()