projects
/
platform
/
upstream
/
bison.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f38b17c
)
(message): Don't print a message more than once,
author
Paul Eggert
<eggert@cs.ucla.edu>
Sat, 23 Jul 2005 17:06:41 +0000
(17:06 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sat, 23 Jul 2005 17:06:41 +0000
(17:06 +0000)
and omit line-number decoration that makes Emacs compile think
that informative messages are worth worrying about.
examples/extexi
patch
|
blob
|
history
diff --git
a/examples/extexi
b/examples/extexi
index
c0f67df
..
4bd4897
100644
(file)
--- a/
examples/extexi
+++ b/
examples/extexi
@@
-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) {