ReactOS  0.4.14-dev-57-g333b8f1
libxml.h
Go to the documentation of this file.
1 /*
2  * libxml.h: internal header only used during the compilation of libxml
3  *
4  * See COPYRIGHT for the status of this software
5  *
6  * Author: breese@users.sourceforge.net
7  */
8 
9 #ifndef __XML_LIBXML_H__
10 #define __XML_LIBXML_H__
11 
12 #include <libxml/xmlstring.h>
13 
14 #ifndef NO_LARGEFILE_SOURCE
15 #ifndef _LARGEFILE_SOURCE
16 #define _LARGEFILE_SOURCE
17 #endif
18 #ifndef _FILE_OFFSET_BITS
19 #define _FILE_OFFSET_BITS 64
20 #endif
21 #endif
22 
23 #if defined(macintosh)
24 #include "config-mac.h"
25 #elif defined(_WIN32_WCE)
26 /*
27  * Windows CE compatibility definitions and functions
28  * This is needed to compile libxml2 for Windows CE.
29  * At least I tested it with WinCE 5.0 for Emulator and WinCE 4.2/SH4 target
30  */
31 #include <win32config.h>
32 #include <libxml/xmlversion.h>
33 #else
34 /*
35  * Currently supported platforms use either autoconf or
36  * copy to config.h own "preset" configuration file.
37  * As result ifdef HAVE_CONFIG_H is omited here.
38  */
39 #include "config.h"
40 #include <libxml/xmlversion.h>
41 #endif
42 
43 #if defined(__Lynx__)
44 #include <stdio.h> /* pull definition of size_t */
45 #include <varargs.h>
46 int snprintf(char *, size_t, const char *, ...);
47 int vfprintf(FILE *, const char *, va_list);
48 #endif
49 
50 #ifndef WITH_TRIO
51 #include <stdio.h>
52 #else
53 
59 #define TRIO_REPLACE_STDIO
60 #include "trio.h"
61 #endif
62 
63 #if defined(__clang__) || \
64  (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406))
65 #define XML_IGNORE_PEDANTIC_WARNINGS \
66  _Pragma("GCC diagnostic push") \
67  _Pragma("GCC diagnostic ignored \"-Wpedantic\"")
68 #define XML_POP_WARNINGS \
69  _Pragma("GCC diagnostic pop")
70 #else
71 #define XML_IGNORE_PEDANTIC_WARNINGS
72 #define XML_POP_WARNINGS
73 #endif
74 
75 /*
76  * Internal variable indicating if a callback has been registered for
77  * node creation/destruction. It avoids spending a lot of time in locking
78  * function while checking if the callback exists.
79  */
80 extern int __xmlRegisterCallbacks;
81 /*
82  * internal error reporting routines, shared but not partof the API.
83  */
84 void __xmlIOErr(int domain, int code, const char *extra);
85 void __xmlLoaderErr(void *ctx, const char *msg, const char *filename) LIBXML_ATTR_FORMAT(2,0);
86 #ifdef LIBXML_HTML_ENABLED
87 /*
88  * internal function of HTML parser needed for xmlParseInNodeContext
89  * but not part of the API
90  */
91 void __htmlParseContent(void *ctx);
92 #endif
93 
94 /*
95  * internal global initialization critical section routines.
96  */
97 void __xmlGlobalInitMutexLock(void);
100 
101 int __xmlInitializeDict(void);
102 
103 #if defined(HAVE_RAND) && defined(HAVE_SRAND) && defined(HAVE_TIME)
104 /*
105  * internal thread safe random function
106  */
107 int __xmlRandom(void);
108 #endif
109 
111 int xmlInputReadCallbackNop(void *context, char *buffer, int len);
112 
113 #ifdef IN_LIBXML
114 #ifdef __GNUC__
115 #ifdef PIC
116 #ifdef __linux__
117 #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
118 #include "elfgcchack.h"
119 #endif
120 #endif
121 #endif
122 #endif
123 #endif
124 #if !defined(PIC) && !defined(NOLIBTOOL) && !defined(LIBXML_STATIC)
125 # define LIBXML_STATIC
126 #endif
127 #endif /* ! __XML_LIBXML_H__ */
void __xmlLoaderErr(void *ctx, const char *msg, const char *filename) LIBXML_ATTR_FORMAT(2
Definition: http.c:6587
void __xmlGlobalInitMutexUnlock(void)
Definition: threads.c:502
#define snprintf
Definition: wintirpc.h:48
GLuint buffer
Definition: glext.h:5915
#define XMLPUBFUN
Definition: xmlexports.h:30
const char * filename
Definition: ioapi.h:135
int __xmlRegisterCallbacks
Definition: tree.c:53
int xmlInputReadCallbackNop(void *context, char *buffer, int len)
char * va_list
Definition: acmsvcex.h:78
#define LIBXML_ATTR_FORMAT(fmt, args)
Definition: xmlversion.h:478
Definition: id3.c:18
int __xmlInitializeDict(void)
Definition: dict.c:175
unsigned char xmlChar
Definition: xmlstring.h:28
GLenum GLsizei len
Definition: glext.h:6722
XMLPUBFUN xmlChar *XMLCALL xmlEscapeFormatString(xmlChar **msg)
Definition: xmlstring.c:1001
#define msg(x)
Definition: auth_time.c:54
#define XMLCALL
int __xmlRandom(void)
Definition: dict.c:197
void void __xmlGlobalInitMutexLock(void)
Definition: threads.c:427
void __xmlGlobalInitMutexDestroy(void)
Definition: threads.c:526
void __xmlIOErr(int domain, int code, const char *extra)
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)