summaryrefslogtreecommitdiffstats
path: root/usr.bin/xlint
diff options
context:
space:
mode:
authoruqs <uqs@FreeBSD.org>2011-12-30 11:02:40 +0000
committeruqs <uqs@FreeBSD.org>2011-12-30 11:02:40 +0000
commit9953595f973c461c2729e5a7cde9380a3d3d2c9a (patch)
treed145ece02284bd86561f373fcb369e260154153b /usr.bin/xlint
parentf4753a04d4771c2013dc576b6455d28c5e64e93e (diff)
downloadFreeBSD-src-9953595f973c461c2729e5a7cde9380a3d3d2c9a.zip
FreeBSD-src-9953595f973c461c2729e5a7cde9380a3d3d2c9a.tar.gz
Spelling fixes for usr.bin/
Diffstat (limited to 'usr.bin/xlint')
-rw-r--r--usr.bin/xlint/lint1/decl.c12
-rw-r--r--usr.bin/xlint/lint1/emit1.c2
-rw-r--r--usr.bin/xlint/lint1/func.c14
-rw-r--r--usr.bin/xlint/lint1/mem1.c2
-rw-r--r--usr.bin/xlint/lint2/chk.c12
-rw-r--r--usr.bin/xlint/lint2/read.c2
-rw-r--r--usr.bin/xlint/xlint/xlint.c2
7 files changed, 23 insertions, 23 deletions
diff --git a/usr.bin/xlint/lint1/decl.c b/usr.bin/xlint/lint1/decl.c
index 06a412c..e62882f 100644
--- a/usr.bin/xlint/lint1/decl.c
+++ b/usr.bin/xlint/lint1/decl.c
@@ -308,7 +308,7 @@ addtype(type_t *tp)
/* now it can be only a combination of arithmetic types and void */
if (t == SIGNED || t == UNSIGN) {
- /* remeber specifiers "signed" and "unsigned" in dcs->d_smod */
+ /* remember specifiers "signed" and "unsigned" in dcs->d_smod */
if (dcs->d_smod != NOTSPEC)
/*
* more than one "signed" and/or "unsigned"; print
@@ -545,7 +545,7 @@ popdecl(void)
/*
* casts and sizeof
* Append all symbols declared in the abstract declaration
- * to the list of symbols declared in the surounding decl.
+ * to the list of symbols declared in the surrounding decl.
* or block.
* XXX I'm not sure whether they should be removed from the
* symbol table now or later.
@@ -2580,8 +2580,8 @@ ledecl(sym_t *dsym)
}
/*
- * Print an error or a warning if the symbol cant be initialized due
- * to type/storage class. Returnvalue is 1 if an error has been
+ * Print an error or a warning if the symbol can't be initialized due
+ * to type/storage class. Return value is 1 if an error has been
* detected.
*/
static int
@@ -2613,7 +2613,7 @@ chkinit(sym_t *sym)
}
/*
- * Create a symbole for an abstract declaration.
+ * Create a symbol for an abstract declaration.
*/
sym_t *
aname(void)
@@ -2895,7 +2895,7 @@ chktusg(sym_t *sym)
if (!incompl(sym->s_type))
return;
- /* complain alwasy about incomplet tags declared inside blocks */
+ /* complain always about incomplete tags declared inside blocks */
if (!zflag || dcs->d_ctx != EXTERN)
return;
diff --git a/usr.bin/xlint/lint1/emit1.c b/usr.bin/xlint/lint1/emit1.c
index e62549c..762945f 100644
--- a/usr.bin/xlint/lint1/emit1.c
+++ b/usr.bin/xlint/lint1/emit1.c
@@ -81,7 +81,7 @@ static void outfstrg(strg_t *);
* 2 n typename only type name
*
* spaces are only for better readability
- * additionaly it is possible to prepend the characters 'c' (for const)
+ * additionally it is possible to prepend the characters 'c' (for const)
* and 'v' (for volatile)
*/
void
diff --git a/usr.bin/xlint/lint1/func.c b/usr.bin/xlint/lint1/func.c
index 68ade02..f34baa1 100644
--- a/usr.bin/xlint/lint1/func.c
+++ b/usr.bin/xlint/lint1/func.c
@@ -59,15 +59,15 @@ int reached = 1;
int rchflg;
/*
- * In conjunction with reached ontrols printing of "fallthrough on ..."
+ * In conjunction with reached controls printing of "fallthrough on ..."
* warnings.
* Reset by each statement and set by FALLTHROUGH, switch (switch1())
* and case (label()).
*
* Control statements if, for, while and switch do not reset ftflg because
- * this must be done by the controled statement. At least for if this is
+ * this must be done by the controlled statement. At least for if this is
* important because ** FALLTHROUGH ** after "if (expr) stmnt" is evaluated
- * befor the following token, wich causes reduction of above, is read.
+ * before the following token, which causes reduction of above, is read.
* This means that ** FALLTHROUGH ** after "if ..." would always be ignored.
*/
int ftflg;
@@ -107,13 +107,13 @@ pos_t prflpos;
pos_t scflpos;
/*
- * Are both plibflg and llibflg set, prototypes are writen as function
+ * Are both plibflg and llibflg set, prototypes are written as function
* definitions to the output file.
*/
int plibflg;
/*
- * Nonzero means that no warnings about constands in conditional
+ * Nonzero means that no warnings about constants in conditional
* context are printed.
*/
int ccflg;
@@ -323,7 +323,7 @@ funcdef(sym_t *fsym)
if (fsym->s_osdef && !fsym->s_type->t_proto) {
if (sflag && hflag && strcmp(fsym->s_name, "main") != 0)
- /* function definition is not a prototyp */
+ /* function definition is not a prototype */
warning(286);
}
@@ -353,7 +353,7 @@ funcend(void)
}
/*
- * This warning is printed only if the return value was implizitly
+ * This warning is printed only if the return value was implicitly
* declared to be int. Otherwise the wrong return statement
* has already printed a warning.
*/
diff --git a/usr.bin/xlint/lint1/mem1.c b/usr.bin/xlint/lint1/mem1.c
index 735115c..3edc6db 100644
--- a/usr.bin/xlint/lint1/mem1.c
+++ b/usr.bin/xlint/lint1/mem1.c
@@ -133,7 +133,7 @@ getfnid(const char *s)
/*
* Memory for declarations and other things which must be available
* until the end of a block (or the end of the translation unit)
- * are assoziated with the level (mblklev) of the block (or wiht 0).
+ * are associated with the level (mblklev) of the block (or with 0).
* Because these memory is allocated in large blocks associated with
* a given level it can be freed easily at the end of a block.
*/
diff --git a/usr.bin/xlint/lint2/chk.c b/usr.bin/xlint/lint2/chk.c
index ddb9df6..4062246 100644
--- a/usr.bin/xlint/lint2/chk.c
+++ b/usr.bin/xlint/lint2/chk.c
@@ -447,11 +447,11 @@ chkau(hte_t *hte, int n, sym_t *def, sym_t *decl, pos_t *pos1p,
char *pos1;
/*
- * If a function definition is available (def != NULL), we compair the
+ * If a function definition is available (def != NULL), we compare the
* function call (call) with the definition. Otherwise, if a function
* definition is available and it is not an old style definition
- * (decl != NULL && TP(decl->s_type)->t_proto), we compair the call
- * with this declaration. Otherwise we compair it with the first
+ * (decl != NULL && TP(decl->s_type)->t_proto), we compare the call
+ * with this declaration. Otherwise we compare it with the first
* call we have found (call1).
*/
@@ -474,7 +474,7 @@ chkau(hte_t *hte, int n, sym_t *def, sym_t *decl, pos_t *pos1p,
* of an argument does not match exactly the expected type. The
* result are lots of warnings which are really not necessary.
* We print a warning only if
- * (0) at least one type is not an interger type and types differ
+ * (0) at least one type is not an integer type and types differ
* (1) hflag is set and types differ
* (2) types differ, except in signedness
* If the argument is an integer constant whose msb is not set,
@@ -482,7 +482,7 @@ chkau(hte_t *hte, int n, sym_t *def, sym_t *decl, pos_t *pos1p,
* int). This is with and without hflag.
* If the argument is an integer constant with value 0 and the
* expected argument is of type pointer and the width of the
- * interger constant is the same as the width of the pointer,
+ * integer constant is the same as the width of the pointer,
* no warning is printed.
*/
t1 = arg1->t_tspec;
@@ -490,7 +490,7 @@ chkau(hte_t *hte, int n, sym_t *def, sym_t *decl, pos_t *pos1p,
if (isityp(t1) && isityp(t2) && !arg1->t_isenum && !arg2->t_isenum) {
if (promote) {
/*
- * XXX Here is a problem: Althrough it is possible to
+ * XXX Here is a problem: Although it is possible to
* pass an int where a char/short it expected, there
* may be loss in significant digits. We should first
* check for const arguments if they can be converted
diff --git a/usr.bin/xlint/lint2/read.c b/usr.bin/xlint/lint2/read.c
index 9dfecfd..0ffd611 100644
--- a/usr.bin/xlint/lint2/read.c
+++ b/usr.bin/xlint/lint2/read.c
@@ -506,7 +506,7 @@ decldef(pos_t *posp, const char *cp)
}
/*
- * Read an u-record (emited by lint1 if a symbol was used).
+ * Read an u-record (emitted by lint1 if a symbol was used).
*/
static void
usedsym(pos_t *posp, const char *cp)
diff --git a/usr.bin/xlint/xlint/xlint.c b/usr.bin/xlint/xlint/xlint.c
index de3b527..7980d6c 100644
--- a/usr.bin/xlint/xlint/xlint.c
+++ b/usr.bin/xlint/xlint/xlint.c
@@ -80,7 +80,7 @@ static char *p2out;
/* flags always passed to cc(1) */
static char **cflags;
-/* flags for cc(1), controled by sflag/tflag */
+/* flags for cc(1), controlled by sflag/tflag */
static char **lcflags;
/* flags for lint1 */
OpenPOWER on IntegriCloud