Author: akhaldi
Date: Fri Jan  3 10:28:56 2014
New Revision: 61495
URL: 
http://svn.reactos.org/svn/reactos?rev=61495&view=rev
Log:
[HIDPARSER]
* Do not include debug.h into the main header.
* Do not define NDEBUG globally.
CORE-7716
Modified:
    trunk/reactos/lib/drivers/hidparser/CMakeLists.txt
    trunk/reactos/lib/drivers/hidparser/api.c
    trunk/reactos/lib/drivers/hidparser/context.c
    trunk/reactos/lib/drivers/hidparser/hidparser.c
    trunk/reactos/lib/drivers/hidparser/hidparser.h
    trunk/reactos/lib/drivers/hidparser/parser.c
Modified: trunk/reactos/lib/drivers/hidparser/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/hidparser/CMak…
==============================================================================
--- trunk/reactos/lib/drivers/hidparser/CMakeLists.txt  [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/hidparser/CMakeLists.txt  [iso-8859-1] Fri Jan  3 10:28:56
2014
@@ -1,7 +1,5 @@
-add_definitions(
-    -DUNICODE -D_UNICODE
-    -DNDEBUG)
+add_definitions(-DUNICODE -D_UNICODE)
 list(APPEND SOURCE
     context.c
Modified: trunk/reactos/lib/drivers/hidparser/api.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/hidparser/api.…
==============================================================================
--- trunk/reactos/lib/drivers/hidparser/api.c   [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/hidparser/api.c   [iso-8859-1] Fri Jan  3 10:28:56 2014
@@ -8,8 +8,10 @@
  *              Johannes Anderwald (johannes.anderwald(a)reactos.org)
  */
-
 #include "parser.h"
+
+#define NDEBUG
+#include <debug.h>
 static ULONG KeyboardScanCodes[256] =
 { /*    0       1       2       3       4       5       6       7       8       9       A
B       C       D       E       F */
Modified: trunk/reactos/lib/drivers/hidparser/context.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/hidparser/cont…
==============================================================================
--- trunk/reactos/lib/drivers/hidparser/context.c       [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/hidparser/context.c       [iso-8859-1] Fri Jan  3 10:28:56
2014
@@ -8,8 +8,10 @@
  *              Johannes Anderwald (johannes.anderwald(a)reactos.org)
  */
-
 #include "parser.h"
+
+#define NDEBUG
+#include <debug.h>
 typedef struct
 {
Modified: trunk/reactos/lib/drivers/hidparser/hidparser.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/hidparser/hidp…
==============================================================================
--- trunk/reactos/lib/drivers/hidparser/hidparser.c     [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/hidparser/hidparser.c     [iso-8859-1] Fri Jan  3 10:28:56
2014
@@ -9,6 +9,9 @@
  */
 #include "parser.h"
+
+#define NDEBUG
+#include <debug.h>
 NTSTATUS
 TranslateHidParserStatus(
Modified: trunk/reactos/lib/drivers/hidparser/hidparser.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/hidparser/hidp…
==============================================================================
--- trunk/reactos/lib/drivers/hidparser/hidparser.h     [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/hidparser/hidparser.h     [iso-8859-1] Fri Jan  3 10:28:56
2014
@@ -15,10 +15,6 @@
 #include <ntddk.h>
 #include <hidpddi.h>
 #include <hidpi.h>
-#ifndef NDEBUG
-#define NDEBUG
-#endif
-#include <debug.h>
 //
 // function prototypes
Modified: trunk/reactos/lib/drivers/hidparser/parser.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/hidparser/pars…
==============================================================================
--- trunk/reactos/lib/drivers/hidparser/parser.c        [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/hidparser/parser.c        [iso-8859-1] Fri Jan  3 10:28:56
2014
@@ -8,8 +8,10 @@
  *              Johannes Anderwald (johannes.anderwald(a)reactos.org)
  */
-
 #include "parser.h"
+
+#define NDEBUG
+#include <debug.h>
 static UCHAR ItemSize[4] = { 0, 1, 2, 4 };