summaryrefslogtreecommitdiff
path: root/tests/example-reformatter.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/example-reformatter.c')
-rw-r--r--tests/example-reformatter.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/example-reformatter.c b/tests/example-reformatter.c
index a999fbe..946d556 100644
--- a/tests/example-reformatter.c
+++ b/tests/example-reformatter.c
@@ -133,14 +133,14 @@ parser_error:
if (parser.context) {
fprintf(stderr, "Scanner error: %s at line %d, column %d\n"
"%s at line %d, column %d\n", parser.context,
- parser.context_mark.line, parser.context_mark.column,
- parser.problem, parser.problem_mark.line,
- parser.problem_mark.column);
+ parser.context_mark.line+1, parser.context_mark.column+1,
+ parser.problem, parser.problem_mark.line+1,
+ parser.problem_mark.column+1);
}
else {
fprintf(stderr, "Scanner error: %s at line %d, column %d\n",
- parser.problem, parser.problem_mark.line,
- parser.problem_mark.column);
+ parser.problem, parser.problem_mark.line+1,
+ parser.problem_mark.column+1);
}
break;
@@ -148,14 +148,14 @@ parser_error:
if (parser.context) {
fprintf(stderr, "Parser error: %s at line %d, column %d\n"
"%s at line %d, column %d\n", parser.context,
- parser.context_mark.line, parser.context_mark.column,
- parser.problem, parser.problem_mark.line,
- parser.problem_mark.column);
+ parser.context_mark.line+1, parser.context_mark.column+1,
+ parser.problem, parser.problem_mark.line+1,
+ parser.problem_mark.column+1);
}
else {
fprintf(stderr, "Parser error: %s at line %d, column %d\n",
- parser.problem, parser.problem_mark.line,
- parser.problem_mark.column);
+ parser.problem, parser.problem_mark.line+1,
+ parser.problem_mark.column+1);
}
break;