"Darko Prenosil" <Darko(dot)Prenosil(at)finteh(dot)hr> writes:
> is it safe to cast "const char*" to "pg_wchar*"
No. They're not the same kind of animal at all.
You may want to look at the interface code in utils/adt/regexp.c.
regards, tom lane
PS: it would be nicer to see your work as a patch diff, not as a pile
of replacement files. We are not going to drop in replacement files,
since that risks losing other people's concurrent work.