- Fix debug header nonsense
[reactos.git] / reactos / lib / user32 / controls / edit.c
index 97252a3..be0d076 100644 (file)
  *
  */
 
-#define __WINE__
 #include <user32.h>
-#include <stdarg.h>
-#include <string.h>
-#include <stdlib.h>
-#include "controls.h"
-#include "wine/unicode.h"
-#include "wine/debug.h"
+#define NDEBUG
+#include <debug.h>
 
 WINE_DEFAULT_DEBUG_CHANNEL(edit);
 WINE_DECLARE_DEBUG_CHANNEL(combo);
@@ -167,10 +162,10 @@ typedef struct
  *     We still like to call them internally
  *     "static inline" makes them more like macro's
  */
-static inline BOOL     EDIT_EM_CanUndo(EDITSTATE *es);
-static inline void     EDIT_EM_EmptyUndoBuffer(EDITSTATE *es);
-static inline void     EDIT_WM_Clear(EDITSTATE *es);
-static inline void     EDIT_WM_Cut(EDITSTATE *es);
+static __inline BOOL   EDIT_EM_CanUndo(EDITSTATE *es);
+static __inline void   EDIT_EM_EmptyUndoBuffer(EDITSTATE *es);
+static __inline void   EDIT_WM_Clear(EDITSTATE *es);
+static __inline void   EDIT_WM_Cut(EDITSTATE *es);
 
 /*
  *     Helper functions only valid for one type of control
@@ -310,7 +305,7 @@ const struct builtin_class_descr EDIT_builtin_class =
  *     EM_CANUNDO
  *
  */
-static inline BOOL EDIT_EM_CanUndo(EDITSTATE *es)
+static __inline BOOL EDIT_EM_CanUndo(EDITSTATE *es)
 {
        return (es->undo_insert_count || strlenW(es->undo_text));
 }
@@ -321,7 +316,7 @@ static inline BOOL EDIT_EM_CanUndo(EDITSTATE *es)
  *     EM_EMPTYUNDOBUFFER
  *
  */
-static inline void EDIT_EM_EmptyUndoBuffer(EDITSTATE *es)
+static __inline void EDIT_EM_EmptyUndoBuffer(EDITSTATE *es)
 {
        es->undo_insert_count = 0;
        *es->undo_text = '\0';
@@ -333,7 +328,7 @@ static inline void EDIT_EM_EmptyUndoBuffer(EDITSTATE *es)
  *     WM_CLEAR
  *
  */
-static inline void EDIT_WM_Clear(EDITSTATE *es)
+static __inline void EDIT_WM_Clear(EDITSTATE *es)
 {
        static const WCHAR empty_stringW[] = {0};
 
@@ -350,7 +345,7 @@ static inline void EDIT_WM_Clear(EDITSTATE *es)
  *     WM_CUT
  *
  */
-static inline void EDIT_WM_Cut(EDITSTATE *es)
+static __inline void EDIT_WM_Cut(EDITSTATE *es)
 {
        EDIT_WM_Copy(es);
        EDIT_WM_Clear(es);
@@ -406,7 +401,7 @@ static HBRUSH EDIT_NotifyCtlColor(EDITSTATE *es, HDC hdc)
        return (HBRUSH)SendMessageW(GetParent(es->hwndSelf), msg, (WPARAM)hdc, (LPARAM)es->hwndSelf);
 }
 
-static inline LRESULT DefWindowProcT(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode)
+static __inline LRESULT DefWindowProcT(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode)
 {
        if(unicode)
                return DefWindowProcW(hwnd, msg, wParam, lParam);