https://bugs.exim.org/show_bug.cgi?id=1823
--- Comment #6 from Philip Hazel <[email protected]> --- (In reply to Gernot Gebhard from comment #4) > > But wouldn't it be nicer to simply return a pointer into > "*compile_error_texts" or "match_error_texts" respectively instead of > copying the string? It's done this way so that it's the same in the 8-bit, 16-bit, and 32-bit libraries. It returns a string in code units of the appropriate width. In PCRE1, a pointer is returned from pcre_compile(), as you suggest, because PCRE1 was written as an 8-bit library, but this means that users of the 16-bit and 32-bit libraries have to deal with 8-bit error messages, which is untidy. -- You are receiving this mail because: You are on the CC list for the bug. -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev
