Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed Apr 27, 2024
1 parent ee50368 commit 8501932
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -7726,8 +7726,6 @@ append_error_message_to_str(struct parser_params *p, VALUE str, const char *file
rb_str_cat2(str, ": ");
}
rb_str_cat(str, PARSER_STRING_PTR(msg), PARSER_STRING_LEN(msg));
void ruby_debug_print_v(VALUE v);
ruby_debug_print_v(str);
}

static void
Expand Down
1 change: 1 addition & 0 deletions re.c
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,7 @@ rb_reg_prepare_enc(VALUE re, VALUE str, int warn)
"invalid byte sequence in %s",
rb_enc_name(rb_enc_get(str)));
}

rb_reg_check(re);
enc = rb_enc_get(str);
if (RREGEXP_PTR(re)->enc == enc) {
Expand Down
4 changes: 2 additions & 2 deletions rubyparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ typedef struct rb_parser_ary {
} rb_parser_ary_t;

typedef struct rb_parser_errors {
struct rb_parser_string *path;
rb_parser_ary_t *errors;
struct rb_parser_string *path;
rb_parser_ary_t *errors;
} rb_parser_errors_t;

/* Header part of AST Node */
Expand Down

0 comments on commit 8501932

Please sign in to comment.