|
|
9aacf9 |
From b64638020badf92b36424c06bda6e49942f77cd6 Mon Sep 17 00:00:00 2001
|
|
|
9aacf9 |
From: Dominique <dominique.pelle@gmail.com>
|
|
|
9aacf9 |
Date: Sun, 8 May 2022 08:52:41 +0200
|
|
|
9aacf9 |
Subject: [PATCH 2/2] docs: typo fixes in man page and in source code comments
|
|
|
9aacf9 |
Content-type: text/plain
|
|
|
9aacf9 |
|
|
|
9aacf9 |
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
|
|
|
9aacf9 |
---
|
|
|
9aacf9 |
contrib/webcscope/hilite.c | 6 +++---
|
|
|
9aacf9 |
doc/xcscope.1 | 8 ++++----
|
|
|
9aacf9 |
src/build.c | 2 +-
|
|
|
9aacf9 |
src/command.c | 2 +-
|
|
|
9aacf9 |
src/compath.c | 2 +-
|
|
|
9aacf9 |
src/crossref.c | 2 +-
|
|
|
9aacf9 |
src/find.c | 4 ++--
|
|
|
9aacf9 |
src/invlib.c | 2 +-
|
|
|
9aacf9 |
src/main.c | 4 ++--
|
|
|
9aacf9 |
src/mouse.c | 2 +-
|
|
|
9aacf9 |
src/snprintf.c | 2 +-
|
|
|
9aacf9 |
11 files changed, 18 insertions(+), 18 deletions(-)
|
|
|
9aacf9 |
|
|
|
9aacf9 |
diff --git a/contrib/webcscope/hilite.c b/contrib/webcscope/hilite.c
|
|
|
9aacf9 |
index 4f5af07..feacf0f 100644
|
|
|
9aacf9 |
--- a/contrib/webcscope/hilite.c
|
|
|
9aacf9 |
+++ b/contrib/webcscope/hilite.c
|
|
|
9aacf9 |
@@ -17,7 +17,7 @@
|
|
|
9aacf9 |
For HTML fragment generation:
|
|
|
9aacf9 |
CHTM file.c > file.htm
|
|
|
9aacf9 |
|
|
|
9aacf9 |
- - Some input convertion required to use this
|
|
|
9aacf9 |
+ - Some input conversion required to use this
|
|
|
9aacf9 |
code as CGI module. Will be done soon.
|
|
|
9aacf9 |
- Optimization required for blocks of EOL
|
|
|
9aacf9 |
comments
|
|
|
9aacf9 |
@@ -51,7 +51,7 @@
|
|
|
9aacf9 |
#define MODE_STRING 8
|
|
|
9aacf9 |
|
|
|
9aacf9 |
|
|
|
9aacf9 |
-int is_delimeter(char c)
|
|
|
9aacf9 |
+int is_delimiter(char c)
|
|
|
9aacf9 |
{
|
|
|
9aacf9 |
int ii=0;
|
|
|
9aacf9 |
char dlms[] =
|
|
|
9aacf9 |
@@ -318,7 +318,7 @@ int main(int _argc, char** _argv)
|
|
|
9aacf9 |
{
|
|
|
9aacf9 |
buf[bufidx++] = c;
|
|
|
9aacf9 |
buf[bufidx] = 0;
|
|
|
9aacf9 |
- if (is_delimeter(c))
|
|
|
9aacf9 |
+ if (is_delimiter(c))
|
|
|
9aacf9 |
{
|
|
|
9aacf9 |
kw = 0;
|
|
|
9aacf9 |
if (bufidx>2)
|
|
|
9aacf9 |
diff --git a/doc/xcscope.1 b/doc/xcscope.1
|
|
|
9aacf9 |
index fa4199c..5bf0de1 100644
|
|
|
9aacf9 |
--- a/doc/xcscope.1
|
|
|
9aacf9 |
+++ b/doc/xcscope.1
|
|
|
9aacf9 |
@@ -1,6 +1,6 @@
|
|
|
9aacf9 |
'\" t
|
|
|
9aacf9 |
.\" The xcscope.el man page
|
|
|
9aacf9 |
-.\" Origionally written by Darryl Okahata, Apr 2000
|
|
|
9aacf9 |
+.\" Originally written by Darryl Okahata, Apr 2000
|
|
|
9aacf9 |
.\"
|
|
|
9aacf9 |
.\" Converted to a man page July 20, 2004 by Neil Horman <nhorman@redhat.com>
|
|
|
9aacf9 |
.\"
|
|
|
9aacf9 |
@@ -152,7 +152,7 @@ cscope database directories:
|
|
|
9aacf9 |
.P
|
|
|
9aacf9 |
If a search is initiated from a .c file in /users/jdoe/sources/proj1
|
|
|
9aacf9 |
then (assuming the variable, `cscope-database-regexps', is not set)
|
|
|
9aacf9 |
-/users/jdoe/sources/proj1 will be used as the cscope data base directory.
|
|
|
9aacf9 |
+/users/jdoe/sources/proj1 will be used as the cscope database directory.
|
|
|
9aacf9 |
Only matches in files in /users/jdoe/sources/proj1 will be found. This
|
|
|
9aacf9 |
can be remedied by typing "C-c s a" and then "M-del" to remove single
|
|
|
9aacf9 |
path element in order to use a cscope database directory of
|
|
|
9aacf9 |
@@ -173,7 +173,7 @@ C-c s d Find global definition.
|
|
|
9aacf9 |
C-c s g Find global definition (alternate binding).
|
|
|
9aacf9 |
C-c s G Find global definition without prompting.
|
|
|
9aacf9 |
C-c s c Find functions calling a function.
|
|
|
9aacf9 |
-C-c s C Find called functions (list functions called
|
|
|
9aacf9 |
+C-c s C Find called functions (list functions called)
|
|
|
9aacf9 |
C-c s t Find text string.
|
|
|
9aacf9 |
C-c s e Find egrep pattern.
|
|
|
9aacf9 |
C-c s f Find a file.
|
|
|
9aacf9 |
@@ -527,7 +527,7 @@ done.
|
|
|
9aacf9 |
|
|
|
9aacf9 |
.P
|
|
|
9aacf9 |
1. The script, "cscope-indexer", uses a sed command to determine
|
|
|
9aacf9 |
-what is and is not a C/C++/lex/yacc source file. It's idea of a
|
|
|
9aacf9 |
+what is and is not a C/C++/lex/yacc source file. Its idea of a
|
|
|
9aacf9 |
source file may not correspond to yours.
|
|
|
9aacf9 |
|
|
|
9aacf9 |
.P
|
|
|
9aacf9 |
diff --git a/src/build.c b/src/build.c
|
|
|
9aacf9 |
index 557e660..4d4e201 100644
|
|
|
9aacf9 |
--- a/src/build.c
|
|
|
9aacf9 |
+++ b/src/build.c
|
|
|
9aacf9 |
@@ -133,7 +133,7 @@ samelist(FILE *oldrefs, char **names, int count)
|
|
|
9aacf9 |
}
|
|
|
9aacf9 |
|
|
|
9aacf9 |
|
|
|
9aacf9 |
-/* create the file name(s) used for a new cross-referene */
|
|
|
9aacf9 |
+/* create the file name(s) used for a new cross-reference */
|
|
|
9aacf9 |
|
|
|
9aacf9 |
void setup_build_filenames(char *reffile)
|
|
|
9aacf9 |
{
|
|
|
9aacf9 |
diff --git a/src/command.c b/src/command.c
|
|
|
9aacf9 |
index dcb5278..75fae6e 100644
|
|
|
9aacf9 |
--- a/src/command.c
|
|
|
9aacf9 |
+++ b/src/command.c
|
|
|
9aacf9 |
@@ -890,7 +890,7 @@ countrefs(void)
|
|
|
9aacf9 |
filelen = 4; /* strlen("File") */
|
|
|
9aacf9 |
fcnlen = 8; /* strlen("Function") */
|
|
|
9aacf9 |
numlen = 0;
|
|
|
9aacf9 |
- /* HBB NOTE 2012-04-07: it may look like we shouldn't assing tempstring here,
|
|
|
9aacf9 |
+ /* HBB NOTE 2012-04-07: it may look like we shouldn't assign tempstring here,
|
|
|
9aacf9 |
* since it's not used. But it has to be assigned just so the return value
|
|
|
9aacf9 |
* of fscanf will actually reach 4. */
|
|
|
9aacf9 |
while (EOF != (i = fscanf(refsfound,
|
|
|
9aacf9 |
diff --git a/src/compath.c b/src/compath.c
|
|
|
9aacf9 |
index 037d341..fadca1f 100644
|
|
|
9aacf9 |
--- a/src/compath.c
|
|
|
9aacf9 |
+++ b/src/compath.c
|
|
|
9aacf9 |
@@ -40,7 +40,7 @@
|
|
|
9aacf9 |
*
|
|
|
9aacf9 |
* WARNING: since pathname is altered by this function, it should
|
|
|
9aacf9 |
* be located in a temporary buffer. This avoids the problem
|
|
|
9aacf9 |
- * of accidently changing strings obtained from makefiles
|
|
|
9aacf9 |
+ * of accidentally changing strings obtained from makefiles
|
|
|
9aacf9 |
* and stored in global structures.
|
|
|
9aacf9 |
*/
|
|
|
9aacf9 |
|
|
|
9aacf9 |
diff --git a/src/crossref.c b/src/crossref.c
|
|
|
9aacf9 |
index 549bc6a..7304fd6 100644
|
|
|
9aacf9 |
--- a/src/crossref.c
|
|
|
9aacf9 |
+++ b/src/crossref.c
|
|
|
9aacf9 |
@@ -328,7 +328,7 @@ putcrossref(void)
|
|
|
9aacf9 |
if (c < ' ') {
|
|
|
9aacf9 |
++i;
|
|
|
9aacf9 |
|
|
|
9aacf9 |
- /* skip blanks before a preprocesor keyword */
|
|
|
9aacf9 |
+ /* skip blanks before a preprocessor keyword */
|
|
|
9aacf9 |
/* note: don't use isspace() because \f and \v
|
|
|
9aacf9 |
are used for keywords */
|
|
|
9aacf9 |
while ((j = my_yytext[i]) == ' ' || j == '\t') {
|
|
|
9aacf9 |
diff --git a/src/find.c b/src/find.c
|
|
|
9aacf9 |
index d7a66f0..0261161 100644
|
|
|
9aacf9 |
--- a/src/find.c
|
|
|
9aacf9 |
+++ b/src/find.c
|
|
|
9aacf9 |
@@ -975,7 +975,7 @@ fetch_string_from_dbase(char *s, size_t length)
|
|
|
9aacf9 |
}
|
|
|
9aacf9 |
|
|
|
9aacf9 |
|
|
|
9aacf9 |
-/* scan past the next occurence of this character in the cross-reference */
|
|
|
9aacf9 |
+/* scan past the next occurrence of this character in the cross-reference */
|
|
|
9aacf9 |
char *
|
|
|
9aacf9 |
scanpast(char c)
|
|
|
9aacf9 |
{
|
|
|
9aacf9 |
@@ -1035,7 +1035,7 @@ lcasify(char *s)
|
|
|
9aacf9 |
|
|
|
9aacf9 |
/* find the functions called by this function */
|
|
|
9aacf9 |
|
|
|
9aacf9 |
-/* HBB 2000/05/05: for consitency of calling interface between the
|
|
|
9aacf9 |
+/* HBB 2000/05/05: for consistency of calling interface between the
|
|
|
9aacf9 |
* different 'find...()' functions, this now returns a char pointer,
|
|
|
9aacf9 |
* too. Implemented as a pointer to static storage containing 'y' or
|
|
|
9aacf9 |
* 'n', for the boolean result values YES and NO */
|
|
|
9aacf9 |
diff --git a/src/invlib.c b/src/invlib.c
|
|
|
9aacf9 |
index cd15c35..cdccd32 100644
|
|
|
9aacf9 |
--- a/src/invlib.c
|
|
|
9aacf9 |
+++ b/src/invlib.c
|
|
|
9aacf9 |
@@ -106,7 +106,7 @@ invmake(char *invname, char *invpost, FILE *infile)
|
|
|
9aacf9 |
unsigned char *s;
|
|
|
9aacf9 |
long num;
|
|
|
9aacf9 |
int i;
|
|
|
9aacf9 |
- long fileindex = 0; /* initialze, to avoid warning */
|
|
|
9aacf9 |
+ long fileindex = 0; /* initialize, to avoid warning */
|
|
|
9aacf9 |
unsigned postsize = POSTINC * sizeof(*POST);
|
|
|
9aacf9 |
unsigned long *intptr;
|
|
|
9aacf9 |
char line[TERMMAX];
|
|
|
9aacf9 |
diff --git a/src/main.c b/src/main.c
|
|
|
9aacf9 |
index d28271c..2ffabc3 100644
|
|
|
9aacf9 |
--- a/src/main.c
|
|
|
9aacf9 |
+++ b/src/main.c
|
|
|
9aacf9 |
@@ -547,7 +547,7 @@ cscope: Could not create private temp dir %s\n",
|
|
|
9aacf9 |
/* put it in the home directory if the database may not be
|
|
|
9aacf9 |
* up-to-date or doesn't exist in the relative directory,
|
|
|
9aacf9 |
* so a database in the current directory will be
|
|
|
9aacf9 |
- * used instead of failing to open a non-existant database in
|
|
|
9aacf9 |
+ * used instead of failing to open a non-existing database in
|
|
|
9aacf9 |
* the home directory
|
|
|
9aacf9 |
*/
|
|
|
9aacf9 |
snprintf(path, sizeof(path), "%s/%s", home, reffile);
|
|
|
9aacf9 |
@@ -884,7 +884,7 @@ cscope: cannot read source file name from file %s\n",
|
|
|
9aacf9 |
break;
|
|
|
9aacf9 |
#endif
|
|
|
9aacf9 |
}
|
|
|
9aacf9 |
- /* execute the commmand, updating the display if necessary */
|
|
|
9aacf9 |
+ /* execute the command, updating the display if necessary */
|
|
|
9aacf9 |
if (command(c) == YES) {
|
|
|
9aacf9 |
display();
|
|
|
9aacf9 |
}
|
|
|
9aacf9 |
diff --git a/src/mouse.c b/src/mouse.c
|
|
|
9aacf9 |
index ea75b37..4f55400 100644
|
|
|
9aacf9 |
--- a/src/mouse.c
|
|
|
9aacf9 |
+++ b/src/mouse.c
|
|
|
9aacf9 |
@@ -94,7 +94,7 @@ mouseinit(void)
|
|
|
9aacf9 |
emacsviterm = YES;
|
|
|
9aacf9 |
mouse = YES;
|
|
|
9aacf9 |
}
|
|
|
9aacf9 |
- /* the MOUSE enviroment variable is for 5620 terminal programs that have
|
|
|
9aacf9 |
+ /* the MOUSE environment variable is for 5620 terminal programs that have
|
|
|
9aacf9 |
mouse support but the TERM environment variable is the same as a
|
|
|
9aacf9 |
terminal without a mouse, such as myx */
|
|
|
9aacf9 |
else if (strcmp(mygetenv("MOUSE", ""), "myx") == 0) {
|
|
|
9aacf9 |
diff --git a/src/snprintf.c b/src/snprintf.c
|
|
|
9aacf9 |
index 3981151..5cb0afe 100644
|
|
|
9aacf9 |
--- a/src/snprintf.c
|
|
|
9aacf9 |
+++ b/src/snprintf.c
|
|
|
9aacf9 |
@@ -1299,7 +1299,7 @@ again:
|
|
|
9aacf9 |
* C99 says: "If the `0' and `-' flags both appear, the `0' flag is
|
|
|
9aacf9 |
* ignored." (7.19.6.1, 6)
|
|
|
9aacf9 |
*/
|
|
|
9aacf9 |
- if (flags & PRINT_F_MINUS) /* Left justifty. */
|
|
|
9aacf9 |
+ if (flags & PRINT_F_MINUS) /* Left justify. */
|
|
|
9aacf9 |
padlen = -padlen;
|
|
|
9aacf9 |
else if (flags & PRINT_F_ZERO && padlen > 0) {
|
|
|
9aacf9 |
if (sign != 0) { /* Sign. */
|
|
|
9aacf9 |
--
|
|
|
9aacf9 |
2.37.3
|
|
|
9aacf9 |
|