53 |
Warning: it uses quotearg's slot 3. */ |
Warning: it uses quotearg's slot 3. */ |
54 |
# define LOCATION_PRINT(Out, Loc) \ |
# define LOCATION_PRINT(Out, Loc) \ |
55 |
do { \ |
do { \ |
56 |
fprintf (stderr, "%s:", quotearg_n_style (3, escape_quoting_style, \ |
fprintf (stderr, "%s:", quotearg_n_style (3, escape_quoting_style, \ |
57 |
(Loc).file)); \ |
(Loc).file)); \ |
58 |
if ((Loc).first_line != (Loc).last_line) \ |
if ((Loc).first_line) \ |
59 |
fprintf (Out, "%d.%d-%d.%d", \ |
{ \ |
60 |
(Loc).first_line, (Loc).first_column, \ |
if ((Loc).first_line != (Loc).last_line) \ |
61 |
(Loc).last_line, (Loc).last_column - 1); \ |
fprintf (Out, "%d.%d-%d.%d", \ |
62 |
else if ((Loc).first_column < (Loc).last_column - 1) \ |
(Loc).first_line, (Loc).first_column, \ |
63 |
fprintf (Out, "%d.%d-%d", (Loc).first_line, \ |
(Loc).last_line, (Loc).last_column - 1); \ |
64 |
(Loc).first_column, (Loc).last_column - 1); \ |
else if ((Loc).first_column < (Loc).last_column - 1) \ |
65 |
else \ |
fprintf (Out, "%d.%d-%d", (Loc).first_line, \ |
66 |
fprintf (Out, "%d.%d", (Loc).first_line, (Loc).first_column); \ |
(Loc).first_column, (Loc).last_column - 1); \ |
67 |
|
else \ |
68 |
|
fprintf (Out, "%d.%d", (Loc).first_line, (Loc).first_column); \ |
69 |
|
} \ |
70 |
} while (0) |
} while (0) |
71 |
|
|
72 |
|
|
|
|
|
73 |
extern location_t empty_location; |
extern location_t empty_location; |
74 |
|
|
75 |
#endif /* !LOCATION_H_ */ |
#endif /* !LOCATION_H_ */ |