Skip to content

Commit

Permalink
fix a spelling error in the Warning function invocation of lex.c
Browse files Browse the repository at this point in the history
fix some spelling errors in the comments of lex.c & input.h
  • Loading branch information
cswef committed Dec 20, 2016
1 parent 401d9b1 commit 10d2ddd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ucc/ucl/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ typedef struct coord
int line; // the line number in the original *.i
int col; // column
} *Coord;
// information abount input file
// information about input file
struct input
{
char *filename;
Expand Down
4 changes: 2 additions & 2 deletions ucc/ucl/lex.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ static int ScanCharLiteral(void)
CURSOR++;
if (count > 0)
{
Warning(&TokenCoord, "Two many characters");
Warning(&TokenCoord, "Too many characters");
}

end_char:
Expand Down Expand Up @@ -788,7 +788,7 @@ static int ScanIdentifier(void)
return ScanStringLiteral(); // L"wide string"
}
}
// lettter(letter|digit)*
// letter(letter|digit)*
CURSOR++;
while (IsLetterOrDigit(*CURSOR))
{
Expand Down

0 comments on commit 10d2ddd

Please sign in to comment.