gbranden pushed a commit to branch master
in repository groff.

commit 6536f894f68fe772165d2f646d15ddf62d6e1bdd
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Dec 17 17:37:33 2025 -0600

    src/roff/troff/input.cpp: Trivially refactor (4).
---
 ChangeLog                | 6 ++++++
 src/roff/troff/input.cpp | 8 ++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fbd393ded..47c17f3ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-12-17  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (interpolate_rg): Rename this...
+       (interpolate_positional_parameter): ...to this.
+       (get_copy, token::next): Update call sites.
+
 2025-12-17  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (get_color_element): Rename this...
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 0e28679bf..b8a21a7f7 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -169,7 +169,7 @@ static void interpolate_number_format(symbol);
 static void interpolate_environment_variable(symbol);
 
 static symbol composite_glyph_name(symbol);
-static void interpolate_arg(symbol);
+static void interpolate_positional_parameter(symbol);
 static request_or_macro *lookup_request(symbol);
 static bool read_delimited_measurement(units *,
        unsigned char /* scaling unit */);
@@ -1175,7 +1175,7 @@ static int get_copy(node **nd, bool is_defining, bool 
handle_escape_E)
        (void) input_stack::get(0 /* nullptr */);
        symbol s = read_escape_parameter();
        if (!(s.is_null() || s.is_empty()))
-         interpolate_arg(s);
+         interpolate_positional_parameter(s);
        break;
       }
     case '*':
@@ -2401,7 +2401,7 @@ void token::next()
        {
          symbol s = read_escape_parameter();
          if (!(s.is_null() || s.is_empty()))
-           interpolate_arg(s);
+           interpolate_positional_parameter(s);
          break;
        }
       case '*':
@@ -5237,7 +5237,7 @@ static void interpolate_string_with_args(symbol nm)
   }
 }
 
-static void interpolate_arg(symbol nm)
+static void interpolate_positional_parameter(symbol nm)
 {
   const char *s = nm.contents();
   if (0 /* nullptr */ == s || '\0' == *s)

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

Reply via email to