[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 06/15: [troff]: Trivially refactor (`hcode` request).
From: |
G. Branden Robinson |
Subject: |
[groff] 06/15: [troff]: Trivially refactor (`hcode` request). |
Date: |
Fri, 1 Dec 2023 16:02:58 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 90e206bbb97effdae94a123f729c577b2a55d64a
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Nov 29 13:06:22 2023 -0600
[troff]: Trivially refactor (`hcode` request).
* src/roff/troff/input.cpp (hyphenation_code): Rename to...
(set_hyphenation_codes): ...this.
(init_input_requests): Update call site.
(set_hyphenation_codes): Declare as `static`; this function doesn't
need external visibility.
---
ChangeLog | 9 +++++++++
src/roff/troff/input.cpp | 4 ++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d0d61b7dd..51c5c537b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2023-11-29 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/roff/troff/input.cpp (hyphenation_code): Rename to...
+ (set_hyphenation_codes): ...this.
+ (init_input_requests): Update call site.
+
+ (set_hyphenation_codes): Declare as `static`; this function
+ doesn't need external visibility.
+
2023-11-28 G. Branden Robinson <g.branden.robinson@gmail.com>
* src/roff/troff/input.cpp (composite_request): Rename to...
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index f818819c5..daf3e50f7 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -7228,7 +7228,7 @@ static void set_character_flags()
skip_line();
}
-void hyphenation_code()
+static void set_hyphenation_codes()
{
tok.skip();
while (!tok.is_newline() && !tok.is_eof()) {
@@ -8551,7 +8551,7 @@ void init_input_requests()
#ifdef WIDOW_CONTROL
init_request("fpl", flush_pending_lines);
#endif /* WIDOW_CONTROL */
- init_request("hcode", hyphenation_code);
+ init_request("hcode", set_hyphenation_codes);
init_request("hpfcode", hyphenation_patterns_file_code);
init_request("ie", if_else_request);
init_request("if", if_request);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 06/15: [troff]: Trivially refactor (`hcode` request).,
G. Branden Robinson <=