mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-04-24 10:39:38 +00:00
* src/location.h (LOCATION_PRINT): Use quotearg slot 3 to avoid
clashes. * src/scan-gram.l: Use ['] instead of ['] to pacify font-lock-mode. Use complain_at. Use quote, not quote_n since LOCATION_PRINT no longer uses the slot 0.
This commit is contained in:
+4
-3
@@ -49,11 +49,12 @@ do { \
|
||||
} while (0)
|
||||
|
||||
|
||||
/* Output LOC on the stream OUT. */
|
||||
/* Output LOC on the stream OUT.
|
||||
Warning: it uses quotearg's slot 3. */
|
||||
# define LOCATION_PRINT(Out, Loc) \
|
||||
do { \
|
||||
fprintf (stderr, "%s:", quotearg_style (escape_quoting_style, \
|
||||
(Loc).file)); \
|
||||
fprintf (stderr, "%s:", quotearg_n_style (3, escape_quoting_style, \
|
||||
(Loc).file)); \
|
||||
if ((Loc).first_line != (Loc).last_line) \
|
||||
fprintf (Out, "%d.%d-%d.%d", \
|
||||
(Loc).first_line, (Loc).first_column, \
|
||||
|
||||
Reference in New Issue
Block a user