summaryrefslogtreecommitdiff
path: root/PE/compil.lex
diff options
context:
space:
mode:
Diffstat (limited to 'PE/compil.lex')
-rw-r--r--PE/compil.lex6
1 files changed, 3 insertions, 3 deletions
diff --git a/PE/compil.lex b/PE/compil.lex
index f5c6d22..91fe11d 100644
--- a/PE/compil.lex
+++ b/PE/compil.lex
@@ -67,14 +67,14 @@
}
if (!trouve) {
- fprintf(stderr, "Caractère inconnu: %s\n", yytext);
+ fprintf(stderr, "Caractère inconnu ligne %i: %s\n", yylineno, yytext);
}
}
%%
int yywrap(void) {
- return 0;
+ exit(0);
}
int main(int argc, char ** argv) {
@@ -94,5 +94,5 @@ int main(int argc, char ** argv) {
}
fprintf(stderr, "Creating file %s\n", argv[1]);
yylex();
- exit(0);
+ return 0;
}