blob: 37c615692d0d9cebc4298904dec973c0482892ca [file] [log] [blame]
Bjorn Reese70a9da52001-04-21 16:57:29 +00001/*
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
Daniel Veillard3e59fc52003-04-18 12:34:58 +000012#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
Igor Zlatkovica6ceeb42003-08-28 10:25:13 +000021#if defined(macintosh)
Daniel Veillardd3b08822001-12-05 12:03:33 +000022#include "config-mac.h"
Bjorn Reese70a9da52001-04-21 16:57:29 +000023#else
24#include "config.h"
Bjorn Reese70a9da52001-04-21 16:57:29 +000025#include <libxml/xmlversion.h>
Daniel Veillard87ee9142001-06-28 12:54:16 +000026#endif
Bjorn Reese70a9da52001-04-21 16:57:29 +000027
Daniel Veillardf79fbfc2006-05-31 13:35:28 +000028#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
Daniel Veillard7cf5e442001-09-10 20:16:32 +000035#ifndef WITH_TRIO
Bjorn Reese70a9da52001-04-21 16:57:29 +000036#include <stdio.h>
37#else
Daniel Veillard5e2dace2001-07-18 19:30:27 +000038/**
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 */
Bjorn Reese70a9da52001-04-21 16:57:29 +000044#define TRIO_REPLACE_STDIO
45#include "trio.h"
46#endif
Bjorn Reese70a9da52001-04-21 16:57:29 +000047
Daniel Veillarda880b122003-04-21 21:36:41 +000048/*
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;
Daniel Veillarde8039df2003-10-27 11:25:13 +000054/*
55 * internal error reporting routines, shared but not partof the API.
56 */
Daniel Veillard2b0f8792003-10-10 19:36:36 +000057void __xmlIOErr(int domain, int code, const char *extra);
Daniel Veillarde8039df2003-10-27 11:25:13 +000058void __xmlLoaderErr(void *ctx, const char *msg, const char *filename);
Daniel Veillard499cc922006-01-18 17:22:35 +000059#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
Daniel Veillardfde5b0b2007-02-12 17:31:53 +000067/*
68 * internal global initialization critical section routines.
69 */
70void __xmlGlobalInitMutexLock(void);
71void __xmlGlobalInitMutexUnlock(void);
Daniel Veillarda2351322004-06-27 12:08:10 +000072
73#ifdef IN_LIBXML
74#ifdef __GNUC__
Daniel Veillardbe3eb202004-07-09 12:05:25 +000075#ifdef PIC
Daniel Veillarda2351322004-06-27 12:08:10 +000076#ifdef linux
Daniel Veillardc0c6ce22005-03-10 09:22:07 +000077#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
Daniel Veillarda2351322004-06-27 12:08:10 +000078#include "elfgcchack.h"
79#endif
80#endif
81#endif
Daniel Veillardbe3eb202004-07-09 12:05:25 +000082#endif
Daniel Veillardc0c6ce22005-03-10 09:22:07 +000083#endif
Bjorn Reese70a9da52001-04-21 16:57:29 +000084#endif /* ! __XML_LIBXML_H__ */