summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2021-01-25 22:15:22 +0100
committerpgen <p.gen.progs@gmail.com>2021-01-25 22:24:07 +0100
commiteb8bdf67ce2db9b530b747efaa625396ad3cb500 (patch)
tree99e4c2103aa04aa9f3e4f41a04544053aecc58e6
parent50bd576a0e4b297c19fd366cfc5e1c69092aa29c (diff)
Typoes
-rw-r--r--smenu.c12
-rw-r--r--smenu.h8
-rw-r--r--utf8.c10
-rw-r--r--utils.c8
4 files changed, 19 insertions, 19 deletions
diff --git a/smenu.c b/smenu.c
index c254d87..9f3a4f4 100644
--- a/smenu.c
+++ b/smenu.c
@@ -5097,7 +5097,7 @@ toggle_action(char * ctx_name, char * opt_name, char * param, int nb_values,
toggles->enter_val_in_search = 1;
else if (strcmp(opt_name, "blank_nonprintable") == 0)
toggles->blank_nonprintable = 1;
- else if (strcmp(opt_name, "no_scoll_bar") == 0)
+ else if (strcmp(opt_name, "no_scroll_bar") == 0)
toggles->no_scrollbar = 1;
else if (strcmp(opt_name, "auto_tag") == 0)
toggles->autotag = 1;
@@ -5803,7 +5803,7 @@ da_options_action(char * ctx_name, char * opt_name, char * param, int nb_values,
break;
case 'i': /* Number of UTF-8 glyphs to ignore after the *
- * selector to extrac. */
+ * selector to extract. */
if (sscanf(value + 2, "%zu%n", &daccess.ignore, &pos) != 1)
{
fprintf(stderr, "%s: Bad value after i:\n", param);
@@ -6081,7 +6081,7 @@ main(int argc, char * argv[])
long message_max_len = 0; /* max number of bytes taken by a message *
* line. */
- char * int_string = NULL; /* String to be output when typeing ^C. */
+ char * int_string = NULL; /* String to be output when typing ^C. */
int int_as_in_shell = 1; /* CTRL-C mimics the shell behaviour. */
FILE * input_file; /* The name of the file passed as argument if any. */
@@ -6441,7 +6441,7 @@ main(int argc, char * argv[])
"[clean] "
"[keep_spaces] "
"[word_separators #bytes] "
- "[no_scoll_bar] "
+ "[no_scroll_bar] "
"[post_subst_all... #/regex/repl/opts] "
"[post_subst_included... #/regex/repl/opts] "
"[post_subst_excluded... #/regex/repl/opts] "
@@ -6580,7 +6580,7 @@ main(int argc, char * argv[])
ctxopt_add_opt_settings(parameters, "line_separators",
"-L -ls -ld -line-delimiters -line_separators");
ctxopt_add_opt_settings(parameters, "zapped_glyphs", "-z -zap -zap-glyphs");
- ctxopt_add_opt_settings(parameters, "no_scoll_bar",
+ ctxopt_add_opt_settings(parameters, "no_scroll_bar",
"-q -no_bar -no-scroll_bar");
ctxopt_add_opt_settings(parameters, "post_subst_all", "-S -subst");
ctxopt_add_opt_settings(parameters, "post_subst_included",
@@ -6659,7 +6659,7 @@ main(int argc, char * argv[])
ctxopt_add_opt_settings(actions, "keep_spaces", toggle_action, &toggles,
(char *)0);
ctxopt_add_opt_settings(actions, "lines", lines_action, &win, (char *)0);
- ctxopt_add_opt_settings(actions, "no_scoll_bar", toggle_action, &toggles,
+ ctxopt_add_opt_settings(actions, "no_scroll_bar", toggle_action, &toggles,
(char *)0);
ctxopt_add_opt_settings(actions, "start_pattern", set_pattern_action,
&pre_selection_index, &langinfo, &misc, (char *)0);
diff --git a/smenu.h b/smenu.h
index c8904dd..ee48e33 100644
--- a/smenu.h
+++ b/smenu.h
@@ -267,7 +267,7 @@ struct word_s
char * orig; /* NULL or original string if is had been *
* shortened for being displayed or altered *
* by is expansion. */
- char * bitmap; /* used to store the the position of the *
+ char * bitmap; /* used to store the position of the *
* currently searched chars in a word. The *
* objective is to speed their display */
unsigned char is_matching;
@@ -359,8 +359,8 @@ struct output_s
char * output_str; /* The pinned word itself */
};
-/* Structure describing the formating of the automatic direct access entries */
-/* """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" */
+/* Structure describing the formatting of the automatic direct access entries */
+/* """""""""""""""""""""""""""""""'"""""""""""""""""""""""""""""""""""""""""" */
struct daccess_s
{
da_mode_t mode; /* DA_TYPE_NONE (0), DA_TYPE_AUTO, DA_TYPE_POS */
@@ -372,7 +372,7 @@ struct daccess_s
char padding; /* a: all; i: only included words are padded */
char head; /* What to do with chars before the embedded number */
int length; /* selector size (5 max) */
- int flength; /* 0 or length + 3 (full prefix lengh */
+ int flength; /* 0 or length + 3 (full prefix length */
size_t offset; /* offset to the start of the selector */
char missing; /* y: number missing embedded numbers */
int plus; /* 1 if we can look for the number to extract after *
diff --git a/utf8.c b/utf8.c
index 6193bde..d33e9ab 100644
--- a/utf8.c
+++ b/utf8.c
@@ -66,14 +66,14 @@ cptoutf8(char * utf8_str, uint32_t c)
}
/* ======================================================================= */
-/* Unicode (UTF-8) ascii representation interpreter. */
+/* Unicode (UTF-8) ASCII representation interpreter. */
/* The string passed will be altered but its address will not change. */
/* All hexadecimal sequences of \uxx, \uxxxx, \uxxxxxx and \uxxxxxxxx will */
/* be replaced by the corresponding UTF-8 character when possible. */
/* All hexadecimal sequences of \Uxxxxxx will be replaced with the UTF-8 */
/* sequence corresponding to the given UCS-4 codepoint. */
/* When not possible the substitution character is substituted in place. */
-/* Returns 0 if the conversion has faild else 1. */
+/* Returns 0 if the conversion has failed else 1. */
/* ======================================================================= */
int
utf8_interpret(char * s, langinfo_t * langinfo, char substitute)
@@ -104,7 +104,7 @@ utf8_interpret(char * s, langinfo_t * langinfo, char substitute)
int len;
int n;
uint32_t cp;
- int subst; /* 0, the \U sequance is valid, else 1. */
+ int subst; /* 0, the \U sequence is valid, else 1. */
utf8_to_eos_len = strlen(utf8_str);
utf8_str_len = 0;
@@ -170,8 +170,8 @@ utf8_interpret(char * s, langinfo_t * langinfo, char substitute)
unsigned byte;
char * utf8_seq_offset = utf8_str + 2;
- /* Get the first 2 utf8 bytes. */
- /* """"""""""""""""""""""""""" */
+ /* Get the first 2 UTF-8 bytes. */
+ /* """""""""""""""""""""""""""" */
*tmp = *utf8_seq_offset;
*(tmp + 1) = *(utf8_seq_offset + 1);
*(tmp + 2) = '\0';
diff --git a/utils.c b/utils.c
index add1346..6e8f050 100644
--- a/utils.c
+++ b/utils.c
@@ -256,9 +256,9 @@ my_strcasecmp(const char * str1, const char * str2)
#endif
}
-/* ============================================ */
-/* memmove based strcpy (tolerates overlaping). */
-/* ============================================ */
+/* ============================================= */
+/* memmove based strcpy (tolerates overlapping). */
+/* ============================================= */
char *
my_strcpy(char * str1, char * str2)
{
@@ -291,7 +291,7 @@ isprint8(int i)
}
/* ==================================================== */
-/* Private implementation of wcscasecmp wimming in c99. */
+/* Private implementation of wcscasecmp missing in c99. */
/* ==================================================== */
int
xwcscasecmp(const wchar_t * s1, const wchar_t * s2)