We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 054c7f6 commit 10153ebCopy full SHA for 10153eb
src/lexer.c
@@ -94,7 +94,7 @@ int macro_return_idx;
94
95
int is_whitespace(char c)
96
{
97
- return (c == ' ' || c == '\t');
+ return c == ' ' || c == '\t';
98
}
99
100
char peek_char(int offset);
@@ -107,7 +107,7 @@ int is_linebreak(char c)
107
108
int is_newline(char c)
109
110
- return (c == '\r' || c == '\n');
+ return c == '\r' || c == '\n';
111
112
113
/* is it alphabet, number or '_'? */
@@ -119,7 +119,7 @@ int is_alnum(char c)
119
120
int is_digit(char c)
121
122
- return (c >= '0' && c <= '9') ? 1 : 0;
+ return c >= '0' && c <= '9';
123
124
125
int is_hex(char c)
0 commit comments