diff options
| author | Nathan Froyd <froydnj@gmail.com> | 2023-09-13 20:36:30 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-09-14 12:17:05 +0000 |
| commit | 990234015c447876dbfde0a6994259342f57add9 (patch) | |
| tree | 7716dad79d13d9faf4ff5fa1d79ee4741b38ab7d | |
| parent | a095740fed2a05a04806a1d3827bcaba02e45720 (diff) | |
[ruby/yarp] add some `const` qualifiers
https://github.com/ruby/yarp/commit/e807462c6d
| -rw-r--r-- | yarp/yarp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yarp/yarp.c b/yarp/yarp.c index f447ea3eda..716343b225 100644 --- a/yarp/yarp.c +++ b/yarp/yarp.c @@ -7773,13 +7773,13 @@ yp_xstring_node_create_and_unescape(yp_parser_t *parser, const yp_token_t *openi // Returns true if the current token is of the specified type. static inline bool -match_type_p(yp_parser_t *parser, yp_token_type_t type) { +match_type_p(const yp_parser_t *parser, yp_token_type_t type) { return parser->current.type == type; } // Returns true if the current token is of any of the specified types. static bool -match_any_type_p(yp_parser_t *parser, size_t count, ...) { +match_any_type_p(const yp_parser_t *parser, size_t count, ...) { va_list types; va_start(types, count); |
