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#ifndef NO_LARGEFILE_SOURCE 13#ifndef _LARGEFILE_SOURCE 14#define _LARGEFILE_SOURCE 15#endif 16#ifndef _FILE_OFFSET_BITS 17#define _FILE_OFFSET_BITS 64 18#endif 19#endif 20 21#if defined(macintosh) 22#include "config-mac.h" 23#else 24#include "config.h" 25#include <libxml/xmlversion.h> 26#endif 27 28#if defined(__Lynx__) 29#include <stdio.h> /* pull definition of size_t */ 30#include <varargs.h> 31int snprintf(char *, size_t, const char *, ...); 32int vfprintf(FILE *, const char *, va_list); 33#endif 34 35#ifndef WITH_TRIO 36#include <stdio.h> 37#else 38/** 39 * TRIO_REPLACE_STDIO: 40 * 41 * This macro is defined if teh trio string formatting functions are to 42 * be used instead of the default stdio ones. 43 */ 44#define TRIO_REPLACE_STDIO 45#include "trio.h" 46#endif 47 48/* 49 * Internal variable indicating if a callback has been registered for 50 * node creation/destruction. It avoids spending a lot of time in locking 51 * function while checking if the callback exists. 52 */ 53extern int __xmlRegisterCallbacks; 54/* 55 * internal error reporting routines, shared but not partof the API. 56 */ 57void __xmlIOErr(int domain, int code, const char *extra); 58void __xmlLoaderErr(void *ctx, const char *msg, const char *filename); 59#ifdef LIBXML_HTML_ENABLED 60/* 61 * internal function of HTML parser needed for xmlParseInNodeContext 62 * but not part of the API 63 */ 64void __htmlParseContent(void *ctx); 65#endif 66 67 68#ifdef IN_LIBXML 69#ifdef __GNUC__ 70#ifdef PIC 71#ifdef linux 72#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3) 73#include "elfgcchack.h" 74#endif 75#endif 76#endif 77#endif 78#endif 79#endif /* ! __XML_LIBXML_H__ */ 80