gbranden pushed a commit to branch master
in repository groff.

commit f795639afe4b500d8a657dffbff38f09c2d7c150
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Mar 7 06:42:16 2024 -0600

    [troff]: Trivially refactor (`do_device_control`).
    
    * src/roff/troff/input.cpp:
    
      (do_special): Rename this...
      (do_device_control): ...to this.
---
 ChangeLog                | 6 ++++++
 src/roff/troff/input.cpp | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 17356b6cd..959e0f8a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-03-07  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp: Trivially refactor.
+       (do_special): Rename this...
+       (do_device_control): ...to this.
+
 2024-03-07  G. Branden Robinson <[email protected]>
 
        * tmac/pspic.tmac (PSPIC): Prepare for alteration of `\X` device
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 2c7ce5439..9419bd4e7 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -1297,7 +1297,7 @@ int non_interpreted_char_node::interpret(macro *mac)
 
 static void do_width();
 static node *do_non_interpreted();
-static node *do_special();
+static node *do_device_control();
 static node *do_suppress(symbol nm);
 static void do_register();
 
@@ -2360,7 +2360,7 @@ void token::next()
        nd = new extra_size_node(x);
        return;
       case 'X':
-       nd = do_special();
+       nd = do_device_control();
        if (!nd)
          break;
        type = TOKEN_NODE;
@@ -5685,7 +5685,7 @@ static void encode_char_for_troff_output(macro *mac, 
const char c)
   }
 }
 
-static node *do_special()
+static node *do_device_control() // \X
 {
   int start_level = input_stack::get_level();
   token start_token;

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

Reply via email to