Listview ctrl

Alexandre Julliard julliard at winehq.com
Tue Jan 8 16:50:20 CST 2002


"Dimitrie O. Paun" <dimi at 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.

-- 
Alexandre Julliard
julliard at winehq.com




More information about the wine-devel mailing list