gbranden pushed a commit to branch master
in repository groff.

commit 9888cb62da210125491af3f5dabae780539b778c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Apr 17 09:30:20 2026 -0500

    src/roff/troff/input.cpp: Rename stuff (8/9).
    
    * src/roff/troff/input.cpp (read_request): Rename this...
      (read_from_terminal_request): ...to this.  It's a *roff input-reading
      function, but an oddball and highly specific one.  Make its name less
      apparently general.
    
      (init_input_requests): Update wire-uppery of request name to handler
      function.
---
 ChangeLog                | 10 ++++++++++
 src/roff/troff/input.cpp |  4 ++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index aa16b8df4..094207e2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2026-04-17  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp: Trivially refactor.
+       (read_request): Rename this...
+       (read_from_terminal_request): ...to this.  It's a *roff
+       input-reading function, but an oddball and highly specific one.
+       Make its name less apparently general.
+       (init_input_requests): Update wire-uppery of request name to
+       handler function.
+
 2026-04-17  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp: Trivially refactor.
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 2c8c1018f..5c876ace2 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5014,7 +5014,7 @@ bool unpostpone_traps()
     return false;
 }
 
-void read_request()
+void read_from_terminal_request() // .rd
 {
   macro_iterator *mi = new macro_iterator;
   bool is_reading_from_terminal = bool(isatty(fileno(stdin)));
@@ -10342,7 +10342,7 @@ void init_input_requests()
   init_request("pso", pipe_source_request);
   init_request("pstream", print_stream_request);
   init_request("rchar", remove_character);
-  init_request("rd", read_request);
+  init_request("rd", read_from_terminal_request);
   init_request("return", return_macro_request);
   init_request("rm", remove_macro);
   init_request("rn", rename_macro);

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

Reply via email to