gbranden pushed a commit to branch master
in repository groff.

commit c800ce93f212ed25cddb0b79d00b87261b78f397
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 16 19:00:38 2025 -0600

    [troff]: Trivially refactor.
    
    * src/roff/troff/input.cpp (get_line_arg): Rename function argument
      whose type is a pointer to a `charinfo` object from `cp` to `cip` for
      (slightly more) clarity.  `ci` is almost universally used in the code
      base for `charinfo` objects.
---
 ChangeLog                | 7 +++++++
 src/roff/troff/input.cpp | 4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8605d24d1..63f4e893e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-11-16  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (get_line_arg): Trivially refactor.
+       Rename function argument whose type is a pointer to a `charinfo`
+       object from `cp` to `cip` for (slightly more) clarity.  `ci` is
+       almost universally used in the code base for `charinfo` objects.
+
 2025-11-16  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (do_suppress): Improve diagnostic
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 06d9d3dde..114496beb 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5890,7 +5890,7 @@ static bool read_delimited_number(units *n, unsigned char 
si)
 }
 
 // \l, \L
-static bool get_line_arg(units *n, unsigned char si, charinfo **cp)
+static bool get_line_arg(units *n, unsigned char si, charinfo **cip)
 {
   token start_token;
   start_token.next();
@@ -5912,7 +5912,7 @@ static bool get_line_arg(units *n, unsigned char si, 
charinfo **cp)
       tok.next();
     if (!(start_token == tok
          && input_stack::get_level() == start_level)) {
-      *cp = tok.get_char(true /* required */);
+      *cip = tok.get_char(true /* required */);
       tok.next();
     }
     if (!(start_token == tok

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

Reply via email to