gbranden pushed a commit to branch master
in repository groff.
commit e0808e0f6eedcbdce7f3dcc0adca88802b190b9f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 8 17:52:10 2026 -0500
src/roff/troff/env.cpp: Trivially refactor (2/2).
* src/roff/troff/env.cpp (environment_copy, environment_switch): 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 a1c8fbf02..80fae0a9c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-04-08 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/env.cpp (environment_copy, environment_switch):
+ Declare as `static`; external linkage is not required.
+
2026-04-08 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp (fill, no_fill): Declare as `static`;
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 235fba20f..b93535745 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -3845,7 +3845,7 @@ static void select_hyphenation_language()
skip_line();
}
-void environment_copy()
+static void environment_copy()
{
if (!has_arg()) {
warning(WARN_MISSING, "environment copy request expects an"
@@ -3866,7 +3866,7 @@ void environment_copy()
skip_line();
}
-void environment_switch()
+static void environment_switch()
{
if (curenv->is_dummy()) {
error("cannot switch out of dummy environment");
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit