inkobj: Move declarations from main to an internal header

John Klehm xixsimplicityxix at gmail.com
Fri Aug 24 02:56:34 CDT 2007


This patch establishes a header file to ease the file structure for
later patches.

-John Klehm
-------------- next part --------------
From 0bbdb48b3c1a99e01981d014a3a0d6ae52cf5bd2 Mon Sep 17 00:00:00 2001
From: John Klehm <xixsimplicityxix at gmail.com>
Date: Thu, 23 Aug 2007 21:54:19 -0500
Subject: inkobj: Move declarations from main to an internal header

---
 dlls/inkobj/inkobj.c          |   11 +++--------
 dlls/inkobj/inkobj_internal.h |   40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 8 deletions(-)
 create mode 100644 dlls/inkobj/inkobj_internal.h

diff --git a/dlls/inkobj/inkobj.c b/dlls/inkobj/inkobj.c
index d1cae73..8cddeb7 100644
--- a/dlls/inkobj/inkobj.c
+++ b/dlls/inkobj/inkobj.c
@@ -15,17 +15,12 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "winerror.h"
-#include "wine/debug.h"
+#include "inkobj_internal.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(inkobj);
 
-static LONG INKOBJ_refCount;
-static HINSTANCE INKOBJ_hInstance;
+LONG INKOBJ_refCount = 0;
+HINSTANCE INKOBJ_hInstance;
 
 /*****************************************************
  *    DllMain (INKOBJ.init)
diff --git a/dlls/inkobj/inkobj_internal.h b/dlls/inkobj/inkobj_internal.h
new file mode 100644
index 0000000..f943025
--- /dev/null
+++ b/dlls/inkobj/inkobj_internal.h
@@ -0,0 +1,40 @@
+/* Copyright (C) 2007 C John Klehm
+ *
+ * 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
+ */
+#ifndef INKOBJ_INTERNAL_H
+#define INKOBJ_INTERNAL_H
+
+#include <stdarg.h>     /* var_arg */
+
+#include <windef.h>     /* MUST be before most includes */
+#include <winbase.h>    /* MUST be before most includes */
+#include <winerror.h>   /* MUST be before most includes */
+
+#include <wine/debug.h> /* FIXME, TRACE, WARN, ERR */
+
+
+/*
+ * start inkobj.c declaration
+ */
+
+extern LONG INKOBJ_refCount;
+extern HINSTANCE INKOBJ_hInstance;
+
+/*
+ * end inkobj.c declarations
+ */
+
+#endif /* INKOBJ_INTERNAL_H */
-- 
1.5.1.6



More information about the wine-patches mailing list