Author: sginsberg
Date: Wed Aug 27 12:54:27 2008
New Revision: 35709
URL:
http://svn.reactos.org/svn/reactos?rev=35709&view=rev
Log:
- Make cmlibhost compile warning free
- Slight reordering of cmlib.h (by Colin Finck)
Modified:
trunk/reactos/lib/cmlib/cminit.c
trunk/reactos/lib/cmlib/cmlib.h
trunk/reactos/lib/cmlib/cmlib.rbuild
Modified: trunk/reactos/lib/cmlib/cminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/cminit.c?rev=357…
==============================================================================
--- trunk/reactos/lib/cmlib/cminit.c [iso-8859-1] (original)
+++ trunk/reactos/lib/cmlib/cminit.c [iso-8859-1] Wed Aug 27 12:54:27 2008
@@ -6,6 +6,8 @@
*/
#include "cmlib.h"
+#define NDEBUG
+#include <debug.h>
ULONG CmlibTraceLevel = 0;
@@ -95,7 +97,7 @@
}
else
{
- DbgPrint("IndexCell->Signature %x\n", IndexCell->Signature);
+ DPRINT1("IndexCell->Signature %x\n", IndexCell->Signature);
ASSERT(FALSE);
}
}
Modified: trunk/reactos/lib/cmlib/cmlib.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/cmlib.h?rev=3570…
==============================================================================
--- trunk/reactos/lib/cmlib/cmlib.h [iso-8859-1] (original)
+++ trunk/reactos/lib/cmlib/cmlib.h [iso-8859-1] Wed Aug 27 12:54:27 2008
@@ -7,6 +7,11 @@
#ifndef CMLIB_H
#define CMLIB_H
+
+//
+// Debug support switch
+//
+#define _CMLIB_DEBUG_ 1
#ifdef CMLIB_HOST
#include <host/typedefs.h>
@@ -23,81 +28,75 @@
#define STATUS_NOT_REGISTRY_FILE ((NTSTATUS)0xC000015C)
#define STATUS_REGISTRY_RECOVERED ((NTSTATUS)0x40000009)
+ #define REG_OPTION_VOLATILE 1
+ #define OBJ_CASE_INSENSITIVE 0x00000040L
+ #define USHORT_MAX USHRT_MAX
+
+ VOID NTAPI
+ KeQuerySystemTime(
+ OUT PLARGE_INTEGER CurrentTime);
+
+ VOID NTAPI
+ RtlInitializeBitMap(
+ IN PRTL_BITMAP BitMapHeader,
+ IN PULONG BitMapBuffer,
+ IN ULONG SizeOfBitMap);
+
+ ULONG NTAPI
+ RtlFindSetBits(
+ IN PRTL_BITMAP BitMapHeader,
+ IN ULONG NumberToFind,
+ IN ULONG HintIndex);
+
+ VOID NTAPI
+ RtlSetBits(
+ IN PRTL_BITMAP BitMapHeader,
+ IN ULONG StartingIndex,
+ IN ULONG NumberToSet);
+
+ VOID NTAPI
+ RtlClearAllBits(
+ IN PRTL_BITMAP BitMapHeader);
+
+ #define RtlCheckBit(BMH,BP) (((((PLONG)(BMH)->Buffer)[(BP) / 32]) >> ((BP) %
32)) & 0x1)
+
+ #define PKTHREAD PVOID
+ #define PKGUARDED_MUTEX PVOID
+ #define PERESOURCE PVOID
+ #define PFILE_OBJECT PVOID
+ #define PKEVENT PVOID
+ #define PWORK_QUEUE_ITEM PVOID
+ #define EX_PUSH_LOCK PULONG_PTR
+
/* For <host/wcsfuncs.h> */
#define USE_HOST_WCSFUNCS
+
+ #define CMLTRACE(x, ...)
+#else
+ //
+ // Debug/Tracing support
+ //
+ #if _CMLIB_DEBUG_
+ #ifdef NEW_DEBUG_SYSTEM_IMPLEMENTED // enable when Debug Filters are implemented
+ #define CMLTRACE DbgPrintEx
+ #else
+ #define CMLTRACE(x, ...) \
+ if (x & CmlibTraceLevel) DbgPrint(__VA_ARGS__)
+ #endif
+ #else
+ #define CMLTRACE(x, ...) DPRINT(__VA_ARGS__)
+ #endif
+
+
+ #include <ntddk.h>
#endif
#include <host/wcsfuncs.h>
//
-// Debug support switch
-//
-#define _CMLIB_DEBUG_ 1
-
-//
// These define the Debug Masks Supported
//
#define CMLIB_HCELL_DEBUG 0x01
-
-//
-// Debug/Tracing support
-//
-#if _CMLIB_DEBUG_
-#ifdef NEW_DEBUG_SYSTEM_IMPLEMENTED // enable when Debug Filters are implemented
-#define CMLTRACE DbgPrintEx
-#else
-#define CMLTRACE(x, ...) \
- if (x & CmlibTraceLevel) DbgPrint(__VA_ARGS__)
-#endif
-#else
-#define CMLTRACE(x, ...) DPRINT(__VA_ARGS__)
-#endif
-
-#ifndef _TYPEDEFS_HOST_H
- #include <ntddk.h>
-
-#else
- #define REG_OPTION_VOLATILE 1
- #define OBJ_CASE_INSENSITIVE 0x00000040L
- #define USHORT_MAX USHRT_MAX
-
-VOID NTAPI
-KeQuerySystemTime(
- OUT PLARGE_INTEGER CurrentTime);
-
-VOID NTAPI
-RtlInitializeBitMap(
- IN PRTL_BITMAP BitMapHeader,
- IN PULONG BitMapBuffer,
- IN ULONG SizeOfBitMap);
-
-ULONG NTAPI
-RtlFindSetBits(
- IN PRTL_BITMAP BitMapHeader,
- IN ULONG NumberToFind,
- IN ULONG HintIndex);
-
-VOID NTAPI
-RtlSetBits(
- IN PRTL_BITMAP BitMapHeader,
- IN ULONG StartingIndex,
- IN ULONG NumberToSet);
-
-VOID NTAPI
-RtlClearAllBits(
- IN PRTL_BITMAP BitMapHeader);
-
-#define RtlCheckBit(BMH,BP) (((((PLONG)(BMH)->Buffer)[(BP) / 32]) >> ((BP) %
32)) & 0x1)
-
-#define PKTHREAD PVOID
-#define PKGUARDED_MUTEX PVOID
-#define PERESOURCE PVOID
-#define PFILE_OBJECT PVOID
-#define PKEVENT PVOID
-#define PWORK_QUEUE_ITEM PVOID
-#define EX_PUSH_LOCK PULONG_PTR
-
-#endif
#ifndef ROUND_UP
#define ROUND_UP(a,b) ((((a)+(b)-1)/(b))*(b))
Modified: trunk/reactos/lib/cmlib/cmlib.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/cmlib.rbuild?rev…
==============================================================================
--- trunk/reactos/lib/cmlib/cmlib.rbuild [iso-8859-1] (original)
+++ trunk/reactos/lib/cmlib/cmlib.rbuild [iso-8859-1] Wed Aug 27 12:54:27 2008
@@ -14,7 +14,7 @@
<file>hivesum.c</file>
<file>hivewrt.c</file>
</module>
-<module name="cmlibhost" type="hoststaticlibrary"
allowwarnings="true">
+<module name="cmlibhost" type="hoststaticlibrary">
<include base="cmlibhost">.</include>
<include base="ReactOS">include/reactos</include>
<include base="ReactOS">include</include>