bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* [PATCH]maint: fix misspellings in comments
@ 2023-02-21 13:55 ChuanGang Jiang
  2023-02-25 13:58 ` Bruno Haible
  0 siblings, 1 reply; 2+ messages in thread
From: ChuanGang Jiang @ 2023-02-21 13:55 UTC (permalink / raw
  To: bug-gnulib@gnu.org

*lib/tparm.c: Fix typos in comments

---
ChangeLog   |  2 +-
 lib/tparm.c | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c1ca610548..2a17679cf2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -101710,7 +101710,7 @@
        (mbstok_r): Assume mbrtowc function.
        * lib/propername.c: Include mbuiter.h unconditionally.
        (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
-       * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
+       * lib/trim.c: Include mbchar.h, mbiter.h unconditionally.
        (trim2): Assume mbrtowc function.
        * lib/mbswidth.c (mbsinit): Remove fallback definition.
        (mbsnwidth): Assume mbrtowc function.
diff --git a/lib/tparm.c b/lib/tparm.c
index 9913a640c1..d831bc5143 100644
--- a/lib/tparm.c
+++ b/lib/tparm.c
@@ -177,15 +177,15 @@ cvtchar (const char *sp, char *c)
    Trying to handle everything has its cost, I guess.

    It actually isn't to hard to figure out if a given % code is supposed
-   to be interpeted with its termcap or terminfo meaning since almost
+   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 wether 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,
    however if something is pushed on the stack it's set to 0 and the
-   rest of the % codes are interpeted as terminfo % codes. Another way
+   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
    way yet, if it equals zero we're looking for terminfo codes, and if
    its greater than 1 we're looking for termcap codes.
@@ -198,7 +198,7 @@ cvtchar (const char *sp, char *c)
         %c      output pop as a char
         %'c'    push character constant c.
         %{n}    push decimal constant n.
-        %p[1-9] push paramter [1-9]
+        %p[1-9] push parameter [1-9]
         %g[a-z] push variable [a-z]
         %P[a-z] put pop in variable [a-z]
         %l      push the length of pop (a string)
@@ -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 condtion 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)
@@ -236,7 +236,7 @@ cvtchar (const char *sp, char *c)
 (UW)    %sx     subtract parameter FROM the character x
         %>xy    if parameter > character x then add character y to parameter
         %B      convert to BCD (parameter = (parameter/10)*16 + parameter%16)
-        %D      Delta Data encode (parameter = parameter - 2*(paramter%16))
+        %D      Delta Data encode (parameter = parameter - 2*(parameter%16))
         %i      increment the first two parameters by one
         %n      xor the first two parameters by 0140
 (GNU)   %m      xor the first two parameters by 0177
--
2.36.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH]maint: fix misspellings in comments
  2023-02-21 13:55 [PATCH]maint: fix misspellings in comments ChuanGang Jiang
@ 2023-02-25 13:58 ` Bruno Haible
  0 siblings, 0 replies; 2+ messages in thread
From: Bruno Haible @ 2023-02-25 13:58 UTC (permalink / raw
  To: bug-gnulib; +Cc: ChuanGang Jiang

> *lib/tparm.c: Fix typos in comments

Thanks. Applied.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-25 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-21 13:55 [PATCH]maint: fix misspellings in comments ChuanGang Jiang
2023-02-25 13:58 ` Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).