gbranden pushed a commit to branch master
in repository groff.
commit 8c89d85ed21c14e099f952c03ecb1359adba262c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 1 18:16:22 2026 -0500
src/roff/troff/env.cpp: Trivially refactor.
* src/roff/troff/env.cpp (print_hyphenation_exceptions)
(load_hyphenation_patterns_from_file)
(append_hyphenation_patterns_from_file): Rename these...
(print_hyphenation_exceptions_request)
(load_hyphenation_patterns_from_file_request)
(append_hyphenation_patterns_from_file_request): ...to these,
following a developing convention of naming request handlers to end
with "_request".
---
ChangeLog | 12 ++++++++++++
src/roff/troff/env.cpp | 12 ++++++------
2 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 487cb8cf8..30cda908b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,18 @@
disclose the specific format demanded. Also tighten message
wording.
+2026-04-01 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/env.cpp: Trivially refactor.
+ (print_hyphenation_exceptions)
+ (load_hyphenation_patterns_from_file)
+ (append_hyphenation_patterns_from_file): Rename these...
+ (print_hyphenation_exceptions_request)
+ (load_hyphenation_patterns_from_file_request)
+ (append_hyphenation_patterns_from_file_request): ...to these,
+ following a developing convention of naming request handlers to
+ end with "_request".
+
2026-04-01 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp: Rationalize header inclusions. Use
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 8311b9876..71249d03e 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -3952,7 +3952,7 @@ static void add_hyphenation_exception_words_request()
skip_line();
}
-static void print_hyphenation_exceptions()
+static void print_hyphenation_exceptions_request()
{
if (0 /* nullptr */ == current_language) {
skip_line();
@@ -4663,7 +4663,7 @@ static void read_hyphenation_patterns_from_file(bool
append)
tok.next();
}
-static void load_hyphenation_patterns_from_file()
+static void load_hyphenation_patterns_from_file_request()
{
if (!has_arg(true /* peek */)) {
warning(WARN_MISSING, "hyphenation pattern load request expects"
@@ -4676,7 +4676,7 @@ static void load_hyphenation_patterns_from_file()
// `read_rest_of_line_as_argument()` and `tok.next()`.
}
-static void append_hyphenation_patterns_from_file()
+static void append_hyphenation_patterns_from_file_request()
{
if (!has_arg(true /* peek */)) {
warning(WARN_MISSING, "hyphenation pattern appendment request"
@@ -4693,10 +4693,10 @@ static void append_hyphenation_patterns_from_file()
// init_env_requests() above.
void init_hyphenation_pattern_requests()
{
- init_request("hpf", load_hyphenation_patterns_from_file);
- init_request("hpfa", append_hyphenation_patterns_from_file);
+ init_request("hpf", load_hyphenation_patterns_from_file_request);
+ init_request("hpfa", append_hyphenation_patterns_from_file_request);
init_request("hw", add_hyphenation_exception_words_request);
- init_request("phw", print_hyphenation_exceptions);
+ init_request("phw", print_hyphenation_exceptions_request);
}
// Local Variables:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit