diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2024-01-10 22:35:49 -0600 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2024-01-10 22:35:49 -0600 |
commit | 688c4fb37425d81200018392c12d0d9a4ad30987 (patch) | |
tree | 18b97ae2f92136b12f8715c66e97b27d8b16f555 | |
parent | 2f5f9c14ae897dd164a2cc4e9c7ef7288064774e (diff) |
[troff]: Fix code style nits (static functions).
* src/roff/troff/input.cpp (device_request, device_macro_request)
(output_request): Declare functions `static` since they do not require
external linkage.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/roff/troff/input.cpp | 6 |
2 files changed, 11 insertions, 3 deletions
@@ -1,3 +1,11 @@ +2024-01-10 G. Branden Robinson <g.branden.robinson@gmail.com> + + [troff]: Fix code style nits. + + * src/roff/troff/input.cpp (device_request) + (device_macro_request, output_request): Declare functions + `static` since they do not require external linkage. + 2024-01-09 G. Branden Robinson <g.branden.robinson@gmail.com> [troff]: Add unit test for `\X` (device control) escape diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp index 7455d6077..8f8df4f92 100644 --- a/src/roff/troff/input.cpp +++ b/src/roff/troff/input.cpp @@ -5676,7 +5676,7 @@ static node *do_special() return new special_node(mac); } -void device_request() +static void device_request() { // We can't use `has_arg()` here because we want to read in copy mode. int c; @@ -5708,7 +5708,7 @@ void device_request() tok.next(); } -void device_macro_request() +static void device_macro_request() { symbol s = get_name(true /* required */); if (!(s.is_null() || s.is_empty())) { @@ -5723,7 +5723,7 @@ void device_macro_request() skip_line(); } -void output_request() +static void output_request() { // We can't use `has_arg()` here because we want to read in copy mode. int c; |