gbranden pushed a commit to branch master
in repository groff.
commit 28e655f0c5ca2b57d80556d6a705b32239cbfd49
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Apr 17 12:52:13 2026 -0500
src/roff/troff/node.cpp: Rename stuff (9/9).
* src/roff/troff/node.cpp (read_special_fonts): Rename this...
(read_special_font_identifiers): ...to this.
(set_font_specific_special_fonts_request)
(set_special_fonts_request): Update call sites.
---
ChangeLog | 8 ++++++++
src/roff/troff/node.cpp | 11 ++++++++---
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 094207e2a..983aa697a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-04-17 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/node.cpp: Trivially refactor.
+ (read_special_fonts): Rename this...
+ (read_special_font_identifiers): ...to this.
+ (set_font_specific_special_fonts_request)
+ (set_special_fonts_request): Update call sites.
+
2026-04-17 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp: Trivially refactor.
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index bce2d3098..53295db10 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -7114,7 +7114,12 @@ static void remove_font_specific_character_request() //
.rfschar
skip_line();
}
-static void read_special_fonts(special_font_list **sp)
+// Consume *roff arguments from the input stream, interpret them as font
+// identifiers, and associate them with the special font list argument
+// `sp`. The list is erased first, which is how you clear it. There is
+// no appending operation, which can be achieved with *roff string
+// interpolation.
+static void read_special_font_identifiers(special_font_list **sp)
{
special_font_list *s = *sp;
*sp = 0 /* nullptr */;
@@ -7151,13 +7156,13 @@ static void set_font_specific_special_fonts_request()
// .fspecial
font_lookup_error(finfo, "to mark other fonts as special"
" contingently upon it"); // a mouthful :-/
else
- read_special_fonts(&font_table[finfo.position]->sf);
+ read_special_font_identifiers(&font_table[finfo.position]->sf);
skip_line();
}
static void set_special_fonts_request() // .special
{
- read_special_fonts(&global_special_fonts);
+ read_special_font_identifiers(&global_special_fonts);
skip_line();
}
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit