public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c19358e
)
Error messages are printed differently now. A '%' in an error message
author
ceriel
<none@none>
Wed, 22 Oct 1986 15:30:46 +0000
(15:30 +0000)
committer
ceriel
<none@none>
Wed, 22 Oct 1986 15:30:46 +0000
(15:30 +0000)
used to cause difficulties.
util/LLgen/src/tokens.g
patch
|
blob
|
history
diff --git
a/util/LLgen/src/tokens.g
b/util/LLgen/src/tokens.g
index
321a9de
..
1248a5d
100644
(file)
--- a/
util/LLgen/src/tokens.g
+++ b/
util/LLgen/src/tokens.g
@@
-413,7
+413,11
@@
LLmessage(d) {
s = cpy(LLsymb,s,0);
*s = '\0';
}
- error(linecount,buf);
+ error(linecount, "%s", buf);
+ /* Don't change this line to
+ * error(linecount, buf).
+ * The string in "buf" might contain '%' ...
+ */
if (d) { /*
* Save the current token and make up some
* attributes for the inserted token