[PATCH v2 06/12] user32: Merge caret.c into input.c.

Huw Davies huw at codeweavers.com
Tue Apr 26 10:06:05 CDT 2022


From: Zebediah Figura <zfigura at codeweavers.com>

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/user32/Makefile.in |  1 -
 dlls/user32/caret.c     | 58 -----------------------------------------
 dlls/user32/input.c     | 27 +++++++++++++++++++
 3 files changed, 27 insertions(+), 59 deletions(-)
 delete mode 100644 dlls/user32/caret.c

diff --git a/dlls/user32/Makefile.in b/dlls/user32/Makefile.in
index dd83ecec5cf..92d5c1ec1d9 100644
--- a/dlls/user32/Makefile.in
+++ b/dlls/user32/Makefile.in
@@ -7,7 +7,6 @@ DELAYIMPORTS = hid setupapi imm32
 
 C_SRCS = \
 	button.c \
-	caret.c \
 	class.c \
 	clipboard.c \
 	combo.c \
diff --git a/dlls/user32/caret.c b/dlls/user32/caret.c
deleted file mode 100644
index 9e0ff5ca48c..00000000000
--- a/dlls/user32/caret.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Caret functions
- *
- * Copyright 1993 David Metcalfe
- * Copyright 1996 Frans van Dorsselaer
- * Copyright 2001 Eric Pouech
- * Copyright 2002 Alexandre Julliard
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- */
-
-#include <stdarg.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "ntuser.h"
-#include "user_private.h"
-#include "wine/server.h"
-#include "wine/debug.h"
-
-/*****************************************************************
- *		DestroyCaret (USER32.@)
- */
-BOOL WINAPI DestroyCaret(void)
-{
-    return NtUserDestroyCaret();
-}
-
-
-/*****************************************************************
- *		SetCaretPos (USER32.@)
- */
-BOOL WINAPI SetCaretPos( INT x, INT y )
-{
-    return NtUserSetCaretPos( x, y );
-}
-
-
-/*****************************************************************
- *		SetCaretBlinkTime (USER32.@)
- */
-BOOL WINAPI SetCaretBlinkTime( unsigned int time )
-{
-    return NtUserSetCaretBlinkTime( time );
-}
diff --git a/dlls/user32/input.c b/dlls/user32/input.c
index dcb46df22b5..06756b5551e 100644
--- a/dlls/user32/input.c
+++ b/dlls/user32/input.c
@@ -162,6 +162,33 @@ HWND WINAPI GetCapture(void)
 }
 
 
+/*****************************************************************
+ *		DestroyCaret (USER32.@)
+ */
+BOOL WINAPI DestroyCaret(void)
+{
+    return NtUserDestroyCaret();
+}
+
+
+/*****************************************************************
+ *		SetCaretPos (USER32.@)
+ */
+BOOL WINAPI SetCaretPos( int x, int y )
+{
+    return NtUserSetCaretPos( x, y );
+}
+
+
+/*****************************************************************
+ *		SetCaretBlinkTime (USER32.@)
+ */
+BOOL WINAPI SetCaretBlinkTime( unsigned int time )
+{
+    return NtUserSetCaretBlinkTime( time );
+}
+
+
 /***********************************************************************
  *		GetInputState   (USER32.@)
  */
-- 
2.25.1




More information about the wine-devel mailing list