gbranden pushed a commit to branch master
in repository groff.

commit 3f0c81a0a7ea7ba59ccbe6382ba1b42861b54a0e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun May 24 22:54:37 2026 -0500

    [troff]: Refactor `cflags` request handler.
    
    * src/roff/troff/input.cpp (set_character_flags_request): Refactor; use
      `token::is_any_character()` instead of `has_arg()` as loop control, in
      preparation for firming-up of the semantics and logic of request
      arguments to constitute space-separated lexical tokens, as our
      documentation defines "argument".
---
 ChangeLog                | 8 ++++++++
 src/roff/troff/input.cpp | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 34c3f742c..8021febe8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-05-24  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (set_character_flags_request):
+       Refactor; use `token::is_any_character()` instead of `has_arg()`
+       as loop control, in preparation for firming-up of the semantics
+       and logic of request arguments to constitute space-separated
+       lexical tokens, as our documentation defines "argument".
+
 2026-05-24  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (set_hyphenation_codes): Throw error
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index a27a5cb79..75b3badab 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -8858,7 +8858,7 @@ static void set_character_flags_request() // .cflags
       skip_line();
       return;
     }
-    while (has_arg()) {
+    while (tok.is_any_character()) {
       charinfo *ci = tok.get_charinfo(true /* is_mandatory */);
       if (0 /* nullptr */ == ci)
        assert(0 == "attempted to use token without charinfo in"

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to