Blame libxml.h

Packit Service a31ea6
/*
Packit Service a31ea6
 * libxml.h: internal header only used during the compilation of libxml
Packit Service a31ea6
 *
Packit Service a31ea6
 * See COPYRIGHT for the status of this software
Packit Service a31ea6
 *
Packit Service a31ea6
 * Author: breese@users.sourceforge.net
Packit Service a31ea6
 */
Packit Service a31ea6
Packit Service a31ea6
#ifndef __XML_LIBXML_H__
Packit Service a31ea6
#define __XML_LIBXML_H__
Packit Service a31ea6
Packit Service a31ea6
#include <libxml/xmlstring.h>
Packit Service a31ea6
Packit Service a31ea6
#ifndef NO_LARGEFILE_SOURCE
Packit Service a31ea6
#ifndef _LARGEFILE_SOURCE
Packit Service a31ea6
#define _LARGEFILE_SOURCE
Packit Service a31ea6
#endif
Packit Service a31ea6
#ifndef _FILE_OFFSET_BITS
Packit Service a31ea6
#define _FILE_OFFSET_BITS 64
Packit Service a31ea6
#endif
Packit Service a31ea6
#endif
Packit Service a31ea6
Packit Service a31ea6
#if defined(macintosh)
Packit Service a31ea6
#include "config-mac.h"
Packit Service a31ea6
#elif defined(_WIN32_WCE)
Packit Service a31ea6
/*
Packit Service a31ea6
 * Windows CE compatibility definitions and functions
Packit Service a31ea6
 * This is needed to compile libxml2 for Windows CE.
Packit Service a31ea6
 * At least I tested it with WinCE 5.0 for Emulator and WinCE 4.2/SH4 target
Packit Service a31ea6
 */
Packit Service a31ea6
#include <win32config.h>
Packit Service a31ea6
#include <libxml/xmlversion.h>
Packit Service a31ea6
#else
Packit Service a31ea6
/*
Packit Service a31ea6
 * Currently supported platforms use either autoconf or
Packit Service a31ea6
 * copy to config.h own "preset" configuration file.
Packit Service a31ea6
 * As result ifdef HAVE_CONFIG_H is omited here.
Packit Service a31ea6
 */
Packit Service a31ea6
#include "config.h"
Packit Service a31ea6
#include <libxml/xmlversion.h>
Packit Service a31ea6
#endif
Packit Service a31ea6
Packit Service a31ea6
#if defined(__Lynx__)
Packit Service a31ea6
#include <stdio.h> /* pull definition of size_t */
Packit Service a31ea6
#include <varargs.h>
Packit Service a31ea6
int snprintf(char *, size_t, const char *, ...);
Packit Service a31ea6
int vfprintf(FILE *, const char *, va_list);
Packit Service a31ea6
#endif
Packit Service a31ea6
Packit Service a31ea6
#ifndef WITH_TRIO
Packit Service a31ea6
#include <stdio.h>
Packit Service a31ea6
#else
Packit Service a31ea6
/**
Packit Service a31ea6
 * TRIO_REPLACE_STDIO:
Packit Service a31ea6
 *
Packit Service a31ea6
 * This macro is defined if teh trio string formatting functions are to
Packit Service a31ea6
 * be used instead of the default stdio ones.
Packit Service a31ea6
 */
Packit Service a31ea6
#define TRIO_REPLACE_STDIO
Packit Service a31ea6
#include "trio.h"
Packit Service a31ea6
#endif
Packit Service a31ea6
Packit Service a31ea6
/*
Packit Service a31ea6
 * Internal variable indicating if a callback has been registered for
Packit Service a31ea6
 * node creation/destruction. It avoids spending a lot of time in locking
Packit Service a31ea6
 * function while checking if the callback exists.
Packit Service a31ea6
 */
Packit Service a31ea6
extern int __xmlRegisterCallbacks;
Packit Service a31ea6
/*
Packit Service a31ea6
 * internal error reporting routines, shared but not partof the API.
Packit Service a31ea6
 */
Packit Service a31ea6
void __xmlIOErr(int domain, int code, const char *extra);
Packit Service a31ea6
void __xmlLoaderErr(void *ctx, const char *msg, const char *filename) LIBXML_ATTR_FORMAT(2,0);
Packit Service a31ea6
#ifdef LIBXML_HTML_ENABLED
Packit Service a31ea6
/*
Packit Service a31ea6
 * internal function of HTML parser needed for xmlParseInNodeContext
Packit Service a31ea6
 * but not part of the API
Packit Service a31ea6
 */
Packit Service a31ea6
void __htmlParseContent(void *ctx);
Packit Service a31ea6
#endif
Packit Service a31ea6
Packit Service a31ea6
/*
Packit Service a31ea6
 * internal global initialization critical section routines.
Packit Service a31ea6
 */
Packit Service a31ea6
void __xmlGlobalInitMutexLock(void);
Packit Service a31ea6
void __xmlGlobalInitMutexUnlock(void);
Packit Service a31ea6
void __xmlGlobalInitMutexDestroy(void);
Packit Service a31ea6
Packit Service a31ea6
int __xmlInitializeDict(void);
Packit Service a31ea6
Packit Service a31ea6
#if defined(HAVE_RAND) && defined(HAVE_SRAND) && defined(HAVE_TIME)
Packit Service a31ea6
/*
Packit Service a31ea6
 * internal thread safe random function
Packit Service a31ea6
 */
Packit Service a31ea6
int __xmlRandom(void);
Packit Service a31ea6
#endif
Packit Service a31ea6
Packit Service a31ea6
XMLPUBFUN xmlChar * XMLCALL xmlEscapeFormatString(xmlChar **msg);
Packit Service a31ea6
int xmlNop(void);
Packit Service a31ea6
Packit Service a31ea6
#ifdef IN_LIBXML
Packit Service a31ea6
#ifdef __GNUC__
Packit Service a31ea6
#ifdef PIC
Packit Service a31ea6
#ifdef __linux__
Packit Service a31ea6
#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
Packit Service a31ea6
#include "elfgcchack.h"
Packit Service a31ea6
#endif
Packit Service a31ea6
#endif
Packit Service a31ea6
#endif
Packit Service a31ea6
#endif
Packit Service a31ea6
#endif
Packit Service a31ea6
#if !defined(PIC) && !defined(NOLIBTOOL) && !defined(LIBXML_STATIC)
Packit Service a31ea6
#  define LIBXML_STATIC
Packit Service a31ea6
#endif
Packit Service a31ea6
#endif /* ! __XML_LIBXML_H__ */