Blame SOURCES/cscope-a-docs-typo-fixes-in-man-page-and-comments.patch

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