gbranden pushed a commit to branch master
in repository groff.
commit 11fb0451835272148a4e99c9938e316e5e4b3efb
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 8 09:49:12 2026 -0500
src/roff/troff/env.cpp: Slightly refactor.
* src/roff/troff/env.cpp (family_change, point_size)
(space_size): Declare as `static`; external linkage is not required.
---
ChangeLog | 6 ++++++
src/roff/troff/env.cpp | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c020631cd..9286dac5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-04-08 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/env.cpp (family_change, point_size)
+ (space_size): Declare as `static`; external linkage is not
+ required.
+
2026-04-08 G. Branden Robinson <[email protected]>
[troff]: Refactor. Separate engine logic from input parsing
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 6eba8a54b..2161e4d5e 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -1365,7 +1365,7 @@ static void select_font_request() // .ft
skip_line();
}
-void family_change()
+static void family_change() // .fam
{
if (in_nroff_mode) {
skip_line();
@@ -1376,7 +1376,7 @@ void family_change()
skip_line();
}
-void point_size()
+static void point_size() // .ps
{
if (in_nroff_mode) {
skip_line();
@@ -1449,7 +1449,7 @@ static void override_available_type_sizes_request() //
.sizes
tok.next();
}
-void space_size()
+static void space_size() // .ss
{
if (!has_arg()) {
warning(WARN_MISSING, "space size configuration request expects"
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit