gbranden pushed a commit to branch master
in repository groff.

commit ba7ea9560ff940351ff74b330dc9a71518d06e8c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Apr 13 11:20:31 2026 -0500

    [troff]: Trivially refactor (6/10).
    
    * src/roff/troff/node.cpp: Rename class to better align with terminology
      used in our documentation.
    
      (class next_available_font_position_reg): Rename this...
      (class next_available_font_mounting_position_reg): ...to this.
    
      (init_node_requests): Update wire-uppery of built-in register
      interpolator to its name in the formatter.
---
 ChangeLog               | 9 +++++++++
 src/roff/troff/node.cpp | 6 +++---
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1c9baa745..885bcf0b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-04-13  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/node.cpp: Trivially refactor.  Rename class
+       to better align with terminology used in our documentation.
+       (class next_available_font_position_reg): Rename this...
+       (class next_available_font_mounting_position_reg): ...to this.
+       (init_node_requests): Update wire-uppery of built-in register
+       interpolator to its name in the formatter.
+
 2026-04-13  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/node.cpp: Trivially refactor.  Rename objects
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index ddf32ebbc..b7c8c6a81 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -7569,12 +7569,12 @@ void init_output()
     the_output = new troff_output_file;
 }
 
-class next_available_font_position_reg : public reg {
+class next_available_font_mounting_position_reg : public reg {
 public:
   const char *get_string();
 };
 
-const char *next_available_font_position_reg::get_string()
+const char *next_available_font_mounting_position_reg::get_string()
 {
   return i_to_a(next_available_font_mounting_position());
 }
@@ -7612,7 +7612,7 @@ void init_node_requests()
   init_request("tkf", configure_track_kerning_request);
   init_request("uf", select_underline_font_request);
   register_dictionary.define(".fp",
-                            new next_available_font_position_reg);
+      new next_available_font_mounting_position_reg);
   register_dictionary.define(".kern",
       new readonly_boolean_register(&global_kern_mode));
   register_dictionary.define(".lg",

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

Reply via email to