diff --git a/src/regex/lib_pcre2.cr b/src/regex/lib_pcre2.cr index f6234e30b3c1..f9e64492a322 100644 --- a/src/regex/lib_pcre2.cr +++ b/src/regex/lib_pcre2.cr @@ -249,13 +249,13 @@ lib LibPCRE2 type CompileContext = Void type MatchData = Void type GeneralContext = Void + type MatchContext = Void fun get_error_message = pcre2_get_error_message_8(errorcode : Int, buffer : UInt8*, bufflen : LibC::SizeT) : Int fun compile = pcre2_compile_8(pattern : UInt8*, length : LibC::SizeT, options : UInt32, errorcode : Int*, erroroffset : LibC::SizeT*, ccontext : CompileContext*) : Code* fun code_free = pcre2_code_free_8(code : Code*) : Void - type MatchContext = Void* fun match_context_create = pcre2_match_context_create_8(gcontext : Void*) : MatchContext* fun jit_compile = pcre2_jit_compile_8(code : Code*, options : UInt32) : Int @@ -273,7 +273,7 @@ lib LibPCRE2 fun match_data_create_from_pattern = pcre2_match_data_create_from_pattern_8(code : Code*, gcontext : GeneralContext*) : MatchData* fun match_data_free = pcre2_match_data_free_8(match_data : MatchData*) : Void - fun substring_nametable_scan = pcre2_substring_nametable_scan_8(code : Code*, name : UInt8*, first : UInt8*, last : UInt8*) : Int + fun substring_nametable_scan = pcre2_substring_nametable_scan_8(code : Code*, name : UInt8*, first : UInt8**, last : UInt8**) : Int fun get_ovector_pointer = pcre2_get_ovector_pointer_8(match_data : MatchData*) : LibC::SizeT* fun get_ovector_count = pcre2_get_ovector_count_8(match_data : MatchData*) : UInt32