mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[XMLLITE]
* Move some inclusions to the main header. * Set the default debugging channel globally through the main header. * Remove inclusions and definitions that already exist in the main header. * Improve the GUIDs situation. CORE-7716 svn path=/trunk/; revision=61484
This commit is contained in:
parent
6fbc94188e
commit
a77feaee58
6 changed files with 41 additions and 40 deletions
|
@ -7,11 +7,12 @@ list(APPEND SOURCE
|
|||
reader.c
|
||||
writer.c
|
||||
xmllite_main.c
|
||||
guid.c
|
||||
${CMAKE_CURRENT_BINARY_DIR}/xmllite_stubs.c
|
||||
${CMAKE_CURRENT_BINARY_DIR}/xmllite.def)
|
||||
|
||||
add_library(xmllite SHARED ${SOURCE})
|
||||
set_module_type(xmllite win32dll)
|
||||
target_link_libraries(xmllite wine)
|
||||
target_link_libraries(xmllite uuid wine)
|
||||
add_importlibs(xmllite msvcrt kernel32 ntdll)
|
||||
add_cd_file(TARGET xmllite DESTINATION reactos/system32 FOR all)
|
||||
|
|
17
reactos/dll/win32/xmllite/guid.c
Normal file
17
reactos/dll/win32/xmllite/guid.c
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <objbase.h>
|
||||
#include <initguid.h>
|
||||
#include <xmllite.h>
|
||||
|
||||
DEFINE_GUID(IID_IXmlReaderInput, 0x0b3ccc9b, 0x9214, 0x428b, 0xa2, 0xae, 0xef, 0x3a, 0xa8, 0x71, 0xaf, 0xda);
|
||||
|
||||
/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
|
|
@ -18,27 +18,13 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <initguid.h>
|
||||
#include <objbase.h>
|
||||
#include <xmllite.h>
|
||||
#include "xmllite_private.h"
|
||||
|
||||
#include <wine/debug.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <wine/list.h>
|
||||
#include <wine/unicode.h>
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(xmllite);
|
||||
|
||||
/* not defined in public headers */
|
||||
DEFINE_GUID(IID_IXmlReaderInput, 0x0b3ccc9b, 0x9214, 0x428b, 0xa2, 0xae, 0xef, 0x3a, 0xa8, 0x71, 0xaf, 0xda);
|
||||
|
||||
|
|
|
@ -17,21 +17,8 @@
|
|||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <objbase.h>
|
||||
#include <xmllite.h>
|
||||
|
||||
#include <wine/debug.h>
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(xmllite);
|
||||
#include "xmllite_private.h"
|
||||
|
||||
typedef struct _xmlwriter
|
||||
{
|
||||
|
|
|
@ -18,15 +18,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <wine/debug.h>
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(xmllite);
|
||||
#include "xmllite_private.h"
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
|
|
|
@ -21,6 +21,24 @@
|
|||
#ifndef __XMLLITE_PRIVATE__
|
||||
#define __XMLLITE_PRIVATE__
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <objbase.h>
|
||||
#include <xmllite.h>
|
||||
|
||||
#include <wine/debug.h>
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(xmllite);
|
||||
|
||||
/* memory allocation functions */
|
||||
static inline void *heap_alloc(size_t len)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue