gbranden pushed a commit to branch master
in repository groff.
commit 94842b1e8943e9e78539961a9899b88f3e5ed652
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 22 13:21:27 2026 -0600
[pic]: Fix code style nit.
* src/preproc/pic/lex.cpp (get_token, get_thru_arg): Parenthesize
formally complex expressions.
---
ChangeLog | 5 +++++
src/preproc/pic/lex.cpp | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 176328ce1..e3c168c7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-11-22 G. Branden Robinson <[email protected]>
+
+ * src/preproc/pic/lex.cpp (get_token, get_thru_arg): Fix code
+ style nit. Parenthesize formally complex expressions.
+
2026-11-22 G. Branden Robinson <[email protected]>
[troff]: Revise `--version` output.
diff --git a/src/preproc/pic/lex.cpp b/src/preproc/pic/lex.cpp
index b052c2e99..307251780 100644
--- a/src/preproc/pic/lex.cpp
+++ b/src/preproc/pic/lex.cpp
@@ -1313,7 +1313,7 @@ static int get_token(bool want_macro_expansion = true)
token_buffer = c;
for (;;) {
c = input_stack::peek_char();
- if ((EOF == c) || (!csalnum(c) && c != '_'))
+ if ((EOF == c) || (!csalnum(c) && (c != '_')))
break;
input_stack::get_char();
token_buffer += char(c);
@@ -1839,7 +1839,7 @@ static char *get_thru_arg()
token_buffer = c;
for (;;) {
c = input_stack::peek_char();
- if ((EOF == c) || (!csalnum(c) && c != '_'))
+ if ((EOF == c) || (!csalnum(c) && (c != '_')))
break;
input_stack::get_char();
token_buffer += char(c);
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit