diff options
| author | cremno <[email protected]> | 2014-06-05 20:27:17 +0200 |
|---|---|---|
| committer | cremno <[email protected]> | 2014-06-05 20:27:17 +0200 |
| commit | f9f864d4dd7f3f4213cabe5f8a4e427a03120461 (patch) | |
| tree | e9c7310e394321b51875000bd569d8f0d20de9b9 /src/parse.y | |
| parent | 69da21bcb4f022b0bcd2f4b08e6ffcb8ce1ebab7 (diff) | |
| download | mruby-f9f864d4dd7f3f4213cabe5f8a4e427a03120461.tar.gz mruby-f9f864d4dd7f3f4213cabe5f8a4e427a03120461.zip | |
don't (re-)define `ascii_isspace` and `isascii`
`ISSPACE` and `ISASCII` can be used instead.
Diffstat (limited to 'src/parse.y')
| -rw-r--r-- | src/parse.y | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/parse.y b/src/parse.y index 011b77cac..1af6e7833 100644 --- a/src/parse.y +++ b/src/parse.y @@ -42,11 +42,7 @@ static void yywarning(parser_state *p, const char *s); static void backref_error(parser_state *p, node *n); static void tokadd(parser_state *p, int32_t c); -#ifndef isascii -#define isascii(c) (((c) & ~0x7f) == 0) -#endif - -#define identchar(c) (isalnum(c) || (c) == '_' || !isascii(c)) +#define identchar(c) (isalnum(c) || (c) == '_' || !ISASCII(c)) typedef unsigned int stack_type; |
