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: [email protected]
|
---|
7 | */
|
---|
8 |
|
---|
9 | #ifndef __XML_LIBXML_H__
|
---|
10 | #define __XML_LIBXML_H__
|
---|
11 |
|
---|
12 | #include <libxml/xmlstring.h>
|
---|
13 |
|
---|
14 | #ifndef NO_LARGEFILE_SOURCE
|
---|
15 | #ifndef _LARGEFILE_SOURCE
|
---|
16 | #define _LARGEFILE_SOURCE
|
---|
17 | #endif
|
---|
18 | #ifndef _FILE_OFFSET_BITS
|
---|
19 | #define _FILE_OFFSET_BITS 64
|
---|
20 | #endif
|
---|
21 | #endif
|
---|
22 |
|
---|
23 | #if defined(macintosh)
|
---|
24 | #include "config-mac.h"
|
---|
25 | #elif defined(_WIN32)
|
---|
26 | #include <win32config.h>
|
---|
27 | #include <libxml/xmlversion.h>
|
---|
28 | #elif defined(_WIN32_WCE)
|
---|
29 | /*
|
---|
30 | * Windows CE compatibility definitions and functions
|
---|
31 | * This is needed to compile libxml2 for Windows CE.
|
---|
32 | * At least I tested it with WinCE 5.0 for Emulator and WinCE 4.2/SH4 target
|
---|
33 | */
|
---|
34 | #include <win32config.h>
|
---|
35 | #include <libxml/xmlversion.h>
|
---|
36 | #elif defined(VBOX)
|
---|
37 | #include <vboxconfig.h>
|
---|
38 | #include <libxml/xmlversion.h>
|
---|
39 | #else
|
---|
40 | /*
|
---|
41 | * Currently supported platforms use either autoconf or
|
---|
42 | * copy to config.h own "preset" configuration file.
|
---|
43 | * As result ifdef HAVE_CONFIG_H is omited here.
|
---|
44 | */
|
---|
45 | #include "config.h"
|
---|
46 | #include <libxml/xmlversion.h>
|
---|
47 | #endif
|
---|
48 |
|
---|
49 | #if defined(__Lynx__)
|
---|
50 | #include <stdio.h> /* pull definition of size_t */
|
---|
51 | #include <varargs.h>
|
---|
52 | int snprintf(char *, size_t, const char *, ...);
|
---|
53 | int vfprintf(FILE *, const char *, va_list);
|
---|
54 | #endif
|
---|
55 |
|
---|
56 | #ifndef WITH_TRIO
|
---|
57 | #include <stdio.h>
|
---|
58 | #else
|
---|
59 | /**
|
---|
60 | * TRIO_REPLACE_STDIO:
|
---|
61 | *
|
---|
62 | * This macro is defined if teh trio string formatting functions are to
|
---|
63 | * be used instead of the default stdio ones.
|
---|
64 | */
|
---|
65 | #define TRIO_REPLACE_STDIO
|
---|
66 | #include "trio.h"
|
---|
67 | #endif
|
---|
68 |
|
---|
69 | /*
|
---|
70 | * Internal variable indicating if a callback has been registered for
|
---|
71 | * node creation/destruction. It avoids spending a lot of time in locking
|
---|
72 | * function while checking if the callback exists.
|
---|
73 | */
|
---|
74 | extern int __xmlRegisterCallbacks;
|
---|
75 | /*
|
---|
76 | * internal error reporting routines, shared but not partof the API.
|
---|
77 | */
|
---|
78 | void __xmlIOErr(int domain, int code, const char *extra);
|
---|
79 | void __xmlLoaderErr(void *ctx, const char *msg, const char *filename) LIBXML_ATTR_FORMAT(2,0);
|
---|
80 | #ifdef LIBXML_HTML_ENABLED
|
---|
81 | /*
|
---|
82 | * internal function of HTML parser needed for xmlParseInNodeContext
|
---|
83 | * but not part of the API
|
---|
84 | */
|
---|
85 | void __htmlParseContent(void *ctx);
|
---|
86 | #endif
|
---|
87 |
|
---|
88 | /*
|
---|
89 | * internal global initialization critical section routines.
|
---|
90 | */
|
---|
91 | void __xmlGlobalInitMutexLock(void);
|
---|
92 | void __xmlGlobalInitMutexUnlock(void);
|
---|
93 | void __xmlGlobalInitMutexDestroy(void);
|
---|
94 |
|
---|
95 | int __xmlInitializeDict(void);
|
---|
96 |
|
---|
97 | #if defined(HAVE_RAND) && defined(HAVE_SRAND) && defined(HAVE_TIME)
|
---|
98 | /*
|
---|
99 | * internal thread safe random function
|
---|
100 | */
|
---|
101 | int __xmlRandom(void);
|
---|
102 | #endif
|
---|
103 |
|
---|
104 | XMLPUBFUN xmlChar * XMLCALL xmlEscapeFormatString(xmlChar **msg);
|
---|
105 | int xmlNop(void);
|
---|
106 |
|
---|
107 | #ifdef IN_LIBXML
|
---|
108 | #ifdef __GNUC__
|
---|
109 | #ifdef PIC
|
---|
110 | #ifdef linux
|
---|
111 | #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
|
---|
112 | #include "elfgcchack.h"
|
---|
113 | #endif
|
---|
114 | #endif
|
---|
115 | #endif
|
---|
116 | #endif
|
---|
117 | #endif
|
---|
118 | #if !defined(PIC) && !defined(NOLIBTOOL)
|
---|
119 | # define LIBXML_STATIC
|
---|
120 | #endif
|
---|
121 | #endif /* ! __XML_LIBXML_H__ */
|
---|