Thomas Munro <thomas.munro@gmail.com> writes:
> On Mon, Jul 1, 2024 at 2:06 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Yeah. I'd do pg_regex_t in a minute except that it'd break existing
>> extensions using our facilities. However, your mention of macrology
>> stirred an idea: could we have our regex/regex.h intentionally
>> #include the system regex.h and then do
>> #define regex_t pg_regex_t
>> ?
> Good idea. Here's an attempt at that.
I think it might be cleaner to put the new #include and macro hacking
into regcustom.h, to show that it's our own hack and not part of the
"official" Spencer code. OTOH, we do have to touch regex.h anyway
to change the #include guards, and it's not like there are not any
other PG-isms in there. So I'm not 100% sold that that way would
be better --- what do you think?
regards, tom lane