gbranden pushed a commit to branch master
in repository groff.

commit 4ec17615dc26f41c5fdd8583637e9a3596fa9634
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Dec 21 10:45:05 2025 -0600

    [troff]: Trivially refactor.
    
    * src/roff/troff/div.cpp (page_offset, page_length): Rename these...
      (configure_page_offset_request, configure_page_length_request): ...to
      these.
    
      (init_div_requests): Update wire-uppery.
---
 ChangeLog              | 10 ++++++++++
 src/roff/troff/div.cpp |  8 ++++----
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 47b1078d5..88e2389fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2025-12-21  G. Branden Robinson <[email protected]>
+
+       [troff]: Trivially refactor.
+
+       * src/roff/troff/div.cpp (page_offset, page_length): Rename
+       these...
+       (configure_page_offset_request, configure_page_length_request):
+       ...to these.
+       (init_div_requests): Update wire-uppery.
+
 2025-12-21  G. Branden Robinson <[email protected]>
 
        [troff]: Refactor.  Move page offset access from language
diff --git a/src/roff/troff/div.cpp b/src/roff/troff/div.cpp
index c99ecb34a..a3ff49cf6 100644
--- a/src/roff/troff/div.cpp
+++ b/src/roff/troff/div.cpp
@@ -735,7 +735,7 @@ diversion::~diversion()
 {
 }
 
-void page_offset()
+void configure_page_offset_request()
 {
   hunits n;
   // The troff manual says that the default scaling indicator is v,
@@ -748,7 +748,7 @@ void page_offset()
   skip_line();
 }
 
-static void page_length()
+static void configure_page_length_request()
 {
   vunits temp;
   if (has_arg() && read_vunits(&temp, 'v', topdiv->get_page_length())) {
@@ -1276,9 +1276,9 @@ void init_div_requests()
   init_request("ne", need_space);
   init_request("ns", no_space);
   init_request("os", output_saved_vertical_space);
-  init_request("pl", page_length);
+  init_request("pl", configure_page_length_request);
   init_request("pn", page_number);
-  init_request("po", page_offset);
+  init_request("po", configure_page_offset_request);
   init_request("ptr", print_traps);
   init_request("rs", restore_spacing);
   init_request("rt", return_request);

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

Reply via email to