gbranden pushed a commit to branch master
in repository groff.

commit 6232411bd1c786ae5d409954b547c859f3f63f69
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 8 17:28:46 2026 -0500

    src/roff/troff/env.cpp: Trivially refactor (1/2).
    
    * src/roff/troff/env.cpp (fill, no_fill): Declare as `static`; external
      linkage is not required.
---
 ChangeLog              | 5 +++++
 src/roff/troff/env.cpp | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 02c7c75a2..a1c8fbf02 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-04-08  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/env.cpp (fill, no_fill): Declare as `static`;
+       external linkage is not required.
+
 2026-04-08  G. Branden Robinson <[email protected]>
 
        [troff]: Refactor.  Separate engine logic from parsing logic
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 114e9ab70..235fba20f 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -1480,7 +1480,7 @@ static void space_size() // .ss
   skip_line();
 }
 
-void fill()
+static void fill() // .fi
 {
   while (!tok.is_newline() && !tok.is_eof())
     tok.next();
@@ -1490,7 +1490,7 @@ void fill()
   tok.next();
 }
 
-void no_fill()
+static void no_fill() // .nf
 {
   while (!tok.is_newline() && !tok.is_eof())
     tok.next();

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

Reply via email to