[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 02/09: [troff]: Revise diagnostic wording.
From: |
G. Branden Robinson |
Subject: |
[groff] 02/09: [troff]: Revise diagnostic wording. |
Date: |
Thu, 1 Jul 2021 09:21:48 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 31e8ff9daf1c63d0dae536f3e5b429b7b12c2385
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Jun 30 23:06:26 2021 +1000
[troff]: Revise diagnostic wording.
* src/roff/troff/reg.cpp (lookup_number_reg, alias_reg): Say simply
"register" instead of "number register" (there is no other kind).
---
ChangeLog | 6 ++++++
src/roff/troff/reg.cpp | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 91e1bbf..b9252c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2021-06-30 G. Branden Robinson <g.branden.robinson@gmail.com>
+ * src/roff/troff/reg.cpp (lookup_number_reg, alias_reg): In
+ diagnostic messages, say simply "register" instead of "number
+ register" (there is no other kind).
+
+2021-06-30 G. Branden Robinson <g.branden.robinson@gmail.com>
+
[grog]: Refactor input parsing.
* src/utils/grog/grog.pl:
diff --git a/src/roff/troff/reg.cpp b/src/roff/troff/reg.cpp
index fc8357c..1a18be7 100644
--- a/src/roff/troff/reg.cpp
+++ b/src/roff/troff/reg.cpp
@@ -370,7 +370,7 @@ reg *lookup_number_reg(symbol nm)
{
reg *r = (reg *)number_reg_dictionary.lookup(nm);
if (r == 0) {
- warning(WARN_REG, "number register '%1' not defined", nm.contents());
+ warning(WARN_REG, "register '%1' not defined", nm.contents());
r = new number_reg;
number_reg_dictionary.define(nm, r);
}
@@ -426,7 +426,7 @@ void alias_reg()
symbol s2 = get_name(1);
if (!s2.is_null()) {
if (!number_reg_dictionary.alias(s1, s2))
- warning(WARN_REG, "number register '%1' not defined", s2.contents());
+ warning(WARN_REG, "register '%1' not defined", s2.contents());
}
}
skip_line();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 02/09: [troff]: Revise diagnostic wording.,
G. Branden Robinson <=