*
*/
-#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);
* 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
* 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));
}
* 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';
* WM_CLEAR
*
*/
-static inline void EDIT_WM_Clear(EDITSTATE *es)
+static __inline void EDIT_WM_Clear(EDITSTATE *es)
{
static const WCHAR empty_stringW[] = {0};
* 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);
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);