Changeset 21916 for trunk/include/heapstring.h
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/include/heapstring.h
r10192 r21916 9 9 #include <odin.h> 10 10 11 #include <wine \unicode.h>11 #include <wine/unicode.h> 12 12 //SvL: strcase -> case insensitive! 13 13 #define strncasecmp lstrncmpiA … … 88 88 { \ 89 89 int len = MultiByteToWideChar( CP_ACP, 0, strA, -1, NULL, 0); \ 90 strW = (LPWSTR) _alloca( len*sizeof(WCHAR) );\90 strW = (LPWSTR)alloca( len*sizeof(WCHAR) ); \ 91 91 MultiByteToWideChar(CP_ACP, 0, strA, -1, strW, len); \ 92 92 } … … 97 97 { \ 98 98 int len = WideCharToMultiByte( CP_ACP, 0, strW, -1, NULL, 0, 0, NULL);\ 99 strA = (LPSTR) _alloca(len);\99 strA = (LPSTR)alloca(len); \ 100 100 WideCharToMultiByte(CP_ACP, 0, strW, -1, strA, len, 0, NULL ); \ 101 101 } … … 104 104 { \ 105 105 int iLength = lstrlenA(strSrc) + 1; \ 106 strDest = (LPSTR) _alloca( iLength );\106 strDest = (LPSTR)alloca( iLength ); \ 107 107 memcpy( strDest, strSrc, iLength); \ 108 108 } … … 111 111 { \ 112 112 int iLength = lstrlenW(strSrc) + 1; \ 113 strDest = (LPWSTR) _alloca( iLength * sizeof(WCHAR) );\113 strDest = (LPWSTR)alloca( iLength * sizeof(WCHAR) ); \ 114 114 memcpy( strDest, strSrc, iLength * sizeof(WCHAR) ); \ 115 115 }
Note:
See TracChangeset
for help on using the changeset viewer.