Author: sginsberg
Date: Wed Sep 9 16:06:38 2015
New Revision: 69152
URL:
http://svn.reactos.org/svn/reactos?rev=69152&view=rev
Log:
- Consistently check for KDBG via if-def, not if (like we do for _WINKD_), everywhere.
Modified:
trunk/reactos/include/reactos/kdros.h
trunk/reactos/ntoskrnl/include/internal/kd.h
trunk/reactos/ntoskrnl/kd/kdmain.c
trunk/reactos/ntoskrnl/mm/ARM3/expool.c
trunk/reactos/win32ss/user/ntuser/main.c
Modified: trunk/reactos/include/reactos/kdros.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/kdros.h?re…
==============================================================================
--- trunk/reactos/include/reactos/kdros.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/kdros.h [iso-8859-1] Wed Sep 9 16:06:38 2015
@@ -45,7 +45,7 @@
KdSystemDebugControl('DsoR', Backtrace, Count, 0, 0, 0, 0);
}
-#if KDBG
+#if defined(KDBG)
FORCEINLINE
VOID
KdRosRegisterCliCallback(
Modified: trunk/reactos/ntoskrnl/include/internal/kd.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/kd.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/kd.h [iso-8859-1] Wed Sep 9 16:06:38 2015
@@ -36,7 +36,7 @@
#if defined(KDBG) || DBG
-#if KDBG
+#if defined(KDBG)
typedef
BOOLEAN
(NTAPI *PKDBG_CLI_ROUTINE)(
Modified: trunk/reactos/ntoskrnl/kd/kdmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kd/kdmain.c?rev=6…
==============================================================================
--- trunk/reactos/ntoskrnl/kd/kdmain.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kd/kdmain.c [iso-8859-1] Wed Sep 9 16:06:38 2015
@@ -100,7 +100,7 @@
break;
}
-#if KDBG
+#if defined(KDBG)
/* Register KDBG CLI callback */
case 'RbdK':
{
Modified: trunk/reactos/ntoskrnl/mm/ARM3/expool.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/expool.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/expool.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/expool.c [iso-8859-1] Wed Sep 9 16:06:38 2015
@@ -464,7 +464,7 @@
VOID
NTAPI
-INIT_FUNCTION
+INIT_SECTION
ExpSeedHotTags(VOID)
{
ULONG i, Key, Hash, Index;
@@ -794,7 +794,7 @@
VOID
NTAPI
-INIT_FUNCTION
+INIT_SECTION
ExInitializePoolDescriptor(IN PPOOL_DESCRIPTOR PoolDescriptor,
IN POOL_TYPE PoolType,
IN ULONG PoolIndex,
@@ -845,7 +845,7 @@
VOID
NTAPI
-INIT_FUNCTION
+INIT_SECTION
InitializePool(IN POOL_TYPE PoolType,
IN ULONG Threshold)
{
@@ -2669,7 +2669,7 @@
return Buffer;
}
-#if DBG && KDBG
+#if DBG && defined(KDBG)
BOOLEAN
ExpKdbgExtPool(
Modified: trunk/reactos/win32ss/user/ntuser/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/main.c…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/main.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/main.c [iso-8859-1] Wed Sep 9 16:06:38 2015
@@ -255,7 +255,7 @@
#if DBG
DbgInitDebugChannels();
-#if KDBG
+#if defined(KDBG)
KdRosRegisterCliCallback(DbgGdiKdbgCliCallback);
#endif
#endif