gbranden pushed a commit to branch master
in repository groff.

commit 5c50367e2da4f89e693df55a973eed774fc8919c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Dec 17 15:52:06 2025 -0600

    src/roff/troff/input.cpp: Trivially refactor.
    
    * src/roff/troff/input.cpp (assign_control_character): Rename this...
      (assign_control_character_request): ...to this.
    
      (assign_no_break_control_character): Rename this...
      (assign_no_break_control_character_request): ...to this.
    
      (init_input_requests): Update wire-uppery of request names to their
      handlers.
---
 ChangeLog                | 10 ++++++++++
 src/roff/troff/input.cpp |  8 ++++----
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8926c99b2..d4512dbd2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2025-12-17  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (assign_control_character): Rename
+       this...
+       (assign_control_character_request): ...to this.
+       (assign_no_break_control_character): Rename this...
+       (assign_no_break_control_character_request): ...to this.
+       (init_input_requests): Update wire-uppery of request names to
+       their handlers.
+
 2025-12-17  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp: Add new `const` globals
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index f9bd1a5fb..8e91bbffc 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -255,7 +255,7 @@ void restore_escape_char_request()
   skip_line();
 }
 
-void assign_control_character()
+void assign_control_character_request()
 {
   unsigned char cc = 0U;
   bool is_invalid = false;
@@ -296,7 +296,7 @@ void assign_control_character()
   skip_line();
 }
 
-void assign_no_break_control_character()
+void assign_no_break_control_character_request()
 {
   unsigned char nbcc = 0U;
   bool is_invalid = false;
@@ -10068,8 +10068,8 @@ void init_input_requests()
   init_request("backtrace", backtrace_request);
   init_request("blm", blank_line_macro);
   init_request("break", while_break_request);
-  init_request("cc", assign_control_character);
-  init_request("c2", assign_no_break_control_character);
+  init_request("cc", assign_control_character_request);
+  init_request("c2", assign_no_break_control_character_request);
   init_request("cf", unsafe_transparent_throughput_file_request);
   init_request("cflags", set_character_flags_request);
   init_request("char", define_character_request);

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

Reply via email to