ReactOS 0.4.15-dev-8076-g06e89b2
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/*
13 * These macros must be defined before including system headers.
14 * Do not add any #include directives above this block.
15 */
16#ifndef NO_LARGEFILE_SOURCE
17#ifndef _LARGEFILE_SOURCE
18#define _LARGEFILE_SOURCE
19#endif
20#ifndef _FILE_OFFSET_BITS
21#define _FILE_OFFSET_BITS 64
22#endif
23#endif
24
25/*
26 * Currently supported platforms use either autoconf or
27 * copy to config.h own "preset" configuration file.
28 * As result ifdef HAVE_CONFIG_H is omitted here.
29 */
30#include "config.h"
31#include <libxml/xmlversion.h>
32#include <libxml/xmlstring.h>
33
34#ifndef SYSCONFDIR
35 #define SYSCONFDIR "/etc"
36#endif
37
38#if defined(__Lynx__)
39#include <stdio.h> /* pull definition of size_t */
40#include <varargs.h>
41int snprintf(char *, size_t, const char *, ...);
42int vfprintf(FILE *, const char *, va_list);
43#endif
44
45#ifndef WITH_TRIO
46#include <stdio.h>
47#else
54#define TRIO_REPLACE_STDIO
55#include "trio.h"
56#endif
57
58#if defined(__clang__) || \
59 (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406))
60#define XML_IGNORE_PEDANTIC_WARNINGS \
61 _Pragma("GCC diagnostic push") \
62 _Pragma("GCC diagnostic ignored \"-Wpedantic\"")
63#define XML_POP_WARNINGS \
64 _Pragma("GCC diagnostic pop")
65#else
66#define XML_IGNORE_PEDANTIC_WARNINGS
67#define XML_POP_WARNINGS
68#endif
69
70#if defined(__clang__) || \
71 (defined(__GNUC__) && (__GNUC__ >= 8))
72#define ATTRIBUTE_NO_SANITIZE(arg) __attribute__((no_sanitize(arg)))
73#else
74#define ATTRIBUTE_NO_SANITIZE(arg)
75#endif
76
77/*
78 * Internal variable indicating if a callback has been registered for
79 * node creation/destruction. It avoids spending a lot of time in locking
80 * function while checking if the callback exists.
81 */
82extern int __xmlRegisterCallbacks;
83/*
84 * internal error reporting routines, shared but not part of the API.
85 */
86void __xmlIOErr(int domain, int code, const char *extra);
87void __xmlLoaderErr(void *ctx, const char *msg, const char *filename) LIBXML_ATTR_FORMAT(2,0);
88#ifdef LIBXML_HTML_ENABLED
89/*
90 * internal function of HTML parser needed for xmlParseInNodeContext
91 * but not part of the API
92 */
93void __htmlParseContent(void *ctx);
94#endif
95
96/*
97 * internal global initialization critical section routines.
98 */
102
103int __xmlInitializeDict(void);
104
105/*
106 * internal thread safe random function
107 */
108int __xmlRandom(void);
109
112
113#if !defined(PIC) && !defined(NOLIBTOOL) && !defined(LIBXML_STATIC)
114# define LIBXML_STATIC
115#endif
116#endif /* ! __XML_LIBXML_H__ */
char * va_list
Definition: acmsvcex.h:78
#define msg(x)
Definition: auth_time.c:54
#define XMLCALL
GLuint buffer
Definition: glext.h:5915
GLenum GLsizei len
Definition: glext.h:6722
@ extra
Definition: id3.c:95
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
const char * filename
Definition: ioapi.h:137
void __xmlGlobalInitMutexDestroy(void)
Definition: threads.c:512
int __xmlRegisterCallbacks
Definition: tree.c:50
int xmlInputReadCallbackNop(void *context, char *buffer, int len)
int __xmlRandom(void)
Definition: dict.c:195
void __xmlIOErr(int domain, int code, const char *extra)
int __xmlInitializeDict(void)
Definition: dict.c:173
void __xmlLoaderErr(void *ctx, const char *msg, const char *filename) LIBXML_ATTR_FORMAT(2
void void __xmlGlobalInitMutexLock(void)
Definition: threads.c:413
XMLPUBFUN xmlChar *XMLCALL xmlEscapeFormatString(xmlChar **msg)
Definition: xmlstring.c:1001
void __xmlGlobalInitMutexUnlock(void)
Definition: threads.c:488
Definition: inflate.c:139
Definition: http.c:7252
Definition: cookie.c:42
#define snprintf
Definition: wintirpc.h:48
#define XMLPUBFUN
Definition: xmlexports.h:61
unsigned char xmlChar
Definition: xmlstring.h:28
#define LIBXML_ATTR_FORMAT(fmt, args)
Definition: xmlversion.h:486