Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
correction compile warnings
[simgrid.git] / examples / msg / mc / parserPromela.yacc
index 558ea1a..f018f80 100644 (file)
@@ -4,6 +4,8 @@
 #include "automatonparse_promela.h"
 #include "lex.yy.c"
 
 #include "automatonparse_promela.h"
 #include "lex.yy.c"
 
+void yyerror(const char *s);
+
 %}
 
 %union{
 %}
 
 %union{
@@ -64,9 +66,11 @@ exp : LEFT_PAR exp RIGHT_PAR { $$ = $2; }
  
 %%
 
  
 %%
 
-int yyerror(char *s) {
-  fprintf(stderr, "%s\n", s);
-  return 0;
+
+
+void yyerror(const char *s){
+  fprintf (stderr, "%s\n", s);
 }
 
 
 }
 
 
+