groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 16/38: [troff]: Trivially refactor.


From: G. Branden Robinson
Subject: [groff] 16/38: [troff]: Trivially refactor.
Date: Mon, 3 Oct 2022 01:42:56 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 8e31ea9eab7bad48daf99b883153629ed1827090
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Sep 28 18:09:28 2022 -0500

    [troff]: Trivially refactor.
    
    * src/roff/troff/input.cpp (interpolate_string): Trivially refactor.
      Rename function parameter from `s` to `nm` to more obviously align
      with `interpolate_string_with_args()`.
---
 ChangeLog                | 6 ++++++
 src/roff/troff/input.cpp | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 97a54856f..cbe85964a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-09-28  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/roff/troff/input.cpp (interpolate_string): Trivially
+       refactor.  Rename function parameter from `s` to `nm` to more
+       obviously align with `interpolate_string_with_args()`.
+
 2022-09-28  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/roff/troff/input.cpp (do_zero_width, token::description)
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index b2d3f16a1..8ae239971 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -4342,14 +4342,14 @@ static void interpolate_string(symbol nm)
   }
 }
 
-static void interpolate_string_with_args(symbol s)
+static void interpolate_string_with_args(symbol nm)
 {
-  request_or_macro *p = lookup_request(s);
+  request_or_macro *p = lookup_request(nm);
   macro *m = p->to_macro();
   if (!m)
     error("you can only invoke a string or macro using escaped '*'");
   else {
-    macro_iterator *mi = new macro_iterator(s, *m);
+    macro_iterator *mi = new macro_iterator(nm, *m);
     decode_string_args(mi);
     input_stack::push(mi);
   }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]