Skip to content

Commit

Permalink
Move ISASCII defination to parse.y
Browse files Browse the repository at this point in the history
  • Loading branch information
S-H-GAMELINKS committed Jul 5, 2023
1 parent 6a871ba commit e241b59
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -6351,6 +6351,18 @@ ripper_dispatch_delayed_token(struct parser_params *p, enum yytokentype t)
#define dispatch_delayed_token(p, t) ripper_dispatch_delayed_token(p, t)
#endif /* RIPPER */

#ifdef ISASCII
#undef ISASCII

static inline int
parse_isascii(int c)
{
return '\0' <= c && c <= '\x7f';
}

#define ISASCII parse_isascii
#endif

static inline int
is_identchar(struct parser_params *p, const char *ptr, const char *MAYBE_UNUSED(ptr_end), rb_encoding *enc)
{
Expand Down

0 comments on commit e241b59

Please sign in to comment.