gbranden pushed a commit to branch master
in repository groff.
commit 31522ab5ef5f2e670e60b18291170eec06bd4d42
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed May 6 08:53:05 2026 -0500
src/roff/troff/env.cpp: Trivially refactor.
* src/roff/troff/env.cpp (temporary_indent): Rename this...
(temporary_indent_request): ...to this. Also declare it `static`, as
`friend` access via the `environment` class is now gone and so
external linkage is unnecessary.
(init_env_requests): Update wire-uppery of request name to handler
function.
---
ChangeLog | 10 ++++++++++
src/roff/troff/env.cpp | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 977a2c777..509432e7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2026-05-06 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/env.cpp: Trivially refactor.
+ (temporary_indent): Rename this...
+ (temporary_indent_request): ...to this. Also declare it
+ `static`, as `friend` access via the `environment` class is now
+ gone and so external linkage is unnecessary.
+ (init_env_requests): Update wire-uppery of request name to
+ handler function.
+
2026-05-06 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 f4113fcd1..c740ec6e2 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -1694,7 +1694,7 @@ void indent() // .in
tok.next();
}
-void temporary_indent() // .ti
+static void temporary_indent_request() // .ti
{
hunits amount = H0;
if (was_invoked_with_regular_control_character)
@@ -4665,7 +4665,7 @@ void init_env_requests()
init_request("sizes", override_available_type_sizes_request);
init_request("ss", space_size);
init_request("ta", configure_tab_stops_request);
- init_request("ti", temporary_indent);
+ init_request("ti", temporary_indent_request);
init_request("tc", tab_character_request);
init_request("tl", title);
init_request("ul", underline);
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit