Eneboo - Documentación para desarrolladores
|
00001 /* 00002 * libxml.h: internal header only used during the compilation of libxml 00003 * 00004 * See COPYRIGHT for the status of this software 00005 * 00006 * Author: breese@users.sourceforge.net 00007 */ 00008 00009 #ifndef __XML_LIBXML_H__ 00010 #define __XML_LIBXML_H__ 00011 00012 #ifndef NO_LARGEFILE_SOURCE 00013 #ifndef _LARGEFILE_SOURCE 00014 #define _LARGEFILE_SOURCE 00015 #endif 00016 #ifndef _FILE_OFFSET_BITS 00017 #define _FILE_OFFSET_BITS 64 00018 #endif 00019 #endif 00020 00021 #if defined(macintosh) 00022 #include "config-mac.h" 00023 #elif defined(_WIN32_WCE) 00024 /* 00025 * Windows CE compatibility definitions and functions 00026 * This is needed to compile libxml2 for Windows CE. 00027 * At least I tested it with WinCE 5.0 for Emulator and WinCE 4.2/SH4 target 00028 */ 00029 #include <win32config.h> 00030 #include <libxml/xmlversion.h> 00031 #else 00032 #include "config.h" 00033 #include <libxml/xmlversion.h> 00034 #endif 00035 00036 #if defined(__Lynx__) 00037 #include <stdio.h> /* pull definition of size_t */ 00038 #include <varargs.h> 00039 int snprintf(char *, size_t, const char *, ...); 00040 int vfprintf(FILE *, const char *, va_list); 00041 #endif 00042 00043 #ifndef WITH_TRIO 00044 #include <stdio.h> 00045 #else 00046 00052 #define TRIO_REPLACE_STDIO 00053 #include "trio.h" 00054 #endif 00055 00056 /* 00057 * Internal variable indicating if a callback has been registered for 00058 * node creation/destruction. It avoids spending a lot of time in locking 00059 * function while checking if the callback exists. 00060 */ 00061 extern int __xmlRegisterCallbacks; 00062 /* 00063 * internal error reporting routines, shared but not partof the API. 00064 */ 00065 void __xmlIOErr(int domain, int code, const char *extra); 00066 void __xmlLoaderErr(void *ctx, const char *msg, const char *filename); 00067 #ifdef LIBXML_HTML_ENABLED 00068 /* 00069 * internal function of HTML parser needed for xmlParseInNodeContext 00070 * but not part of the API 00071 */ 00072 void __htmlParseContent(void *ctx); 00073 #endif 00074 00075 /* 00076 * internal global initialization critical section routines. 00077 */ 00078 void __xmlGlobalInitMutexLock(void); 00079 void __xmlGlobalInitMutexUnlock(void); 00080 void __xmlGlobalInitMutexDestroy(void); 00081 00082 #ifdef IN_LIBXML 00083 #ifdef __GNUC__ 00084 #ifdef PIC 00085 #ifdef linux 00086 #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3) 00087 #include "elfgcchack.h" 00088 #endif 00089 #endif 00090 #endif 00091 #endif 00092 #endif 00093 #ifndef PIC 00094 # define LIBXML_STATIC 00095 #endif 00096 #endif /* ! __XML_LIBXML_H__ */