summaryrefslogtreecommitdiff
path: root/prism/regexp.h
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-06-04 12:36:43 -0400
committerKevin Newton <[email protected]>2024-06-05 14:40:03 -0400
commit41f27346440eab0d80b8c50be8741e3344af9ed5 (patch)
treee3793ca493dac64e3725cef1b24d366da517bc04 /prism/regexp.h
parent65746055b4d2c16b68e559cde327889f91f0d516 (diff)
[ruby/prism] Change pm_regexp_parse to not return boolean
https://github.com/ruby/prism/commit/b03afbe857
Diffstat (limited to 'prism/regexp.h')
-rw-r--r--prism/regexp.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/prism/regexp.h b/prism/regexp.h
index d401d1e06a..f92952d54a 100644
--- a/prism/regexp.h
+++ b/prism/regexp.h
@@ -29,8 +29,7 @@ typedef void (*pm_regexp_name_callback_t)(const pm_string_t *name, void *data);
* @param size The size of the source code.
* @param name_callback The callback to call when a named capture group is found.
* @param name_data The data to pass to the name callback.
- * @return Whether or not the parsing was successful.
*/
-PRISM_EXPORTED_FUNCTION bool pm_regexp_parse(pm_parser_t *parser, const uint8_t *source, size_t size, pm_regexp_name_callback_t name_callback, void *name_data);
+PRISM_EXPORTED_FUNCTION void pm_regexp_parse(pm_parser_t *parser, const uint8_t *source, size_t size, pm_regexp_name_callback_t name_callback, void *name_data);
#endif