chiark
/
gitweb
/
~ijackson
/
trains.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
220fb57
)
get line number right in error msgs
author
ian
<ian>
Sun, 13 Jul 2008 19:24:32 +0000
(19:24 +0000)
committer
ian
<ian>
Sun, 13 Jul 2008 19:24:32 +0000
(19:24 +0000)
hostside/record.c
patch
|
blob
|
history
diff --git
a/hostside/record.c
b/hostside/record.c
index 672b7430e7b8a4709514e0075998fb90caf7f077..76876496aa2127f677f5388cf47b72964dcecc77 100644
(file)
--- a/
hostside/record.c
+++ b/
hostside/record.c
@@
-487,7
+487,7
@@
static void parse_file(const char *why) {
f= fopen(filename,"r");
if (!f) diee("config: cannot open %s: %s", why, filename);
record_yyrestart(f);
- record_yylineno=
0
;
+ record_yylineno=
1
;
r= record_yyparse();
assert(!r); /* we're supposed to call yyerror which dies */
fclose(f);