Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
polluks authored and westes committed Aug 22, 2023
1 parent 541645a commit c2fae24
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/c99-flex.skl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ m4_ifdef( [[M4_YY_ALWAYS_INTERACTIVE]], ,
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include <unistd.h> /* requred for isatty() */
#include <unistd.h> /* required for isatty() */

#if defined(__GNUC__) && __GNUC__ >= 3
#define yynoreturn __attribute__((__noreturn__))
Expand Down
2 changes: 1 addition & 1 deletion src/ccl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
2 changes: 1 addition & 1 deletion src/flexdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion src/go-flex.skl
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ m4_ifdef([[M4_YY_ALWAYS_INTERACTIVE]], ,
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include <unistd.h> /* requred for isatty() */
#include <unistd.h> /* required for isatty() */

#if defined(__GNUC__) && __GNUC__ >= 3
#define yynoreturn __attribute__((__noreturn__))
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

Expand Down
4 changes: 2 additions & 2 deletions src/tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion src/tblcmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c2fae24

Please sign in to comment.