bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH] terminfo, termcap: Fix more spellos in a comment.


From: Benno Schulenberg
Subject: [PATCH] terminfo, termcap: Fix more spellos in a comment.
Date: Mon, 27 Feb 2023 17:10:41 +0100

* lib/tparm.c: Fix misspellings and wording in the main comment.
---
 ChangeLog   | 5 +++++
 lib/tparm.c | 8 ++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 25610ee51b..17bb762072 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-02-27  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
+
+       terminfo, termcap: Fix more spellos in a comment.
+       * lib/tparm.c: Fix misspellings and wording in the main comment.
+
 2023-02-27  ChuanGang Jiang  <jiangchuanganghw@outlook.com>
 
        fts: fail gracefully when out of memory
diff --git a/lib/tparm.c b/lib/tparm.c
index 17923787d7..e9214e292c 100644
--- a/lib/tparm.c
+++ b/lib/tparm.c
@@ -176,14 +176,14 @@ cvtchar (const char *sp, char *c)
 /* sigh... this has got to be the ugliest code I've ever written.
    Trying to handle everything has its cost, I guess.
 
-   It actually isn't to hard to figure out if a given % code is supposed
+   It actually isn't too hard to figure out if a given % code is supposed
    to be interpreted with its termcap or terminfo meaning since almost
    all terminfo codes are invalid unless something has been pushed on
    the stack and termcap strings will never push things on the stack
    (%p isn't used by termcap). So where we have a choice we make the
-   decision by whether or not somthing has been pushed on the stack.
+   decision by whether or not something has been pushed on the stack.
    The static variable termcap keeps track of this; it starts out set
-   to 1 and is incremented as each argument processed by a termcap % code,
+   to 1 and is incremented for each argument processed for a termcap % code,
    however if something is pushed on the stack it's set to 0 and the
    rest of the % codes are interpreted as terminfo % codes. Another way
    of putting it is that if termcap equals one we haven't decided either
@@ -216,7 +216,7 @@ cvtchar (const char *sp, char *c)
         %O      logical or pop and pop and push the result
         %!      push the logical not of pop
         %? condition %t if_true [%e if_false] %;
-                if condition evaulates as true then evaluate if_true,
+                if condition evaluates as true then evaluate if_true,
                 else evaluate if_false. elseif's can be done:
         %? cond %t true [%e cond2 %t true2] ... [%e condN %t trueN] [%e false] 
%;
         %i      add one to parameters 1 and 2. (ANSI)
-- 
2.39.2




reply via email to

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