groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 12/12: [troff]: Reverse polarity of neutron flow.


From: G. Branden Robinson
Subject: [groff] 12/12: [troff]: Reverse polarity of neutron flow.
Date: Sun, 5 Nov 2023 11:12:18 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 2caaedb3082c57dbe29e10c872a1e8c4369a23eb
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Nov 5 09:39:48 2023 -0600

    [troff]: Reverse polarity of neutron flow.
    
    * src/roff/troff/env.cpp: Do it.
    
    (I had named a Boolean variable backwards.  See, if you give your
    objects names like `n` or `nflag`, you never have to worry about this.)
    
    Continues commit 0b40885e71, 3 November.
---
 src/roff/troff/env.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 133e843d8..5d844ed20 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -3682,7 +3682,7 @@ static void print_hyphenation_exceptions()
     string word = entry.contents();
     (void) memset(wordbuf, '\0', bufsz);
     size_t i = 0, j = 0, len = word.length();
-    bool is_mode_independent = false;
+    bool is_mode_dependent = false;
     while (i < len) {
       if ((hypoint != 0 /* nullptr */) && (*hypoint == i)) {
        wordbuf[j++] = '-';
@@ -3690,12 +3690,12 @@ static void print_hyphenation_exceptions()
       }
       if (word[i] == ' ') {
        assert(i == (len - 1));
-       is_mode_independent = true;
+       is_mode_dependent = true;
       }
       wordbuf[j++] = word[i++];
     }
     errprint("%1", wordbuf);
-    if (is_mode_independent)
+    if (is_mode_dependent)
       errprint("\t*");
     errprint("\n");
   }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]