From c2fae24fa3d1678fcd7fcf81c3ec035962f2cebd Mon Sep 17 00:00:00 2001 From: polluks Date: Tue, 22 Aug 2023 13:06:31 +0200 Subject: [PATCH] Fixed typos --- src/c99-flex.skl | 2 +- src/ccl.c | 2 +- src/flexdef.h | 2 +- src/go-flex.skl | 2 +- src/main.c | 2 +- src/misc.c | 2 +- src/tables.c | 4 ++-- src/tblcmp.c | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/c99-flex.skl b/src/c99-flex.skl index ca712dd13..b20dd9615 100644 --- a/src/c99-flex.skl +++ b/src/c99-flex.skl @@ -221,7 +221,7 @@ m4_ifdef( [[M4_YY_ALWAYS_INTERACTIVE]], , #include #include #include -#include /* requred for isatty() */ +#include /* required for isatty() */ #if defined(__GNUC__) && __GNUC__ >= 3 #define yynoreturn __attribute__((__noreturn__)) diff --git a/src/ccl.c b/src/ccl.c index 8df31254b..71bd7c04d 100644 --- a/src/ccl.c +++ b/src/ccl.c @@ -135,7 +135,7 @@ ccl_set_diff (int a, int b) d = cclinit(); /* In order to handle negation, we spin through all possible chars, - * addding each char in a that is not in b. + * adding each char in a that is not in b. * (This could be O(n^2), but n is small and bounded.) */ for ( ch = 0; ch < ctrl.csize; ++ch ) diff --git a/src/flexdef.h b/src/flexdef.h index ae5590e7d..2bdc76f88 100644 --- a/src/flexdef.h +++ b/src/flexdef.h @@ -918,7 +918,7 @@ extern void mark_defs1(void); /* Mark the current position in the action array as the end of the prolog. */ extern void mark_prolog(void); -/* Generate a data statment for a two-dimensional array. */ +/* Generate a data statement for a two-dimensional array. */ extern void mk2data(int); extern void mkdata(int); /* generate a data statement */ diff --git a/src/go-flex.skl b/src/go-flex.skl index e23194272..da1c45e0c 100644 --- a/src/go-flex.skl +++ b/src/go-flex.skl @@ -153,7 +153,7 @@ m4_ifdef([[M4_YY_ALWAYS_INTERACTIVE]], , #include #include #include -#include /* requred for isatty() */ +#include /* required for isatty() */ #if defined(__GNUC__) && __GNUC__ >= 3 #define yynoreturn __attribute__((__noreturn__)) diff --git a/src/main.c b/src/main.c index eb2c09fd6..f3c759966 100644 --- a/src/main.c +++ b/src/main.c @@ -1294,7 +1294,7 @@ void readin (void) if (userdef_buf.elts) outn ((char *) (userdef_buf.elts)); - /* If the user explicitly requested posix compatibility by specifing the + /* If the user explicitly requested posix compatibility by specifying the * posix-compat option, then we check for conflicting options. However, if * the POSIXLY_CORRECT variable is set, then we quietly make flex as * posix-compatible as possible. This is the recommended behavior diff --git a/src/misc.c b/src/misc.c index 9b434c8c8..0d4a65f7b 100644 --- a/src/misc.c +++ b/src/misc.c @@ -474,7 +474,7 @@ unsigned char myesc (unsigned char array[]) } -/* out - various flavors of outputing a (possibly formatted) string for the +/* out - various flavors of outputting a (possibly formatted) string for the * generated scanner, keeping track of the line count. */ diff --git a/src/tables.c b/src/tables.c index 182ab6379..8b9770d04 100644 --- a/src/tables.c +++ b/src/tables.c @@ -160,12 +160,12 @@ int yytbl_hdr_fwrite (struct yytbl_writer *wr, const struct yytbl_hdr *th) sz = (int) strlen (th->th_version) + 1; if ((rv = yytbl_writen (wr, th->th_version, sz)) != sz) - flex_die (_("th_version writen failed")); + flex_die (_("th_version written failed")); bwritten += rv; sz = (int) strlen (th->th_name) + 1; if ((rv = yytbl_writen (wr, th->th_name, sz)) != sz) - flex_die (_("th_name writen failed")); + flex_die (_("th_name written failed")); bwritten += rv; /* add padding */ diff --git a/src/tblcmp.c b/src/tblcmp.c index cd61c800b..afaf22a0c 100644 --- a/src/tblcmp.c +++ b/src/tblcmp.c @@ -489,7 +489,7 @@ void mkdeftbl (void) * (i.e., jam entries) into the table. It is assumed that by linking to * "JAMSTATE" they will be taken care of. In any case, entries in "state" * marking transitions to "SAME_TRANS" are treated as though they will be - * taken care of by whereever "deflink" points. "totaltrans" is the total + * taken care of by wherever "deflink" points. "totaltrans" is the total * number of transitions out of the state. If it is below a certain threshold, * the tables are searched for an interior spot that will accommodate the * state array.