From 443479fb5315ed6188b96e79acbea131ad61893e Mon Sep 17 00:00:00 2001 From: John Klehm Date: Thu, 11 Oct 2007 20:38:25 -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 - -#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..24bbf26 --- /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 + +#include +#include +#include + +#include + + +/* + * start inkobj.c declaration + */ + +extern LONG INKOBJ_refCount; +extern HINSTANCE INKOBJ_hInstance; + +/* + * end inkobj.c declarations + */ + +#endif /* INKOBJ_INTERNAL_H */ -- 1.5.2.5