mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 10:46:58 +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
|
||||
ULONG
|
||||
DbgPrint(char *Fmt, ...)
|
||||
DbgPrint(const char *Fmt, ...)
|
||||
{
|
||||
UiMessageBox(Fmt);
|
||||
return 0;
|
||||
|
|
|
@ -13,7 +13,7 @@ typedef struct
|
|||
|
||||
extern HINSTANCE hApplet;
|
||||
|
||||
extern DWORD DbgPrint(PCHAR Fmt, ...);
|
||||
extern DWORD DbgPrint(PCCH Fmt, ...);
|
||||
|
||||
#endif // __NCPA_H
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
extern HINSTANCE hDllInstance;
|
||||
|
||||
ULONG DbgPrint(PCH Format,...);
|
||||
ULONG DbgPrint(PCCH Format,...);
|
||||
|
||||
BOOL
|
||||
WINAPI
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include "mmdef.h"
|
||||
|
||||
ULONG DbgPrint(PCH Format, ...);
|
||||
ULONG DbgPrint(PCCH Format, ...);
|
||||
|
||||
/*
|
||||
#define SOUND_MAX_DEVICE_NAME 1024 // GUESSWORK
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#define FN_PROGRESSA FN_PROGRESS
|
||||
#endif
|
||||
|
||||
ULONG DbgPrint(PCH Format,...);
|
||||
ULONG DbgPrint(PCCH Format,...);
|
||||
|
||||
extern HINSTANCE hDllInstance;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#define MAX_PATH16 255
|
||||
#define MAX_MODULE_NAME 9
|
||||
|
||||
ULONG DbgPrint(PCH Format,...);
|
||||
ULONG DbgPrint(PCCH Format,...);
|
||||
|
||||
typedef struct _CONTEXT VDMCONTEXT;
|
||||
typedef VDMCONTEXT *LPVDMCONTEXT;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#define FASTCALL __fastcall
|
||||
#define DDKCDECLAPI __cdecl
|
||||
|
||||
ULONG DbgPrint(PCH Format,...);
|
||||
ULONG DbgPrint(PCCH Format,...);
|
||||
VOID DDKAPI DbgBreakPoint(VOID);
|
||||
VOID DDKAPI WRITE_PORT_UCHAR(IN PUCHAR Port, 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)
|
||||
extern CCHAR NTSYSAPI KeNumberProcessors;
|
||||
#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
|
||||
|
||||
|
@ -10450,7 +10451,7 @@ DbgBreakPointWithStatus(
|
|||
ULONG
|
||||
__cdecl
|
||||
DbgPrint(
|
||||
IN PCCHAR Format,
|
||||
IN PCCH Format,
|
||||
IN ...);
|
||||
|
||||
ULONG
|
||||
|
@ -10458,7 +10459,7 @@ __cdecl
|
|||
DbgPrintEx(
|
||||
IN ULONG ComponentId,
|
||||
IN ULONG Level,
|
||||
IN PCCHAR Format,
|
||||
IN PCCH Format,
|
||||
IN ...);
|
||||
|
||||
NTOSAPI
|
||||
|
|
|
@ -965,7 +965,8 @@ extern volatile CCHAR NTSYSAPI KeNumberProcessors;
|
|||
#if (NTDDI_VERSION >= NTDDI_WINXP)
|
||||
extern CCHAR NTSYSAPI KeNumberProcessors;
|
||||
#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
|
||||
extern ULONG NTSYSAPI KiDmaIoCoherency;
|
||||
|
|
|
@ -2454,7 +2454,7 @@ RtlFreeRangeList(IN PRTL_RANGE_LIST RangeList);
|
|||
ULONG
|
||||
__cdecl
|
||||
DbgPrint(
|
||||
IN PCCHAR Format,
|
||||
IN PCCH Format,
|
||||
IN ...
|
||||
);
|
||||
|
||||
|
@ -2464,7 +2464,7 @@ __cdecl
|
|||
DbgPrintEx(
|
||||
IN ULONG ComponentId,
|
||||
IN ULONG Level,
|
||||
IN PCCHAR Format,
|
||||
IN PCCH Format,
|
||||
IN ...
|
||||
);
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ typedef wchar_t WCHAR;
|
|||
typedef WCHAR *PWCHAR,*LPWCH,*PWCH,*NWPSTR,*LPWSTR,*PWSTR;
|
||||
typedef CONST WCHAR *LPCWCH,*PCWCH,*LPCWSTR,*PCWSTR;
|
||||
typedef CHAR *PCHAR,*LPCH,*PCH,*NPSTR,*LPSTR,*PSTR;
|
||||
typedef CONST CHAR *LPCCH,*PCSTR,*LPCSTR;
|
||||
typedef CONST CHAR *LPCCH,*PCCH,*PCSTR,*LPCSTR;
|
||||
#ifndef _TCHAR_DEFINED
|
||||
#define _TCHAR_DEFINED
|
||||
#ifdef UNICODE
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
ULONG
|
||||
__cdecl
|
||||
DbgPrint(
|
||||
IN PCCHAR Format,
|
||||
IN PCCH Format,
|
||||
IN ...
|
||||
);
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
# define _SEHSetJmp setjmp
|
||||
# define _SEHJmpBuf_t jmp_buf
|
||||
#endif
|
||||
unsigned long DbgPrint(PCCHAR Format,...);
|
||||
unsigned long DbgPrint(const char * Format,...);
|
||||
typedef struct __SEHFrame
|
||||
{
|
||||
_SEHPortableFrame_t SEH_Header;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#define inline __inline
|
||||
#endif
|
||||
|
||||
unsigned long DbgPrint(char *Format,...);
|
||||
unsigned long DbgPrint(const char *Format,...);
|
||||
|
||||
struct _GUID;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include <windows.h>
|
||||
|
||||
/* prototype for dbgprint */
|
||||
ULONG CDECL DbgPrint(IN PCH Format,IN ...);
|
||||
ULONG CDECL DbgPrint(IN PCCH Format,IN ...);
|
||||
|
||||
/* debug level */
|
||||
extern int winetest_debug;
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#define sT "s"
|
||||
#endif
|
||||
|
||||
unsigned long DbgPrint(char *Format,...);
|
||||
unsigned long DbgPrint(const char *Format,...);
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define TRACE(...)
|
||||
|
@ -83,7 +83,7 @@ unsigned long DbgPrint(char *Format,...);
|
|||
|
||||
|
||||
/* ULONG CDECL DbgPrint(PCH Format, ...); */
|
||||
ULONG DbgPrint(PCH Format,...);
|
||||
ULONG DbgPrint(PCCH Format,...);
|
||||
/* unsigned long DbgPrint(const char* Format, ...); */
|
||||
|
||||
|
||||
|
|
|
@ -206,7 +206,7 @@ vDbgPrintEx(IN ULONG ComponentId,
|
|||
*/
|
||||
ULONG
|
||||
__cdecl
|
||||
DbgPrint(PCH Format,
|
||||
DbgPrint(PCCH Format,
|
||||
...)
|
||||
{
|
||||
va_list ap;
|
||||
|
@ -229,7 +229,7 @@ ULONG
|
|||
__cdecl
|
||||
DbgPrintEx(IN ULONG ComponentId,
|
||||
IN ULONG Level,
|
||||
IN PCH Format,
|
||||
IN PCCH Format,
|
||||
...)
|
||||
{
|
||||
va_list ap;
|
||||
|
|
|
@ -43,7 +43,7 @@ static const WCHAR szMachPowerPoliciesSubKey[] = { 'S', 'O', 'F', 'T', 'W', 'A',
|
|||
|
||||
static const WCHAR szTempPwrScheme[] = { '9', '9', 0 };
|
||||
|
||||
ULONG DbgPrint(PCH X,...)
|
||||
ULONG DbgPrint(PCCH X,...)
|
||||
{
|
||||
return (ULONG)NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue