gbranden pushed a commit to branch master
in repository groff.

commit 6a96e14c53436b92b5498e69211f496a1de518d9
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Apr 10 08:41:00 2026 -0500

    src/roff/troff/env.cpp: Slightly refactor.
    
    * src/roff/troff/env.cpp (add_hyphenation_exception_words_request):
      Revise loop style.
---
 ChangeLog              | 6 ++++++
 src/roff/troff/env.cpp | 4 +---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 27094111b..e06af05ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-04-10  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/env.cpp
+       (add_hyphenation_exception_words_request): Slightly refactor.
+       Revise loop style.
+
 2026-04-11  G. Branden Robinson <[email protected]>
 
        * src/libs/libgroff/symbol.cpp (symbol::json_length): Strengthen
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index a1d91a8c1..1c481a0e9 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -3937,9 +3937,7 @@ static void add_hyphenation_exception_words_request() // 
.hw
   // C++11: unsigned char pos[posbuflen]{};
   unsigned char pos[posbuflen];
   (void) memset(pos, 0, posbuflen);
-  for (;;) {
-    if (!has_arg())
-      break;
+  while (has_arg()) {
     int i = 0; // index into hyphenation exception word excluding '-'s
     unsigned char hc = 0U; // hyphenation code of current character
     int npos = 0;

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to