gbranden pushed a commit to branch master
in repository groff.
commit 803baa71849c3c148d04d6f5e4414aebbaf33bf4
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Sep 17 23:31:39 2025 -0500
src/roff/troff/input.cpp: Trivially refactor.
* src/roff/troff/input.cpp: Mark the `transparent_file()` and
`asciify_macro()` request handlers as `static` since they do not
require external linkage.
---
ChangeLog | 6 ++++++
src/roff/troff/input.cpp | 7 ++++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b5860f4dc..908760aae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-09-17 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp: Trivially refactor. Mark the
+ `transparent_file()` request handler as `static` since it does
+ not require external linkage.
+
2025-09-17 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (transparent_file): Test whether
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 969cb62c1..c66661809 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -90,6 +90,7 @@ static const int default_buffer_size = 16;
void init_column_requests();
#endif /* COLUMN */
+// forward declarations
static node *read_drawing_command();
static void read_drawing_command_color_arguments(token &);
static void push_token(const token &);
@@ -97,7 +98,7 @@ void copy_file();
#ifdef COLUMN
void vjustify();
#endif /* COLUMN */
-void transparent_file();
+static void transparent_file();
token tok;
bool want_break = false;
@@ -5517,7 +5518,7 @@ void length_request()
tok.next();
}
-void asciify_macro()
+static void asciify_macro()
{
if (!has_arg()) {
warning(WARN_MISSING, "diversion asciification request expects a"
@@ -8888,7 +8889,7 @@ void vjustify()
#endif /* COLUMN */
-void transparent_file()
+static void transparent_file()
{
if (!has_arg(true /* peek */)) {
warning(WARN_MISSING, "transparent file throughput request expects"
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit