mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 05:13:04 +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) {
|
||||
# FNR starts at 0 instead of 1 for line numbers.
|
||||
print "extexi: " FILENAME ":" (FNR + 1) ": " msg > "/dev/stderr";
|
||||
if (! message_printed[msg])
|
||||
{
|
||||
print "extexi: " msg > "/dev/stderr";
|
||||
message_printed[msg] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
function fatal(msg) {
|
||||
|
||||
Reference in New Issue
Block a user