A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
correction compile warnings
[simgrid.git]
/
examples
/
msg
/
mc
/
parserPromela.yacc
diff --git
a/examples/msg/mc/parserPromela.yacc
b/examples/msg/mc/parserPromela.yacc
index
558ea1a
..
f018f80
100644
(file)
--- a/
examples/msg/mc/parserPromela.yacc
+++ b/
examples/msg/mc/parserPromela.yacc
@@
-4,6
+4,8
@@
#include "automatonparse_promela.h"
#include "lex.yy.c"
+void yyerror(const char *s);
+
%}
%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);
}
+