mirror of
https://github.com/GNOME/libxml2.git
synced 2025-02-23 18:29:14 +08:00
* Makefile.am TODO_SCHEMAS configure.in genUnicode.py testAutomata.c testRegexp.c testSchemas.c xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c include/libxml/Makefile.am include/libxml/schemasInternals.h include/libxml/xmlautomata.h include/libxml/xmlregexp.h include/libxml/xmlschemas.h include/libxml/xmlschemastypes.h include/libxml/xmlunicode.h include/libxml/xmlversion.h.in : merged the current state of XML Schemas implementation, it is not configured in by default, a specific --schemas configure option has been added. * test/automata test/regexp test/schemas Makefile.am result/automata result/regexp result/schemas: merged automata/regexp/schemas regression tests Daniel
273 lines
5.0 KiB
C
273 lines
5.0 KiB
C
/*
|
|
* xmlversion.h : compile-time version informations for the XML parser.
|
|
*
|
|
* See Copyright for the status of this software.
|
|
*
|
|
* daniel@veillard.com
|
|
*/
|
|
|
|
#ifndef __XML_VERSION_H__
|
|
#define __XML_VERSION_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* use those to be sure nothing nasty will happen if
|
|
* your library and includes mismatch
|
|
*/
|
|
#ifndef LIBXML2_COMPILING_MSCCDEF
|
|
extern void xmlCheckVersion(int version);
|
|
#endif /* LIBXML2_COMPILING_MSCCDEF */
|
|
|
|
/**
|
|
* LIBXML_DOTTED_VERSION:
|
|
*
|
|
* the version string like "1.2.3"
|
|
*/
|
|
#define LIBXML_DOTTED_VERSION "@VERSION@"
|
|
|
|
/**
|
|
* LIBXML_VERSION:
|
|
*
|
|
* the version number: 1.2.3 value is 1002003
|
|
*/
|
|
#define LIBXML_VERSION @LIBXML_VERSION_NUMBER@
|
|
|
|
/**
|
|
* LIBXML_VERSION_STRING:
|
|
*
|
|
* the version number string, 1.2.3 value is "1002003"
|
|
*/
|
|
#define LIBXML_VERSION_STRING "@LIBXML_VERSION_NUMBER@"
|
|
|
|
/**
|
|
* LIBXML_TEST_VERSION:
|
|
*
|
|
* Macro to check that the libxml version in use is compatible with
|
|
* the version the software has been compiled against
|
|
*/
|
|
#define LIBXML_TEST_VERSION xmlCheckVersion(@LIBXML_VERSION_NUMBER@);
|
|
|
|
#ifndef VMS
|
|
#if @WITH_TRIO@
|
|
/**
|
|
* WITH_TRIO:
|
|
*
|
|
* defined if the trio support need to be configured in
|
|
*/
|
|
#define WITH_TRIO
|
|
#else
|
|
/**
|
|
* WITHOUT_TRIO:
|
|
*
|
|
* defined if the trio support should not be configured in
|
|
*/
|
|
#define WITHOUT_TRIO
|
|
#endif
|
|
#else /* VMS */
|
|
#define WITH_TRIO 1
|
|
#endif /* VMS */
|
|
|
|
/**
|
|
* LIBXML_THREAD_ENABLED:
|
|
*
|
|
* Whether the thread support is configured in
|
|
*/
|
|
#if @WITH_THREADS@
|
|
#if defined(_REENTRANT) || (_POSIX_C_SOURCE - 0 >= 199506L)
|
|
#define LIBXML_THREAD_ENABLED
|
|
#endif
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_FTP_ENABLED:
|
|
*
|
|
* Whether the FTP support is configured in
|
|
*/
|
|
#if @WITH_FTP@
|
|
#define LIBXML_FTP_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_HTTP_ENABLED:
|
|
*
|
|
* Whether the HTTP support is configured in
|
|
*/
|
|
#if @WITH_HTTP@
|
|
#define LIBXML_HTTP_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_HTML_ENABLED:
|
|
*
|
|
* Whether the HTML support is configured in
|
|
*/
|
|
#if @WITH_HTML@
|
|
#define LIBXML_HTML_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_C14N_ENABLED:
|
|
*
|
|
* Whether the Canonicalization support is configured in
|
|
*/
|
|
#if @WITH_C14N@
|
|
#define LIBXML_C14N_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_CATALOG_ENABLED:
|
|
*
|
|
* Whether the Catalog support is configured in
|
|
*/
|
|
#if @WITH_CATALOG@
|
|
#define LIBXML_CATALOG_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_DOCB_ENABLED:
|
|
*
|
|
* Whether the SGML Docbook support is configured in
|
|
*/
|
|
#if @WITH_DOCB@
|
|
#define LIBXML_DOCB_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_XPATH_ENABLED:
|
|
*
|
|
* Whether XPath is configured in
|
|
*/
|
|
#if @WITH_XPATH@
|
|
#define LIBXML_XPATH_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_XPTR_ENABLED:
|
|
*
|
|
* Whether XPointer is configured in
|
|
*/
|
|
#if @WITH_XPTR@
|
|
#define LIBXML_XPTR_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_XINCLUDE_ENABLED:
|
|
*
|
|
* Whether XInclude is configured in
|
|
*/
|
|
#if @WITH_XINCLUDE@
|
|
#define LIBXML_XINCLUDE_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_ICONV_ENABLED:
|
|
*
|
|
* Whether iconv support is available
|
|
*/
|
|
#if @WITH_ICONV@
|
|
#define LIBXML_ICONV_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_DEBUG_ENABLED:
|
|
*
|
|
* Whether Debugging module is configured in
|
|
*/
|
|
#if @WITH_DEBUG@
|
|
#define LIBXML_DEBUG_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* DEBUG_MEMORY_LOCATION:
|
|
*
|
|
* Whether the memory debugging is configured in
|
|
*/
|
|
#if @WITH_MEM_DEBUG@
|
|
#define DEBUG_MEMORY_LOCATION
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_UNICODE_ENABLED
|
|
*
|
|
* Whether the Unicode related interfaces are compiled in
|
|
*/
|
|
#if @WITH_SCHEMAS@
|
|
#define LIBXML_UNICODE_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_REGEXP_ENABLED
|
|
*
|
|
* Whether the regular expressions interfaces are compiled in
|
|
*/
|
|
#if @WITH_SCHEMAS@
|
|
#define LIBXML_REGEXP_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_AUTOMATA_ENABLED
|
|
*
|
|
* Whether the automata interfaces are compiled in
|
|
*/
|
|
#if @WITH_SCHEMAS@
|
|
#define LIBXML_AUTOMATA_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_SCHEMAS_ENABLED
|
|
*
|
|
* Whether the Schemas validation interfaces are compiled in
|
|
*/
|
|
#if @WITH_SCHEMAS@
|
|
#define LIBXML_SCHEMAS_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* LIBXML_DLL_IMPORT:
|
|
*
|
|
* Used on Windows (MS C compiler only) to declare a variable as
|
|
* imported from the library. This macro should be empty when compiling
|
|
* libxml itself. It should expand to __declspec(dllimport)
|
|
* when the client code includes this header, and that only if the client
|
|
* links dynamically against libxml.
|
|
* For this to work, we need three macros. One tells us which compiler is
|
|
* being used and luckily the compiler defines such a thing: _MSC_VER. The
|
|
* second macro tells us if we are compiling libxml or the client code and
|
|
* we define the macro IN_LIBXML on the compiler's command line for this
|
|
* purpose. The third macro, LIBXML_STATIC, must be defined by any client
|
|
* code which links against libxml statically.
|
|
*/
|
|
#ifndef LIBXML_DLL_IMPORT
|
|
#if (defined(_MSC_VER) || defined(__CYGWIN__)) && !defined(IN_LIBXML) && !defined(LIBXML_STATIC)
|
|
#define LIBXML_DLL_IMPORT __declspec(dllimport)
|
|
#else
|
|
#define LIBXML_DLL_IMPORT
|
|
#endif
|
|
#endif
|
|
|
|
/**
|
|
* ATTRIBUTE_UNUSED:
|
|
*
|
|
* Macro used to signal to GCC unused function parameters
|
|
*/
|
|
#ifdef __GNUC__
|
|
#ifdef HAVE_ANSIDECL_H
|
|
#include <ansidecl.h>
|
|
#endif
|
|
#ifndef ATTRIBUTE_UNUSED
|
|
#define ATTRIBUTE_UNUSED
|
|
#endif
|
|
#else
|
|
#define ATTRIBUTE_UNUSED
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
#endif
|
|
|
|
|