Author: akhaldi Date: Sun Dec 22 18:10:41 2013 New Revision: 61340
URL: http://svn.reactos.org/svn/reactos?rev=61340&view=rev Log: [KERNEL32] * Add stdio.h inclusion to the main header. * Add some missing definitions to the internal header. * Remove inclusions and definitions that already exist in the main header. * Make the Wine synced source files use the main header. CORE-7716
Modified: trunk/reactos/dll/win32/kernel32/include/kernel32.h trunk/reactos/dll/win32/kernel32/k32.h trunk/reactos/dll/win32/kernel32/wine/actctx.c trunk/reactos/dll/win32/kernel32/wine/comm.c trunk/reactos/dll/win32/kernel32/wine/lzexpand.c trunk/reactos/dll/win32/kernel32/wine/muldiv.c trunk/reactos/dll/win32/kernel32/wine/profile.c trunk/reactos/dll/win32/kernel32/wine/res.c trunk/reactos/dll/win32/kernel32/winnls/string/casemap.c trunk/reactos/dll/win32/kernel32/winnls/string/fold.c trunk/reactos/dll/win32/kernel32/winnls/string/format_msg.c trunk/reactos/dll/win32/kernel32/winnls/string/lang.c trunk/reactos/dll/win32/kernel32/winnls/string/lcformat.c trunk/reactos/dll/win32/kernel32/winnls/string/nls.c trunk/reactos/dll/win32/kernel32/winnls/string/sortkey.c
Modified: trunk/reactos/dll/win32/kernel32/include/kernel32.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/include/... ============================================================================== --- trunk/reactos/dll/win32/kernel32/include/kernel32.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/include/kernel32.h [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -8,6 +8,9 @@ #define actctx 202 #define resource 203 #define kernel32session 204 +#define comm 205 +#define profile 206 +#define nls 207
#if DBG @@ -27,6 +30,7 @@
#define debugstr_a #define debugstr_w +#define debugstr_wn #define wine_dbgstr_w #define debugstr_guid
@@ -61,6 +65,9 @@ #define FIELD_OFFSET(type,fld) ((LONG)&(((type *)0)->fld)) #endif
+#define __TRY _SEH2_TRY +#define __EXCEPT_PAGE_FAULT _SEH2_EXCEPT(_SEH2_GetExceptionCode() == STATUS_ACCESS_VIOLATION) +#define __ENDTRY _SEH2_END
/* Undocumented CreateProcess flag */ #define STARTF_SHELLPRIVATE 0x400 @@ -159,7 +166,7 @@ #define HeapAlloc RtlAllocateHeap #define HeapReAlloc RtlReAllocateHeap #define HeapFree RtlFreeHeap -#define _lread (_readfun)_hread +#define _lread(a, b, c) (long)(_hread(a, b, (long)c))
PLARGE_INTEGER WINAPI
Modified: trunk/reactos/dll/win32/kernel32/k32.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/k32.h?re... ============================================================================== --- trunk/reactos/dll/win32/kernel32/k32.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/k32.h [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -14,6 +14,7 @@ /* PSDK/NDK Headers */ #define WIN32_NO_STATUS #include <stdarg.h> +#include <stdio.h> #include <windef.h> #include <winbase.h> #include <wingdi.h> @@ -49,16 +50,9 @@ #include <win/conmsg.h> #include <win/winmsg.h>
-/* C Headers */ -//#include <ctype.h> -//#include <limits.h> -//#include <stdio.h> -//#include <wchar.h> - /* DDK Driver Headers */ #include <ntddbeep.h> #include <mountmgr.h> -//#include <mountdev.h>
/* Internal Kernel32 Header */ #include "include/kernel32.h"
Modified: trunk/reactos/dll/win32/kernel32/wine/actctx.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/wine/act... ============================================================================== --- trunk/reactos/dll/win32/kernel32/wine/actctx.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/wine/actctx.c [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -13,6 +13,7 @@ /* synched with wine 1.1.26 */
#include <k32.h> + #define NDEBUG #include <debug.h> DEBUG_CHANNEL(actctx);
Modified: trunk/reactos/dll/win32/kernel32/wine/comm.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/wine/com... ============================================================================== --- trunk/reactos/dll/win32/kernel32/wine/comm.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/wine/comm.c [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -18,21 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
-//#include "config.h" -//#include "wine/port.h" - -#include <stdlib.h> -#include <stdarg.h> -#include <stdio.h> - -#define NONAMELESSUNION -#define NONAMELESSSTRUCT -#include "windef.h" -#include "winbase.h" -#include "winerror.h" -#include "winioctl.h" -#include "winternl.h" -//#include "ddk/ntddser.h" +#include <k32.h>
typedef LARGE_INTEGER PHYSICAL_ADDRESS, *PPHYSICAL_ADDRESS; #undef SERIAL_LSRMST_ESCAPE @@ -55,14 +41,9 @@ #undef IOCTL_SERIAL_LSRMST_INSERT #include <ntddser.h>
-#include "wine/unicode.h" - -#include "wine/debug.h" - -#define HeapAlloc RtlAllocateHeap -#define HeapReAlloc RtlReAllocateHeap -#define HeapFree RtlFreeHeap -WINE_DEFAULT_DEBUG_CHANNEL(comm); +#define NDEBUG +#include <debug.h> +DEBUG_CHANNEL(comm);
/*********************************************************************** * COMM_Parse* (Internal)
Modified: trunk/reactos/dll/win32/kernel32/wine/lzexpand.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/wine/lze... ============================================================================== --- trunk/reactos/dll/win32/kernel32/wine/lzexpand.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/wine/lzexpand.c [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -32,33 +32,19 @@ * o Check whether the return values are correct * */ -//#include <k32.h> + +#include <k32.h> + +#define NDEBUG +#include <debug.h> +DEBUG_CHANNEL(kernel32file); + #define HFILE_ERROR ((HFILE)-1)
-//#include "config.h" -#include <string.h> -#include <ctype.h> -#include <sys/types.h> -#include <stdarg.h> -#include <stdio.h> -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - -#include "windef.h" -#include "winbase.h" #include "lzexpand.h"
-#include "wine/unicode.h" -#include "wine/debug.h" -#include "winternl.h" -#define HeapAlloc RtlAllocateHeap -#define HeapReAlloc RtlReAllocateHeap -#define HeapFree RtlFreeHeap -#define _lread(a, b, c) (long)(_hread(a, b, (long)c)) #define _lwrite(a, b, c) (long)(_hwrite(a, b, (long)c)) -WINE_DEFAULT_DEBUG_CHANNEL(file); - + /* The readahead length of the decompressor. Reading single bytes * using _lread() would be SLOW. */
Modified: trunk/reactos/dll/win32/kernel32/wine/muldiv.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/wine/mul... ============================================================================== --- trunk/reactos/dll/win32/kernel32/wine/muldiv.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/wine/muldiv.c [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -10,7 +10,6 @@ */
#include <k32.h> -
/*********************************************************************** * MulDiv (KERNEL32.@)
Modified: trunk/reactos/dll/win32/kernel32/wine/profile.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/wine/pro... ============================================================================== --- trunk/reactos/dll/win32/kernel32/wine/profile.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/wine/profile.c [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -19,25 +19,11 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
-//#include "config.h" -//#include "wine/port.h" - -#include <string.h> -#include <stdarg.h> - -#include "windef.h" -#include "winbase.h" -#include "winnls.h" -#include "winerror.h" -#include "winternl.h" -#include "wine/unicode.h" -#include "wine/library.h" -#include "wine/debug.h" - -#define HeapAlloc RtlAllocateHeap -#define HeapReAlloc RtlReAllocateHeap -#define HeapFree RtlFreeHeap -WINE_DEFAULT_DEBUG_CHANNEL(profile); +#include <k32.h> + +#define NDEBUG +#include <debug.h> +DEBUG_CHANNEL(profile);
static const char bom_utf8[] = {0xEF,0xBB,0xBF};
@@ -277,7 +263,7 @@ return isspaceW(c) || c == 0x1a; }
-static inline ENCODING PROFILE_DetectTextEncoding(const void * buffer, int * len) +static inline ENCODING PROFILE_DetectTextEncoding(void * buffer, int * len) { int flags = IS_TEXT_UNICODE_SIGNATURE | IS_TEXT_UNICODE_REVERSE_SIGNATURE | @@ -484,7 +470,7 @@ prev_key = key;
TRACE("New key: name=%s, value=%s\n", - debugstr_w(key->name), key->value ? debugstr_w(key->value) : "(none)"); + debugstr_w(key->name), key->value ? debugstr_w(key->value) : L"(none)"); } } if (szFile != pBuffer)
Modified: trunk/reactos/dll/win32/kernel32/wine/res.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/wine/res... ============================================================================== --- trunk/reactos/dll/win32/kernel32/wine/res.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/wine/res.c [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -20,30 +20,13 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
-//#include "config.h" -//#include "wine/port.h" - -#include <stdarg.h> - -#define NONAMELESSUNION -#define NONAMELESSSTRUCT -#include "ntstatus.h" -#define WIN32_NO_STATUS -#include "windef.h" -#include "winbase.h" -#include "winternl.h" -#include "wine/debug.h" -#include "wine/exception.h" -#include "wine/unicode.h" -#include "wine/list.h" - -#define HeapAlloc RtlAllocateHeap -#define HeapReAlloc RtlReAllocateHeap -#define HeapFree RtlFreeHeap -WINE_DEFAULT_DEBUG_CHANNEL(resource); - -/* we don't want to include winuser.h just for this */ -#define IS_INTRESOURCE(x) (((ULONG_PTR)(x) >> 16) == 0) +#include <k32.h> + +#include <wine/list.h> + +#define NDEBUG +#include <debug.h> +DEBUG_CHANNEL(resource);
/* retrieve the resource name to pass to the ntdll functions */ static NTSTATUS get_res_nameA( LPCSTR name, UNICODE_STRING *str ) @@ -94,7 +77,7 @@ NTSTATUS status; UNICODE_STRING nameW, typeW; LDR_RESOURCE_INFO info; - const IMAGE_RESOURCE_DATA_ENTRY *entry = NULL; + IMAGE_RESOURCE_DATA_ENTRY *entry = NULL;
nameW.Buffer = NULL; typeW.Buffer = NULL; @@ -128,7 +111,7 @@ NTSTATUS status; UNICODE_STRING nameW, typeW; LDR_RESOURCE_INFO info; - const IMAGE_RESOURCE_DATA_ENTRY *entry = NULL; + IMAGE_RESOURCE_DATA_ENTRY *entry = NULL;
nameW.Buffer = typeW.Buffer = NULL;
@@ -206,7 +189,7 @@ LPSTR type = NULL; DWORD len = 0, newlen; NTSTATUS status; - const IMAGE_RESOURCE_DIRECTORY *resdir; + IMAGE_RESOURCE_DIRECTORY *resdir; const IMAGE_RESOURCE_DIRECTORY_ENTRY *et; const IMAGE_RESOURCE_DIR_STRING_U *str;
@@ -222,9 +205,9 @@ et = (const IMAGE_RESOURCE_DIRECTORY_ENTRY *)(resdir + 1); for (i = 0; i < resdir->NumberOfNamedEntries+resdir->NumberOfIdEntries; i++) { - if (et[i].u1.s1.NameIsString) - { - str = (const IMAGE_RESOURCE_DIR_STRING_U *)((const BYTE *)resdir + et[i].u1.s1.NameOffset); + if (et[i].NameIsString) + { + str = (const IMAGE_RESOURCE_DIR_STRING_U *)((const BYTE *)resdir + et[i].NameOffset); newlen = WideCharToMultiByte( CP_ACP, 0, str->NameString, str->Length, NULL, 0, NULL, NULL); if (newlen + 1 > len) { @@ -238,7 +221,7 @@ } else { - ret = lpfun( hmod, UIntToPtr(et[i].u1.Id), lparam ); + ret = lpfun( hmod, UIntToPtr(et[i].Id), lparam ); } if (!ret) break; } @@ -256,7 +239,7 @@ BOOL ret = FALSE; LPWSTR type = NULL; NTSTATUS status; - const IMAGE_RESOURCE_DIRECTORY *resdir; + IMAGE_RESOURCE_DIRECTORY *resdir; const IMAGE_RESOURCE_DIRECTORY_ENTRY *et; const IMAGE_RESOURCE_DIR_STRING_U *str;
@@ -272,9 +255,9 @@ et = (const IMAGE_RESOURCE_DIRECTORY_ENTRY *)(resdir + 1); for (i = 0; i < resdir->NumberOfNamedEntries + resdir->NumberOfIdEntries; i++) { - if (et[i].u1.s1.NameIsString) - { - str = (const IMAGE_RESOURCE_DIR_STRING_U *)((const BYTE *)resdir + et[i].u1.s1.NameOffset); + if (et[i].NameIsString) + { + str = (const IMAGE_RESOURCE_DIR_STRING_U *)((const BYTE *)resdir + et[i].NameOffset); if (str->Length + 1 > len) { len = str->Length + 1; @@ -287,7 +270,7 @@ } else { - ret = lpfun( hmod, UIntToPtr(et[i].u1.Id), lparam ); + ret = lpfun( hmod, UIntToPtr(et[i].Id), lparam ); } if (!ret) break; } @@ -308,7 +291,7 @@ NTSTATUS status; UNICODE_STRING typeW; LDR_RESOURCE_INFO info; - const IMAGE_RESOURCE_DIRECTORY *basedir, *resdir; + IMAGE_RESOURCE_DIRECTORY *basedir, *resdir; const IMAGE_RESOURCE_DIRECTORY_ENTRY *et; const IMAGE_RESOURCE_DIR_STRING_U *str;
@@ -329,9 +312,9 @@ { for (i = 0; i < resdir->NumberOfNamedEntries+resdir->NumberOfIdEntries; i++) { - if (et[i].u1.s1.NameIsString) + if (et[i].NameIsString) { - str = (const IMAGE_RESOURCE_DIR_STRING_U *)((const BYTE *)basedir + et[i].u1.s1.NameOffset); + str = (const IMAGE_RESOURCE_DIR_STRING_U *)((const BYTE *)basedir + et[i].NameOffset); newlen = WideCharToMultiByte(CP_ACP, 0, str->NameString, str->Length, NULL, 0, NULL, NULL); if (newlen + 1 > len) { @@ -349,7 +332,7 @@ } else { - ret = lpfun( hmod, type, UIntToPtr(et[i].u1.Id), lparam ); + ret = lpfun( hmod, type, UIntToPtr(et[i].Id), lparam ); } if (!ret) break; } @@ -380,7 +363,7 @@ NTSTATUS status; UNICODE_STRING typeW; LDR_RESOURCE_INFO info; - const IMAGE_RESOURCE_DIRECTORY *basedir, *resdir; + IMAGE_RESOURCE_DIRECTORY *basedir, *resdir; const IMAGE_RESOURCE_DIRECTORY_ENTRY *et; const IMAGE_RESOURCE_DIR_STRING_U *str;
@@ -401,9 +384,9 @@ { for (i = 0; i < resdir->NumberOfNamedEntries+resdir->NumberOfIdEntries; i++) { - if (et[i].u1.s1.NameIsString) + if (et[i].NameIsString) { - str = (const IMAGE_RESOURCE_DIR_STRING_U *)((const BYTE *)basedir + et[i].u1.s1.NameOffset); + str = (const IMAGE_RESOURCE_DIR_STRING_U *)((const BYTE *)basedir + et[i].NameOffset); if (str->Length + 1 > len) { len = str->Length + 1; @@ -420,7 +403,7 @@ } else { - ret = lpfun( hmod, type, UIntToPtr(et[i].u1.Id), lparam ); + ret = lpfun( hmod, type, UIntToPtr(et[i].Id), lparam ); } if (!ret) break; } @@ -450,7 +433,7 @@ NTSTATUS status; UNICODE_STRING typeW, nameW; LDR_RESOURCE_INFO info; - const IMAGE_RESOURCE_DIRECTORY *basedir, *resdir; + IMAGE_RESOURCE_DIRECTORY *basedir, *resdir; const IMAGE_RESOURCE_DIRECTORY_ENTRY *et;
TRACE( "%p %s %s %p %lx\n", hmod, debugstr_a(type), debugstr_a(name), lpfun, lparam ); @@ -473,7 +456,7 @@ { for (i = 0; i < resdir->NumberOfNamedEntries + resdir->NumberOfIdEntries; i++) { - ret = lpfun( hmod, type, name, et[i].u1.Id, lparam ); + ret = lpfun( hmod, type, name, et[i].Id, lparam ); if (!ret) break; } } @@ -502,7 +485,7 @@ NTSTATUS status; UNICODE_STRING typeW, nameW; LDR_RESOURCE_INFO info; - const IMAGE_RESOURCE_DIRECTORY *basedir, *resdir; + IMAGE_RESOURCE_DIRECTORY *basedir, *resdir; const IMAGE_RESOURCE_DIRECTORY_ENTRY *et;
TRACE( "%p %s %s %p %lx\n", hmod, debugstr_w(type), debugstr_w(name), lpfun, lparam ); @@ -525,7 +508,7 @@ { for (i = 0; i < resdir->NumberOfNamedEntries + resdir->NumberOfIdEntries; i++) { - ret = lpfun( hmod, type, name, et[i].u1.Id, lparam ); + ret = lpfun( hmod, type, name, et[i].Id, lparam ); if (!ret) break; } } @@ -951,10 +934,10 @@ const IMAGE_RESOURCE_DIR_STRING_U* string; LPWSTR s;
- if (!entry->u1.s1.NameIsString) - return UIntToPtr(entry->u1.Id); - - string = (const IMAGE_RESOURCE_DIR_STRING_U*) (((const char *)root) + entry->u1.s1.NameOffset); + if (!entry->NameIsString) + return UIntToPtr(entry->Id); + + string = (const IMAGE_RESOURCE_DIR_STRING_U*) (((const char *)root) + entry->NameOffset); s = HeapAlloc(GetProcessHeap(), 0, (string->Length + 1)*sizeof (WCHAR) ); memcpy( s, string->NameString, (string->Length + 1)*sizeof (WCHAR) ); s[string->Length] = 0; @@ -983,7 +966,7 @@
Type = resource_dup_string( root, e1 );
- namedir = (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root + e1->u2.s2.OffsetToDirectory); + namedir = (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root + e1->OffsetToDirectory); for (j = 0; j < namedir->NumberOfNamedEntries + namedir->NumberOfIdEntries; j++) { LPWSTR Name; @@ -992,7 +975,7 @@
Name = resource_dup_string( root, e2 );
- langdir = (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root + e2->u2.s2.OffsetToDirectory); + langdir = (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root + e2->OffsetToDirectory); for (k = 0; k < langdir->NumberOfNamedEntries + langdir->NumberOfIdEntries; k++) { LANGID Lang; @@ -1001,9 +984,9 @@
e3 = (const IMAGE_RESOURCE_DIRECTORY_ENTRY*)(langdir + 1) + k;
- Lang = e3->u1.Id; - - data = (const IMAGE_RESOURCE_DATA_ENTRY *)((const char *)root + e3->u2.OffsetToData); + Lang = e3->Id; + + data = (const IMAGE_RESOURCE_DATA_ENTRY *)((const char *)root + e3->OffsetToData);
p = address_from_rva( base, mapping_size, data->OffsetToData, data->Size );
@@ -1238,8 +1221,8 @@ DWORD len;
root->NumberOfNamedEntries++; - e1->u1.s1.NameIsString = 1; - e1->u1.s1.NameOffset = si->strings_ofs; + e1->NameIsString = 1; + e1->NameOffset = si->strings_ofs;
strings = (WCHAR*) &base[si->strings_ofs]; len = lstrlenW( types->id ); @@ -1250,10 +1233,10 @@ else { root->NumberOfIdEntries++; - e1->u1.Id = LOWORD( types->id ); - } - e1->u2.s2.OffsetToDirectory = si->names_ofs; - e1->u2.s2.DataIsDirectory = TRUE; + e1->Id = LOWORD( types->id ); + } + e1->OffsetToDirectory = si->names_ofs; + e1->DataIsDirectory = TRUE; si->types_ofs += sizeof (IMAGE_RESOURCE_DIRECTORY_ENTRY);
namedir = (IMAGE_RESOURCE_DIRECTORY*) &base[si->names_ofs]; @@ -1274,8 +1257,8 @@ DWORD len;
namedir->NumberOfNamedEntries++; - e2->u1.s1.NameIsString = 1; - e2->u1.s1.NameOffset = si->strings_ofs; + e2->NameIsString = 1; + e2->NameOffset = si->strings_ofs;
strings = (WCHAR*) &base[si->strings_ofs]; len = lstrlenW( names->id ); @@ -1286,10 +1269,10 @@ else { namedir->NumberOfIdEntries++; - e2->u1.Id = LOWORD( names->id ); + e2->Id = LOWORD( names->id ); } - e2->u2.s2.OffsetToDirectory = si->langs_ofs; - e2->u2.s2.DataIsDirectory = TRUE; + e2->OffsetToDirectory = si->langs_ofs; + e2->DataIsDirectory = TRUE; si->names_ofs += sizeof (IMAGE_RESOURCE_DIRECTORY_ENTRY);
langdir = (IMAGE_RESOURCE_DIRECTORY*) &base[si->langs_ofs]; @@ -1306,8 +1289,8 @@ e3 = (IMAGE_RESOURCE_DIRECTORY_ENTRY*) &base[si->langs_ofs]; memset( e3, 0, sizeof *e3 ); langdir->NumberOfIdEntries++; - e3->u1.Id = LOWORD( data->lang ); - e3->u2.OffsetToData = si->data_entry_ofs; + e3->Id = LOWORD( data->lang ); + e3->OffsetToData = si->data_entry_ofs;
si->langs_ofs += sizeof (IMAGE_RESOURCE_DIRECTORY_ENTRY);
Modified: trunk/reactos/dll/win32/kernel32/winnls/string/casemap.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/winnls/s... ============================================================================== --- trunk/reactos/dll/win32/kernel32/winnls/string/casemap.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/winnls/string/casemap.c [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -1,7 +1,7 @@ /* Unicode case mappings */ /* Automatically generated; DO NOT EDIT!! */
-#include "wine/unicode.h" +#include <wine/unicode.h>
const WCHAR wine_casemap_lower[3802] = {
Modified: trunk/reactos/dll/win32/kernel32/winnls/string/fold.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/winnls/s... ============================================================================== --- trunk/reactos/dll/win32/kernel32/winnls/string/fold.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/winnls/string/fold.c [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -18,7 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
-#include "wine/unicode.h" +#include <wine/unicode.h>
static inline WCHAR to_unicode_digit( WCHAR ch ) {
Modified: trunk/reactos/dll/win32/kernel32/winnls/string/format_msg.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/winnls/s... ============================================================================== --- trunk/reactos/dll/win32/kernel32/winnls/string/format_msg.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/winnls/string/format_msg.c [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -19,27 +19,13 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
-#include <stdarg.h> -#include <stdio.h> -#include <string.h> - -#include "ntstatus.h" -#define WIN32_NO_STATUS -#include "windef.h" -#include "winbase.h" -#include "winerror.h" -#include "winternl.h" -#include "winuser.h" -#include "winnls.h" -#include "wine/unicode.h" -#include "wine/debug.h" +#include <k32.h> + +#define NDEBUG +#include <debug.h> +DEBUG_CHANNEL(resource);
extern HMODULE kernel32_handle; - -#define HeapAlloc RtlAllocateHeap -#define HeapReAlloc RtlReAllocateHeap -#define HeapFree RtlFreeHeap -WINE_DEFAULT_DEBUG_CHANNEL(resource);
struct format_args { @@ -77,7 +63,7 @@ */ static LPWSTR load_message( HMODULE module, UINT id, WORD lang ) { - const MESSAGE_RESOURCE_ENTRY *mre; + MESSAGE_RESOURCE_ENTRY *mre; WCHAR *buffer; NTSTATUS status;
Modified: trunk/reactos/dll/win32/kernel32/winnls/string/lang.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/winnls/s... ============================================================================== --- trunk/reactos/dll/win32/kernel32/winnls/string/lang.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/winnls/string/lang.c [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -21,39 +21,18 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
-//#include "config.h" -//#include "wine/port.h" - -#include <assert.h> -#include <locale.h> -#include <string.h> -#include <stdarg.h> -#include <stdio.h> -#include <ctype.h> -#include <stdlib.h> - -#include "ntstatus.h" -#define WIN32_NO_STATUS -#include "windef.h" -#include "winbase.h" -#include "winuser.h" /* for RT_STRINGW */ -#include "winternl.h" -#include "wine/unicode.h" -#include "winnls.h" -#include "winerror.h" -#include "winver.h" -#include "wine/debug.h" +#include <k32.h> + +#define NDEBUG +#include <debug.h> +DEBUG_CHANNEL(nls);
#include "lcformat_private.h" + #define REG_SZ 1 extern int wine_fold_string(int flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen); extern int wine_get_sortkey(int flags, const WCHAR *src, int srclen, char *dst, int dstlen); extern int wine_compare_string(int flags, const WCHAR *str1, int len1, const WCHAR *str2, int len2); - -#define HeapAlloc RtlAllocateHeap -#define HeapReAlloc RtlReAllocateHeap -#define HeapFree RtlFreeHeap -WINE_DEFAULT_DEBUG_CHANNEL(nls);
extern HMODULE kernel32_handle;
@@ -997,7 +976,7 @@
if (!(hkey = create_registry_key())) return FALSE; RtlInitUnicodeString( &valueW, value ); - status = NtSetValueKey( hkey, &valueW, 0, REG_SZ, data, (strlenW(data)+1)*sizeof(WCHAR) ); + status = NtSetValueKey( hkey, &valueW, 0, REG_SZ, (PVOID)data, (strlenW(data)+1)*sizeof(WCHAR) );
if (lctype == LOCALE_SSHORTDATE || lctype == LOCALE_SLONGDATE) {
Modified: trunk/reactos/dll/win32/kernel32/winnls/string/lcformat.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/winnls/s... ============================================================================== --- trunk/reactos/dll/win32/kernel32/winnls/string/lcformat.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/winnls/string/lcformat.c [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -22,29 +22,15 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
-//#include "config.h" -//#include "wine/port.h" - -#include <string.h> -#include <stdarg.h> -#include <stdio.h> -#include <stdlib.h> - -#include "windef.h" -#include "winbase.h" -#include "wine/unicode.h" -#include "wine/debug.h" -#include "winternl.h" +#include <k32.h> + +#define NDEBUG +#include <debug.h> +DEBUG_CHANNEL(nls);
#define CRITICAL_SECTION RTL_CRITICAL_SECTION #define CRITICAL_SECTION_DEBUG RTL_CRITICAL_SECTION_DEBUG #define CALINFO_MAX_YEAR 2029 - -#define HeapAlloc RtlAllocateHeap -#define HeapReAlloc RtlReAllocateHeap -#define HeapFree RtlFreeHeap - -WINE_DEFAULT_DEBUG_CHANNEL(nls);
#define DATE_DATEVARSONLY 0x0100 /* only date stuff: yMdg */ #define TIME_TIMEVARSONLY 0x0200 /* only time stuff: hHmst */
Modified: trunk/reactos/dll/win32/kernel32/winnls/string/nls.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/winnls/s... ============================================================================== --- trunk/reactos/dll/win32/kernel32/winnls/string/nls.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/winnls/string/nls.c [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -14,6 +14,7 @@ /* INCLUDES *******************************************************************/
#include <k32.h> + #define NDEBUG #include <debug.h>
Modified: trunk/reactos/dll/win32/kernel32/winnls/string/sortkey.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/winnls/s... ============================================================================== --- trunk/reactos/dll/win32/kernel32/winnls/string/sortkey.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/winnls/string/sortkey.c [iso-8859-1] Sun Dec 22 18:10:41 2013 @@ -17,7 +17,8 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include "wine/unicode.h" + +#include <wine/unicode.h>
#define get_char_typeW(x) iswctype((x) >> 8, (x) & 0xFF) extern int get_decomposition(WCHAR src, WCHAR *dst, unsigned int dstlen);