"Dimitrie O. Paun" dimi@cs.toronto.edu writes:
What would be wrong with:
LPSTR wine_strdupWtoA(LPCWSTR); LPWSTR wine_strdupAtoW(LPCSTR); void wine_strfreeA(LPSTR); void wine_strfreeW(LPWSTR) exported from, say, ntdll?
Besides, they can remain inlined (as they are now), so they don't really need to be exported from anywhere.
You can just as well put the inline functions directly into the C file, or in some dll private headers. The functions are only 3 lines long, it's no big deal to have a few duplicates. There is no reason to pollute the standard headers with that.
In many cases you could also use RtlCreateUnicodeStringFromAsciiz, which is an exported API and is probably more readable that MultiByteToWideChar etc.