gbranden pushed a commit to branch master
in repository groff.

commit 6b626cf13fccbf23fbf741ddac6571f43b57eba7
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Jul 12 04:07:19 2026 -0500

    src/roff/troff/input.cpp: Trivially refactor.
    
    * src/roff/troff/input.cpp (remove_character): Rename this...
      (remove_character_request): ...to this.
    
      (init_input_requests): Update wire-uppery of request names to handler
      functions.
---
 ChangeLog                | 8 ++++++++
 src/roff/troff/input.cpp | 4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c628e5564..1d5115111 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-07-12  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp: Trivially refactor.
+       (remove_character): Rename this...
+       (remove_character_request): ...to this.
+       (init_input_requests): Update wire-uppery of request names to
+       handler functions.
+
 2026-07-12  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (remove_character): Refactor to use
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index ee2e0200d..3aca7f563 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5387,7 +5387,7 @@ static void print_character_request() // .pchar
 // Because `rchar` doesn't require spaces separating its "arguments",
 // we don't use `has_arg()` except initially to determine whether we
 // have any arguments at all.
-static void remove_character() // .rchar
+static void remove_character_request() // .rchar
 {
   if (!has_arg()) {
     warning(WARN_MISSING, "character definition removal request expects"
@@ -10444,7 +10444,7 @@ void init_input_requests()
   init_request("psbb", ps_bbox_request);
   init_request("pso", pipe_source_request);
   init_request("pstream", print_stream_request);
-  init_request("rchar", remove_character);
+  init_request("rchar", remove_character_request);
   init_request("rd", read_from_terminal_request);
   init_request("return", return_macro_request);
   init_request("rm", remove_macro);

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

Reply via email to