gbranden pushed a commit to branch master
in repository groff.
commit 5068ebac5f96fc23547151e5eff76df9a56bd339
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Dec 5 07:00:53 2025 -0600
[troff]: Improve fallback token description.
* src/roff/troff/input.cpp (token::description): Improve descriptiveness
of C string returned when preprocessor symbol `NDEBUG` is defined and
we're called upon to describe a nonexistent special character or
class.
---
ChangeLog | 7 +++++++
src/roff/troff/input.cpp | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index dbf9a8ad7..45bfcfe16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-12-05 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (token::description): Improve
+ descriptiveness of C string returned when preprocessor symbol
+ `NDEBUG` is defined and we're called upon to describe a
+ nonexistent special character or class.
+
2025-12-05 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (print_character_request): Don't try
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 8d18d6108..4c998fcf1 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -3019,7 +3019,7 @@ const char *token::description()
true /* suppress creation */);
if (0 /* nullptr */ == ci) {
assert(0 == "attempted to process token without charinfo");
- return "impossible character";
+ return "nonexistent special character or class";
}
else if (ci->is_class())
ctype = character_class;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit