- Consistently check for KDBG via if-def, not if (like we do for _WINKD_), everywhere.
authorStefan Ginsberg <stefanginsberg@gmail.com>
Wed, 9 Sep 2015 16:06:38 +0000 (16:06 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Wed, 9 Sep 2015 16:06:38 +0000 (16:06 +0000)
svn path=/trunk/; revision=69152

reactos/include/reactos/kdros.h
reactos/ntoskrnl/include/internal/kd.h
reactos/ntoskrnl/kd/kdmain.c
reactos/ntoskrnl/mm/ARM3/expool.c
reactos/win32ss/user/ntuser/main.c

index bcc71ff..94aa5ad 100644 (file)
@@ -45,7 +45,7 @@ KdRosDumpStackFrames(
     KdSystemDebugControl('DsoR', Backtrace, Count, 0, 0, 0, 0);
 }
 
-#if KDBG
+#if defined(KDBG)
 FORCEINLINE
 VOID
 KdRosRegisterCliCallback(
index f1bff1d..d3daabf 100644 (file)
@@ -36,7 +36,7 @@ KdPortPutByteEx(
 
 #if defined(KDBG) || DBG
 
-#if KDBG
+#if defined(KDBG)
 typedef
 BOOLEAN
 (NTAPI *PKDBG_CLI_ROUTINE)(
index 1b0a0e5..5d61db4 100644 (file)
@@ -100,7 +100,7 @@ KdpServiceDispatcher(ULONG Service,
             break;
         }
 
-#if KDBG
+#if defined(KDBG)
         /* Register KDBG CLI callback */
         case 'RbdK':
         {
index cb8f532..25d3b41 100644 (file)
@@ -464,7 +464,7 @@ ExpComputePartialHashForAddress(IN PVOID BaseAddress)
 
 VOID
 NTAPI
-INIT_FUNCTION
+INIT_SECTION
 ExpSeedHotTags(VOID)
 {
     ULONG i, Key, Hash, Index;
@@ -794,7 +794,7 @@ ExpInsertPoolTracker(IN ULONG Key,
 
 VOID
 NTAPI
-INIT_FUNCTION
+INIT_SECTION
 ExInitializePoolDescriptor(IN PPOOL_DESCRIPTOR PoolDescriptor,
                            IN POOL_TYPE PoolType,
                            IN ULONG PoolIndex,
@@ -845,7 +845,7 @@ ExInitializePoolDescriptor(IN PPOOL_DESCRIPTOR PoolDescriptor,
 
 VOID
 NTAPI
-INIT_FUNCTION
+INIT_SECTION
 InitializePool(IN POOL_TYPE PoolType,
                IN ULONG Threshold)
 {
@@ -2669,7 +2669,7 @@ ExAllocatePoolWithQuotaTag(IN POOL_TYPE PoolType,
     return Buffer;
 }
 
-#if DBG && KDBG
+#if DBG && defined(KDBG)
 
 BOOLEAN
 ExpKdbgExtPool(
index f5fa981..9dd8cfe 100644 (file)
@@ -255,7 +255,7 @@ InitProcessCallback(PEPROCESS Process)
 
 #if DBG
     DbgInitDebugChannels();
-#if KDBG
+#if defined(KDBG)
     KdRosRegisterCliCallback(DbgGdiKdbgCliCallback);
 #endif
 #endif