1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-20 03:52:25 +03:00

include: Remove unnecessary includes

- Don't include tree.h from encoding.h
- Don't include parser.h from xmlIO.h
This commit is contained in:
Nick Wellnhofer
2023-09-20 17:38:26 +02:00
parent eb985d6f8e
commit 7909ff08e2
3 changed files with 9 additions and 24 deletions

View File

@@ -13,6 +13,7 @@
#include <stdio.h>
#include <libxml/xmlversion.h>
#include <libxml/encoding.h>
#include <libxml/tree.h>
#ifdef __cplusplus
extern "C" {
@@ -140,16 +141,6 @@ typedef xmlOutputBufferPtr
(*xmlOutputBufferCreateFilenameFunc)(const char *URI,
xmlCharEncodingHandlerPtr encoder, int compression);
#ifdef __cplusplus
}
#endif
#include <libxml/tree.h>
#include <libxml/parser.h>
#ifdef __cplusplus
extern "C" {
#endif
struct _xmlParserInputBuffer {
void* context;
xmlInputReadCallback readcallback;