1
0
mirror of https://github.com/GNOME/libxml2.git synced 2025-10-23 01:38:01 +08:00

dict.h: Move xmlDictPtr definition before includes to allow direct inclusion.

This commit is contained in:
Patrick Monnerat
2016-05-02 16:21:47 +02:00
committed by Daniel Veillard
parent f6599c5164
commit c71f9305a9
2 changed files with 16 additions and 10 deletions

View File

@@ -11,6 +11,18 @@
#ifndef __XML_DICT_H__ #ifndef __XML_DICT_H__
#define __XML_DICT_H__ #define __XML_DICT_H__
#ifdef __cplusplus
#define __XML_EXTERNC extern "C"
#else
#define __XML_EXTERNC
#endif
/*
* The dictionary.
*/
__XML_EXTERNC typedef struct _xmlDict xmlDict;
__XML_EXTERNC typedef xmlDict *xmlDictPtr;
#include <limits.h> #include <limits.h>
#include <libxml/xmlversion.h> #include <libxml/xmlversion.h>
#include <libxml/tree.h> #include <libxml/tree.h>
@@ -19,12 +31,6 @@
extern "C" { extern "C" {
#endif #endif
/*
* The dictionary.
*/
typedef struct _xmlDict xmlDict;
typedef xmlDict *xmlDictPtr;
/* /*
* Initializer * Initializer
*/ */

View File

@@ -9,14 +9,14 @@
/if not defined(XML_DICT_H__) /if not defined(XML_DICT_H__)
/define XML_DICT_H__ /define XML_DICT_H__
/include "libxmlrpg/xmlversion"
/include "libxmlrpg/xmlTypesC"
/include "libxmlrpg/tree"
* The dictionary. * The dictionary.
d xmlDictPtr s * based(######typedef######) d xmlDictPtr s * based(######typedef######)
/include "libxmlrpg/xmlversion"
/include "libxmlrpg/xmlTypesC"
/include "libxmlrpg/tree"
* Initializer * Initializer
d xmlInitializeDict... d xmlInitializeDict...