Author: tfaber
Date: Fri Oct 19 05:55:45 2012
New Revision: 57577
URL:
http://svn.reactos.org/svn/reactos?rev=57577&view=rev
Log:
[WINE]
- Remove useless casts from unicode.h
CORE-6418 #resolve
Modified:
trunk/reactos/include/reactos/wine/unicode.h
Modified: trunk/reactos/include/reactos/wine/unicode.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/wine/unico…
==============================================================================
--- trunk/reactos/include/reactos/wine/unicode.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/wine/unicode.h [iso-8859-1] Fri Oct 19 05:55:45 2012
@@ -24,23 +24,23 @@
#define WINE_UNICODE_INLINE static inline
#endif
-#define memicmpW(s1,s2,n) _wcsnicmp((const wchar_t *)(s1),(const wchar_t *)(s2),(n))
-#define strlenW(s) wcslen((const wchar_t *)(s))
-#define strcpyW(d,s) wcscpy((wchar_t *)(d),(const wchar_t *)(s))
-#define strcatW(d,s) wcscat((wchar_t *)(d),(const wchar_t *)(s))
-#define strcspnW(d,s) wcscspn((wchar_t *)(d),(const wchar_t *)(s))
-#define strstrW(d,s) wcsstr((const wchar_t *)(d),(const wchar_t *)(s))
-#define strtolW(s,e,b) wcstol((const wchar_t *)(s),(wchar_t **)(e),(b))
-#define strchrW(s,c) wcschr((const wchar_t *)(s),(wchar_t)(c))
-#define strrchrW(s,c) wcsrchr((const wchar_t *)(s),(wchar_t)(c))
-#define strncmpW(s1,s2,n) wcsncmp((const wchar_t *)(s1),(const wchar_t *)(s2),(n))
-#define strncpyW(s1,s2,n) wcsncpy((wchar_t *)(s1),(const wchar_t *)(s2),(n))
-#define strcmpW(s1,s2) wcscmp((const wchar_t *)(s1),(const wchar_t *)(s2))
-#define strcmpiW(s1,s2) _wcsicmp((const wchar_t *)(s1),(const wchar_t *)(s2))
-#define strncmpiW(s1,s2,n) _wcsnicmp((const wchar_t *)(s1),(const wchar_t *)(s2),(n))
-#define strtoulW(s1,s2,b) wcstoul((const wchar_t *)(s1),(wchar_t **)(s2),(b))
-#define strspnW(str, accept) wcsspn((const wchar_t *)(str), (const wchar_t *)(accept))
-#define strpbrkW(str, accept) wcspbrk((const wchar_t *)(str), (const wchar_t *)(accept))
+#define memicmpW(s1,s2,n) _wcsnicmp((s1),(s2),(n))
+#define strlenW(s) wcslen((s))
+#define strcpyW(d,s) wcscpy((d),(s))
+#define strcatW(d,s) wcscat((d),(s))
+#define strcspnW(d,s) wcscspn((d),(s))
+#define strstrW(d,s) wcsstr((d),(s))
+#define strtolW(s,e,b) wcstol((s),(e),(b))
+#define strchrW(s,c) wcschr((s),(c))
+#define strrchrW(s,c) wcsrchr((s),(c))
+#define strncmpW(s1,s2,n) wcsncmp((s1),(s2),(n))
+#define strncpyW(s1,s2,n) wcsncpy((s1),(s2),(n))
+#define strcmpW(s1,s2) wcscmp((s1),(s2))
+#define strcmpiW(s1,s2) _wcsicmp((s1),(s2))
+#define strncmpiW(s1,s2,n) _wcsnicmp((s1),(s2),(n))
+#define strtoulW(s1,s2,b) wcstoul((s1),(s2),(b))
+#define strspnW(str, accept) wcsspn((str),(accept))
+#define strpbrkW(str, accept) wcspbrk((str),(accept))
#define tolowerW(n) towlower((n))
#define toupperW(n) towupper((n))
#define islowerW(n) iswlower((n))
@@ -51,10 +51,10 @@
#define isxdigitW(n) iswxdigit((n))
#define isspaceW(n) iswspace((n))
#define iscntrlW(n) iswcntrl((n))
-#define atoiW(s) _wtoi((const wchar_t *)(s))
-#define atolW(s) _wtol((const wchar_t *)(s))
-#define strlwrW(s) _wcslwr((wchar_t *)(s))
-#define struprW(s) _wcsupr((wchar_t *)(s))
+#define atoiW(s) _wtoi((s))
+#define atolW(s) _wtol((s))
+#define strlwrW(s) _wcslwr((s))
+#define struprW(s) _wcsupr((s))
#define sprintfW swprintf
#define vsprintfW vswprintf
#define snprintfW _snwprintf