Patch to unicode.h to avoid compiler warnings
Magnus Lundborg
magnus.lundborg.6955 at student.uu.se
Tue May 30 08:29:55 CDT 2006
This is patched against the 0.9.14 release.
Function declarations are added to avoid compiler warnings.
Before submitting more patches I want to make sure I'm doing them the
correct way. If I should do something differently please notify me.
/Magnus
-------------- next part --------------
2006-05-30 Magnus Lundborg <magnus.lundborg.6955 at student.uu.se>
* include/wine/unicode.h:
Added function declarations to avoid compiler warnings.
-------------- next part --------------
diff -urN wine-0.9.14/include/wine/unicode.h wine-0.9.14-dev/include/wine/unicode.h
--- wine-0.9.14/include/wine/unicode.h 2006-05-24 19:40:26.000000000 +0200
+++ wine-0.9.14-dev/include/wine/unicode.h 2006-05-30 14:54:22.000000000 +0200
@@ -95,6 +95,38 @@
extern int vsprintfW( WCHAR *str, const WCHAR *format, va_list valist );
extern int vsnprintfW( WCHAR *str, size_t len, const WCHAR *format, va_list valist );
+extern inline int wine_is_dbcs_leadbyte( const union cptable *table, unsigned char ch );
+extern inline WCHAR tolowerW( WCHAR ch );
+extern inline WCHAR toupperW( WCHAR ch );
+extern inline unsigned short get_char_typeW( WCHAR ch );
+extern inline int iscntrlW( WCHAR wc );
+extern inline int ispunctW( WCHAR wc );
+extern inline int isspaceW( WCHAR wc );
+extern inline int isdigitW( WCHAR wc );
+extern inline int isxdigitW( WCHAR wc );
+extern inline int islowerW( WCHAR wc );
+extern inline int isupperW( WCHAR wc );
+extern inline int isalnumW( WCHAR wc );
+extern inline int isalphaW( WCHAR wc );
+extern inline int isgraphW( WCHAR wc );
+extern inline int isprintW( WCHAR wc );
+extern inline unsigned int strlenW( const WCHAR *str );
+extern inline WCHAR *strcpyW( WCHAR *dst, const WCHAR *src );
+extern inline int strcmpW( const WCHAR *str1, const WCHAR *str2 );
+extern inline int strncmpW( const WCHAR *str1, const WCHAR *str2, int n );
+extern inline WCHAR *strcatW( WCHAR *dst, const WCHAR *src );
+extern inline WCHAR *strchrW( const WCHAR *str, WCHAR ch );
+extern inline WCHAR *strrchrW( const WCHAR *str, WCHAR ch );
+extern inline WCHAR *strpbrkW( const WCHAR *str, const WCHAR *accept );
+extern inline size_t strspnW( const WCHAR *str, const WCHAR *accept );
+extern inline size_t strcspnW( const WCHAR *str, const WCHAR *reject );
+extern inline WCHAR *strlwrW( WCHAR *str );
+extern inline WCHAR *struprW( WCHAR *str );
+extern inline WCHAR *memchrW( const WCHAR *ptr, WCHAR ch, size_t n );
+extern inline WCHAR *memrchrW( const WCHAR *ptr, WCHAR ch, size_t n );
+extern inline long int atolW( const WCHAR *str );
+extern inline int atoiW( const WCHAR *str );
+
extern inline int wine_is_dbcs_leadbyte( const union cptable *table, unsigned char ch )
{
return (table->info.char_size == 2) && (table->dbcs.cp2uni_leadbytes[ch]);
More information about the wine-patches
mailing list