mirror of
https://github.com/GNOME/libxml2.git
synced 2025-06-11 07:02:10 +08:00

* elfgcchack.h doc/elfgcchack.xsl libxml.h: hack based on Arjan van de Ven suggestion to reduce ELF footprint and generated code. Based on aliasing of libraries function to generate direct call instead of indirect ones * doc/libxml2-api.xml doc/Makefile.am doc/apibuild.py: added automatic generation of elfgcchack.h based on the API description, extended the API description to show the conditionals configuration flags required for symbols. * nanohttp.c parser.c xmlsave.c include/libxml/*.h: lot of cleanup * doc/*: regenerated the docs. Daniel
61 lines
1.3 KiB
C
61 lines
1.3 KiB
C
/*
|
|
* libxml.h: internal header only used during the compilation of libxml
|
|
*
|
|
* See COPYRIGHT for the status of this software
|
|
*
|
|
* Author: breese@users.sourceforge.net
|
|
*/
|
|
|
|
#ifndef __XML_LIBXML_H__
|
|
#define __XML_LIBXML_H__
|
|
|
|
#ifndef NO_LARGEFILE_SOURCE
|
|
#ifndef _LARGEFILE_SOURCE
|
|
#define _LARGEFILE_SOURCE
|
|
#endif
|
|
#ifndef _FILE_OFFSET_BITS
|
|
#define _FILE_OFFSET_BITS 64
|
|
#endif
|
|
#endif
|
|
|
|
#if defined(macintosh)
|
|
#include "config-mac.h"
|
|
#else
|
|
#include "config.h"
|
|
#include <libxml/xmlversion.h>
|
|
#endif
|
|
|
|
#ifndef WITH_TRIO
|
|
#include <stdio.h>
|
|
#else
|
|
/**
|
|
* TRIO_REPLACE_STDIO:
|
|
*
|
|
* This macro is defined if teh trio string formatting functions are to
|
|
* be used instead of the default stdio ones.
|
|
*/
|
|
#define TRIO_REPLACE_STDIO
|
|
#include "trio.h"
|
|
#endif
|
|
|
|
/*
|
|
* Internal variable indicating if a callback has been registered for
|
|
* node creation/destruction. It avoids spending a lot of time in locking
|
|
* function while checking if the callback exists.
|
|
*/
|
|
extern int __xmlRegisterCallbacks;
|
|
/*
|
|
* internal error reporting routines, shared but not partof the API.
|
|
*/
|
|
void __xmlIOErr(int domain, int code, const char *extra);
|
|
void __xmlLoaderErr(void *ctx, const char *msg, const char *filename);
|
|
|
|
#ifdef IN_LIBXML
|
|
#ifdef __GNUC__
|
|
#ifdef linux
|
|
#include "elfgcchack.h"
|
|
#endif
|
|
#endif
|
|
#endif
|
|
#endif /* ! __XML_LIBXML_H__ */
|