123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- #ifndef __XML_LIBXML_H__
- #define __XML_LIBXML_H__
- #include <libxml/xmlstring.h>
- #ifndef NO_LARGEFILE_SOURCE
- #ifndef _LARGEFILE_SOURCE
- #define _LARGEFILE_SOURCE
- #endif
- #ifndef _FILE_OFFSET_BITS
- #define _FILE_OFFSET_BITS 64
- #endif
- #endif
- #if defined(macintosh)
- #include "config-mac.h"
- #elif defined(_WIN32_WCE)
- #include <win32config.h>
- #include <libxml/xmlversion.h>
- #else
- #include "config.h"
- #include <libxml/xmlversion.h>
- #endif
- #if defined(__Lynx__)
- #include <stdio.h> /* pull definition of size_t */
- #include <varargs.h>
- int snprintf(char *, size_t, const char *, ...);
- int vfprintf(FILE *, const char *, va_list);
- #endif
- #ifndef WITH_TRIO
- #include <stdio.h>
- #else
- #define TRIO_REPLACE_STDIO
- #error #include "trio.h"
- #endif
- #if defined(__clang__) || \
- (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406))
- #define XML_IGNORE_PEDANTIC_WARNINGS \
- _Pragma("GCC diagnostic push") \
- _Pragma("GCC diagnostic ignored \"-Wpedantic\"")
- #define XML_POP_WARNINGS \
- _Pragma("GCC diagnostic pop")
- #else
- #define XML_IGNORE_PEDANTIC_WARNINGS
- #define XML_POP_WARNINGS
- #endif
- #if defined(__clang__) || \
- (defined(__GNUC__) && (__GNUC__ >= 8))
- #define ATTRIBUTE_NO_SANITIZE(arg) __attribute__((no_sanitize(arg)))
- #else
- #define ATTRIBUTE_NO_SANITIZE(arg)
- #endif
- extern int __xmlRegisterCallbacks;
- void __xmlIOErr(int domain, int code, const char *extra);
- void __xmlLoaderErr(void *ctx, const char *msg, const char *filename) LIBXML_ATTR_FORMAT(2,0);
- #ifdef LIBXML_HTML_ENABLED
- void __htmlParseContent(void *ctx);
- #endif
- void __xmlGlobalInitMutexLock(void);
- void __xmlGlobalInitMutexUnlock(void);
- void __xmlGlobalInitMutexDestroy(void);
- int __xmlInitializeDict(void);
- #if defined(HAVE_RAND) && defined(HAVE_SRAND) && defined(HAVE_TIME)
- int __xmlRandom(void);
- #endif
- XMLPUBFUN xmlChar * XMLCALL xmlEscapeFormatString(xmlChar **msg);
- int xmlInputReadCallbackNop(void *context, char *buffer, int len);
- #ifdef IN_LIBXML
- #ifdef __GNUC__
- #ifdef PIC
- #ifdef __linux__
- #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
- #include "elfgcchack.h"
- #endif
- #endif
- #endif
- #endif
- #endif
- #if !defined(PIC) && !defined(NOLIBTOOL) && !defined(LIBXML_STATIC)
- # define LIBXML_STATIC
- #endif
- #endif
|