mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
Merge remote-tracking branch 'origin/maint'
* origin/maint: parser: accept #line NUM m4: use a safer pattern to enable/disable output tests: beware of gnulib's need for config.h gnulib: update yacc.c, glr.c: check and fix the display of locations formatting changes glr.c: remove stray macro Conflicts: data/c.m4 data/glr.cc data/lalr1.cc data/lalr1.java data/location.cc data/stack.hh data/yacc.c src/scan-gram.l
This commit is contained in:
@@ -107,7 +107,7 @@ location_print (FILE *out, location loc)
|
||||
quotearg_n_style (3, escape_quoting_style, loc.start.file));
|
||||
if (0 <= loc.start.line)
|
||||
{
|
||||
res += fprintf(out, ":%d", loc.start.line);
|
||||
res += fprintf (out, ":%d", loc.start.line);
|
||||
if (0 <= loc.start.column)
|
||||
res += fprintf (out, ".%d", loc.start.column);
|
||||
}
|
||||
@@ -118,7 +118,7 @@ location_print (FILE *out, location loc)
|
||||
loc.end.file));
|
||||
if (0 <= loc.end.line)
|
||||
{
|
||||
res += fprintf(out, ":%d", loc.end.line);
|
||||
res += fprintf (out, ":%d", loc.end.line);
|
||||
if (0 <= end_col)
|
||||
res += fprintf (out, ".%d", end_col);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user