Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a few spelling errors #1

Merged
merged 1 commit into from
Jun 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix a spelling error in the Warning function invocation of lex.c
fix some spelling errors in the comments of lex.c & input.h
  • Loading branch information
cswef committed Dec 20, 2016
commit 10d2dddfdcba00620f25309a3ceb6f36eb3a190a
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