[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 06/07: [troff]: Fix code style nits.
From: |
G. Branden Robinson |
Subject: |
[groff] 06/07: [troff]: Fix code style nits. |
Date: |
Thu, 25 Jan 2024 15:49:56 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit ef14f846d7e552fe24aeb855a197a3471714e012
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Jan 23 20:02:56 2024 -0600
[troff]: Fix code style nits.
---
src/roff/troff/input.cpp | 2 +-
src/roff/troff/node.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 94a977e38..75d723d36 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -4229,7 +4229,7 @@ static symbol composite_glyph_name(symbol nm)
// point with a composite mapping? Either the key or value component
// of an entry in the composite dictionary qualifies.
//
-// This is an O(n) search, but by default groff only defines 22
+// This is an O(n) search, but by default groff defines only 22
// composite character mappings ("tmac/composite.tmac"). If this
// becomes a performance problem, we will need another dictionary
// mapping the unique values of `composite_dictionary` (which is not
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index c7f9116bd..895fb9519 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -4915,7 +4915,7 @@ static node *make_glyph_node(charinfo *s, environment
*env,
if (seq != 0 /* nullptr */) {
// If it is a multi-character sequence like u1234_5678, every code
// point after the first must have (or be) a composite mapping.
- char codepoint[5] = { 0, 0, 0, 0, 0};
+ char codepoint[5] = { 0, 0, 0, 0, 0 };
bool is_composite_glyph_valid = true;
while ((seq = strchr(seq, '_')) != 0 /* nullptr */) {
seq++;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 06/07: [troff]: Fix code style nits.,
G. Branden Robinson <=