gbranden pushed a commit to branch master
in repository groff.
commit ad771a26a766374e5f4c6788654bd816f266b7a6
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Nov 21 21:57:41 2025 -0600
src/roff/troff/input.cpp: Annotate a mystery.
---
src/roff/troff/input.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index cac9de35b..064b9672f 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -6998,6 +6998,10 @@ static bool is_conditional_expression_true()
else if (c == 'c') {
tok.next();
tok.skip_spaces();
+ // XXX: Mystery: the presence of a character (fortunately) doesn't
+ // create it if nonexistent even though the default second argument
+ // to `token::get_charinfo()` (`suppress_creation`) is `false` (see
+ // "token.h"). Why?
charinfo *ci = tok.get_charinfo(true /* required */);
if (0 == ci /* nullptr */) {
skip_branch();
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit