gbranden pushed a commit to branch master
in repository groff.
commit 05c3e87b2b2c689c6ca1b8225cc8b2462c690c40
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Nov 4 10:55:54 2023 -0500
[troff]: Fix code style nit.
* src/roff/troff/node.cpp (set_font_specific_special_fonts): Declare
automatic variable closer to its first point of use.
---
ChangeLog | 5 +++++
src/roff/troff/node.cpp | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 4c5aa8496..ad332f0ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-11-04 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/node.cpp (set_font_specific_special_fonts):
+ Declare automatic variable closer to its first point of use.
+
2023-11-04 G. Branden Robinson <[email protected]>
[troff]: Trivially refactor dictionary implementation.
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index ff39787b2..b519f6927 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -6311,12 +6311,12 @@ static void read_special_fonts(special_font_list **sp)
static void set_font_specific_special_fonts()
{
- font_lookup_info finfo;
if (!has_arg()) {
error("fspecial request requires at least one font argument");
skip_line();
return;
}
+ font_lookup_info finfo;
if (!has_font(&finfo))
font_lookup_error(finfo, "to mark other fonts as special"
" contingently upon it"); // a mouthful :-/
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit