mirror of
https://github.com/reactos/reactos.git
synced 2025-05-09 03:37:08 +00:00
- Change DbgPrint prototype back to Alex's fix. His change was correct and my commit was wrong.
- Respectively fix all occurences of DbgPrint()'s wrong prototypes throughout the tree - HACKHACK: Change KeNumberProcessors definition in "else" branch of NTDDI_VERSION #if. I'm not sure how to properly fix this and for now I marked this place. Probably NTDDI_VERSION should be set correctly in ntoskrnl and other modules which use this variable. svn path=/trunk/; revision=23506
This commit is contained in:
parent
afb2063fd3
commit
310cebde9f
18 changed files with 25 additions and 23 deletions
|
@ -870,7 +870,7 @@ LoadAndBootReactOS(PCSTR OperatingSystemName)
|
||||||
|
|
||||||
#undef DbgPrint
|
#undef DbgPrint
|
||||||
ULONG
|
ULONG
|
||||||
DbgPrint(char *Fmt, ...)
|
DbgPrint(const char *Fmt, ...)
|
||||||
{
|
{
|
||||||
UiMessageBox(Fmt);
|
UiMessageBox(Fmt);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -13,7 +13,7 @@ typedef struct
|
||||||
|
|
||||||
extern HINSTANCE hApplet;
|
extern HINSTANCE hApplet;
|
||||||
|
|
||||||
extern DWORD DbgPrint(PCHAR Fmt, ...);
|
extern DWORD DbgPrint(PCCH Fmt, ...);
|
||||||
|
|
||||||
#endif // __NCPA_H
|
#endif // __NCPA_H
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
extern HINSTANCE hDllInstance;
|
extern HINSTANCE hDllInstance;
|
||||||
|
|
||||||
ULONG DbgPrint(PCH Format,...);
|
ULONG DbgPrint(PCCH Format,...);
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
WINAPI
|
WINAPI
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
#include "mmdef.h"
|
#include "mmdef.h"
|
||||||
|
|
||||||
ULONG DbgPrint(PCH Format, ...);
|
ULONG DbgPrint(PCCH Format, ...);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#define SOUND_MAX_DEVICE_NAME 1024 // GUESSWORK
|
#define SOUND_MAX_DEVICE_NAME 1024 // GUESSWORK
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#define FN_PROGRESSA FN_PROGRESS
|
#define FN_PROGRESSA FN_PROGRESS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ULONG DbgPrint(PCH Format,...);
|
ULONG DbgPrint(PCCH Format,...);
|
||||||
|
|
||||||
extern HINSTANCE hDllInstance;
|
extern HINSTANCE hDllInstance;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#define MAX_PATH16 255
|
#define MAX_PATH16 255
|
||||||
#define MAX_MODULE_NAME 9
|
#define MAX_MODULE_NAME 9
|
||||||
|
|
||||||
ULONG DbgPrint(PCH Format,...);
|
ULONG DbgPrint(PCCH Format,...);
|
||||||
|
|
||||||
typedef struct _CONTEXT VDMCONTEXT;
|
typedef struct _CONTEXT VDMCONTEXT;
|
||||||
typedef VDMCONTEXT *LPVDMCONTEXT;
|
typedef VDMCONTEXT *LPVDMCONTEXT;
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#define FASTCALL __fastcall
|
#define FASTCALL __fastcall
|
||||||
#define DDKCDECLAPI __cdecl
|
#define DDKCDECLAPI __cdecl
|
||||||
|
|
||||||
ULONG DbgPrint(PCH Format,...);
|
ULONG DbgPrint(PCCH Format,...);
|
||||||
VOID DDKAPI DbgBreakPoint(VOID);
|
VOID DDKAPI DbgBreakPoint(VOID);
|
||||||
VOID DDKAPI WRITE_PORT_UCHAR(IN PUCHAR Port, IN UCHAR Value);
|
VOID DDKAPI WRITE_PORT_UCHAR(IN PUCHAR Port, IN UCHAR Value);
|
||||||
VOID DDKAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value);
|
VOID DDKAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value);
|
||||||
|
|
|
@ -402,7 +402,8 @@ extern volatile CCHAR NTSYSAPI KeNumberProcessors;
|
||||||
#if (NTDDI_VERSION >= NTDDI_WINXP)
|
#if (NTDDI_VERSION >= NTDDI_WINXP)
|
||||||
extern CCHAR NTSYSAPI KeNumberProcessors;
|
extern CCHAR NTSYSAPI KeNumberProcessors;
|
||||||
#else
|
#else
|
||||||
extern PCCHAR KeNumberProcessors;
|
//extern PCCHAR KeNumberProcessors;
|
||||||
|
extern NTSYSAPI CCHAR KeNumberProcessors; //FIXME: Note to Alex: I won't fix this atm, since I prefer to discuss this with you first.
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -10450,7 +10451,7 @@ DbgBreakPointWithStatus(
|
||||||
ULONG
|
ULONG
|
||||||
__cdecl
|
__cdecl
|
||||||
DbgPrint(
|
DbgPrint(
|
||||||
IN PCCHAR Format,
|
IN PCCH Format,
|
||||||
IN ...);
|
IN ...);
|
||||||
|
|
||||||
ULONG
|
ULONG
|
||||||
|
@ -10458,7 +10459,7 @@ __cdecl
|
||||||
DbgPrintEx(
|
DbgPrintEx(
|
||||||
IN ULONG ComponentId,
|
IN ULONG ComponentId,
|
||||||
IN ULONG Level,
|
IN ULONG Level,
|
||||||
IN PCCHAR Format,
|
IN PCCH Format,
|
||||||
IN ...);
|
IN ...);
|
||||||
|
|
||||||
NTOSAPI
|
NTOSAPI
|
||||||
|
|
|
@ -965,7 +965,8 @@ extern volatile CCHAR NTSYSAPI KeNumberProcessors;
|
||||||
#if (NTDDI_VERSION >= NTDDI_WINXP)
|
#if (NTDDI_VERSION >= NTDDI_WINXP)
|
||||||
extern CCHAR NTSYSAPI KeNumberProcessors;
|
extern CCHAR NTSYSAPI KeNumberProcessors;
|
||||||
#else
|
#else
|
||||||
extern PCCHAR KeNumberProcessors;
|
//extern PCCHAR KeNumberProcessors;
|
||||||
|
extern NTSYSAPI CCHAR KeNumberProcessors; //FIXME: Note to Alex: I won't fix this atm, since I prefer to discuss this with you first.
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
extern ULONG NTSYSAPI KiDmaIoCoherency;
|
extern ULONG NTSYSAPI KiDmaIoCoherency;
|
||||||
|
|
|
@ -2454,7 +2454,7 @@ RtlFreeRangeList(IN PRTL_RANGE_LIST RangeList);
|
||||||
ULONG
|
ULONG
|
||||||
__cdecl
|
__cdecl
|
||||||
DbgPrint(
|
DbgPrint(
|
||||||
IN PCCHAR Format,
|
IN PCCH Format,
|
||||||
IN ...
|
IN ...
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2464,7 +2464,7 @@ __cdecl
|
||||||
DbgPrintEx(
|
DbgPrintEx(
|
||||||
IN ULONG ComponentId,
|
IN ULONG ComponentId,
|
||||||
IN ULONG Level,
|
IN ULONG Level,
|
||||||
IN PCCHAR Format,
|
IN PCCH Format,
|
||||||
IN ...
|
IN ...
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ typedef wchar_t WCHAR;
|
||||||
typedef WCHAR *PWCHAR,*LPWCH,*PWCH,*NWPSTR,*LPWSTR,*PWSTR;
|
typedef WCHAR *PWCHAR,*LPWCH,*PWCH,*NWPSTR,*LPWSTR,*PWSTR;
|
||||||
typedef CONST WCHAR *LPCWCH,*PCWCH,*LPCWSTR,*PCWSTR;
|
typedef CONST WCHAR *LPCWCH,*PCWCH,*LPCWSTR,*PCWSTR;
|
||||||
typedef CHAR *PCHAR,*LPCH,*PCH,*NPSTR,*LPSTR,*PSTR;
|
typedef CHAR *PCHAR,*LPCH,*PCH,*NPSTR,*LPSTR,*PSTR;
|
||||||
typedef CONST CHAR *LPCCH,*PCSTR,*LPCSTR;
|
typedef CONST CHAR *LPCCH,*PCCH,*PCSTR,*LPCSTR;
|
||||||
#ifndef _TCHAR_DEFINED
|
#ifndef _TCHAR_DEFINED
|
||||||
#define _TCHAR_DEFINED
|
#define _TCHAR_DEFINED
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
ULONG
|
ULONG
|
||||||
__cdecl
|
__cdecl
|
||||||
DbgPrint(
|
DbgPrint(
|
||||||
IN PCCHAR Format,
|
IN PCCH Format,
|
||||||
IN ...
|
IN ...
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
# define _SEHSetJmp setjmp
|
# define _SEHSetJmp setjmp
|
||||||
# define _SEHJmpBuf_t jmp_buf
|
# define _SEHJmpBuf_t jmp_buf
|
||||||
#endif
|
#endif
|
||||||
unsigned long DbgPrint(PCCHAR Format,...);
|
unsigned long DbgPrint(const char * Format,...);
|
||||||
typedef struct __SEHFrame
|
typedef struct __SEHFrame
|
||||||
{
|
{
|
||||||
_SEHPortableFrame_t SEH_Header;
|
_SEHPortableFrame_t SEH_Header;
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#define inline __inline
|
#define inline __inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned long DbgPrint(char *Format,...);
|
unsigned long DbgPrint(const char *Format,...);
|
||||||
|
|
||||||
struct _GUID;
|
struct _GUID;
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
/* prototype for dbgprint */
|
/* prototype for dbgprint */
|
||||||
ULONG CDECL DbgPrint(IN PCH Format,IN ...);
|
ULONG CDECL DbgPrint(IN PCCH Format,IN ...);
|
||||||
|
|
||||||
/* debug level */
|
/* debug level */
|
||||||
extern int winetest_debug;
|
extern int winetest_debug;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#define sT "s"
|
#define sT "s"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned long DbgPrint(char *Format,...);
|
unsigned long DbgPrint(const char *Format,...);
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#define TRACE(...)
|
#define TRACE(...)
|
||||||
|
@ -83,7 +83,7 @@ unsigned long DbgPrint(char *Format,...);
|
||||||
|
|
||||||
|
|
||||||
/* ULONG CDECL DbgPrint(PCH Format, ...); */
|
/* ULONG CDECL DbgPrint(PCH Format, ...); */
|
||||||
ULONG DbgPrint(PCH Format,...);
|
ULONG DbgPrint(PCCH Format,...);
|
||||||
/* unsigned long DbgPrint(const char* Format, ...); */
|
/* unsigned long DbgPrint(const char* Format, ...); */
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -206,7 +206,7 @@ vDbgPrintEx(IN ULONG ComponentId,
|
||||||
*/
|
*/
|
||||||
ULONG
|
ULONG
|
||||||
__cdecl
|
__cdecl
|
||||||
DbgPrint(PCH Format,
|
DbgPrint(PCCH Format,
|
||||||
...)
|
...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
@ -229,7 +229,7 @@ ULONG
|
||||||
__cdecl
|
__cdecl
|
||||||
DbgPrintEx(IN ULONG ComponentId,
|
DbgPrintEx(IN ULONG ComponentId,
|
||||||
IN ULONG Level,
|
IN ULONG Level,
|
||||||
IN PCH Format,
|
IN PCCH Format,
|
||||||
...)
|
...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
|
@ -43,7 +43,7 @@ static const WCHAR szMachPowerPoliciesSubKey[] = { 'S', 'O', 'F', 'T', 'W', 'A',
|
||||||
|
|
||||||
static const WCHAR szTempPwrScheme[] = { '9', '9', 0 };
|
static const WCHAR szTempPwrScheme[] = { '9', '9', 0 };
|
||||||
|
|
||||||
ULONG DbgPrint(PCH X,...)
|
ULONG DbgPrint(PCCH X,...)
|
||||||
{
|
{
|
||||||
return (ULONG)NULL;
|
return (ULONG)NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue