[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 06/26: [troff]: Clarify `nm` request diagnostics.
From: |
G. Branden Robinson |
Subject: |
[groff] 06/26: [troff]: Clarify `nm` request diagnostics. |
Date: |
Sat, 13 Jul 2024 16:20:49 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit cdd4bd1634b9d2f4c04e2d6d4de30ddc918f8e2b
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Jul 13 03:57:26 2024 -0500
[troff]: Clarify `nm` request diagnostics.
* src/roff/troff/env.cpp (number_lines): Clarify diagnostics; output
line numbers cannot be negative, but input line numbers can, in both
AT&T/DWB troff and GNU troff.
---
ChangeLog | 6 ++++++
src/roff/troff/env.cpp | 5 +++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 994b72108..0312f3424 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-07-13 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/roff/troff/env.cpp (number_lines): Clarify diagnostics;
+ output line numbers cannot be negative, but input line numbers
+ can, in both AT&T/DWB troff and GNU troff.
+
2024-07-13 G. Branden Robinson <g.branden.robinson@gmail.com>
[troff]: Boolify `set_location()` member function and those of
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 7e315c70d..543ed44f1 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -1651,7 +1651,7 @@ void number_lines()
if (get_integer(&n, next_line_number)) {
next_line_number = n;
if (next_line_number < 0) {
- warning(WARN_RANGE, "negative line number");
+ warning(WARN_RANGE, "output line number cannot be negative");
next_line_number = 0;
}
}
@@ -1663,7 +1663,8 @@ void number_lines()
if (!tok.is_usable_as_delimiter()) {
if (get_integer(&n)) {
if (n <= 0) {
- warning(WARN_RANGE, "negative or zero line number multiple");
+ warning(WARN_RANGE, "output line number multiple cannot"
+ "be nonpositive");
}
else
curenv->line_number_multiple = n;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 06/26: [troff]: Clarify `nm` request diagnostics.,
G. Branden Robinson <=