mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 10:43:02 +00:00
(message): Don't print a message more than once,
and omit line-number decoration that makes Emacs compile think that informative messages are worth worrying about.
This commit is contained in:
@@ -123,8 +123,11 @@ function normalize(contents, i, lines, n, line, res) {
|
|||||||
|
|
||||||
|
|
||||||
function message(msg) {
|
function message(msg) {
|
||||||
# FNR starts at 0 instead of 1 for line numbers.
|
if (! message_printed[msg])
|
||||||
print "extexi: " FILENAME ":" (FNR + 1) ": " msg > "/dev/stderr";
|
{
|
||||||
|
print "extexi: " msg > "/dev/stderr";
|
||||||
|
message_printed[msg] = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function fatal(msg) {
|
function fatal(msg) {
|
||||||
|
|||||||
Reference in New Issue
Block a user