[18214] | 1 | /* |
---|
| 2 | * xsltconfig.h: compile-time version informations for the XSLT engine |
---|
| 3 | * |
---|
| 4 | * See Copyright for the status of this software. |
---|
| 5 | * |
---|
| 6 | * daniel@veillard.com |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #ifndef __XML_XSLTCONFIG_H__ |
---|
| 10 | #define __XML_XSLTCONFIG_H__ |
---|
| 11 | |
---|
| 12 | #ifdef __cplusplus |
---|
| 13 | extern "C" { |
---|
| 14 | #endif |
---|
| 15 | |
---|
| 16 | /** |
---|
| 17 | * LIBXSLT_DOTTED_VERSION: |
---|
| 18 | * |
---|
| 19 | * the version string like "1.2.3" |
---|
| 20 | */ |
---|
[19101] | 21 | #define LIBXSLT_DOTTED_VERSION "1.0.27" |
---|
[18214] | 22 | |
---|
| 23 | /** |
---|
| 24 | * LIBXSLT_VERSION: |
---|
| 25 | * |
---|
| 26 | * the version number: 1.2.3 value is 1002003 |
---|
| 27 | */ |
---|
[19101] | 28 | #define LIBXSLT_VERSION 10027 |
---|
[18214] | 29 | |
---|
| 30 | /** |
---|
| 31 | * LIBXSLT_VERSION_STRING: |
---|
| 32 | * |
---|
| 33 | * the version number string, 1.2.3 value is "1002003" |
---|
| 34 | */ |
---|
[19101] | 35 | #define LIBXSLT_VERSION_STRING "10027" |
---|
[18214] | 36 | |
---|
| 37 | /** |
---|
| 38 | * WITH_XSLT_DEBUG: |
---|
| 39 | * |
---|
| 40 | * Activate the compilation of the debug reporting. Speed penalty |
---|
| 41 | * is insignifiant and being able to run xsltpoc -v is useful. On |
---|
| 42 | * by default unless --without-debug is passed to configure |
---|
| 43 | */ |
---|
| 44 | #if 1 |
---|
| 45 | #define WITH_XSLT_DEBUG |
---|
| 46 | #endif |
---|
| 47 | |
---|
| 48 | #if 1 |
---|
| 49 | /** |
---|
| 50 | * DEBUG_MEMORY: |
---|
| 51 | * |
---|
| 52 | * should be activated only when debugging libxslt. It replaces the |
---|
| 53 | * allocator with a collect and debug shell to the libc allocator. |
---|
| 54 | * Use configure --with-mem-debug to activate it on both library |
---|
| 55 | */ |
---|
| 56 | #define DEBUG_MEMORY |
---|
| 57 | |
---|
| 58 | /** |
---|
| 59 | * DEBUG_MEMORY_LOCATION: |
---|
| 60 | * |
---|
| 61 | * should be activated only when debugging libxslt. |
---|
| 62 | * DEBUG_MEMORY_LOCATION should be activated only when libxml has |
---|
| 63 | * been configured with --with-debug-mem too |
---|
| 64 | */ |
---|
| 65 | #define DEBUG_MEMORY_LOCATION |
---|
| 66 | #endif |
---|
| 67 | |
---|
| 68 | /** |
---|
| 69 | * XSLT_NEED_TRIO: |
---|
| 70 | * |
---|
| 71 | * should be activated in the existing libc library lacks some of the |
---|
| 72 | * string formatting function, in that case reuse the Trio ones already |
---|
| 73 | * compiled in the libxml2 library. |
---|
| 74 | */ |
---|
| 75 | |
---|
| 76 | #if 0 |
---|
| 77 | #define XSLT_NEED_TRIO |
---|
| 78 | #endif |
---|
[18542] | 79 | #ifdef __VMS |
---|
| 80 | #ifndef XSLT_NEED_TRIO |
---|
| 81 | #define XSLT_NEED_TRIO |
---|
| 82 | #endif |
---|
| 83 | #endif |
---|
[18214] | 84 | |
---|
| 85 | /** |
---|
| 86 | * WITH_XSLT_DEBUGGER: |
---|
| 87 | * |
---|
| 88 | * Activate the compilation of the debugger support. Speed penalty |
---|
| 89 | * is insignifiant. |
---|
| 90 | * On by default unless --without-debugger is passed to configure |
---|
| 91 | */ |
---|
| 92 | #if 1 |
---|
| 93 | #ifndef WITH_DEBUGGER |
---|
| 94 | #define WITH_DEBUGGER |
---|
| 95 | #endif |
---|
| 96 | #endif |
---|
| 97 | |
---|
| 98 | /** |
---|
| 99 | * ATTRIBUTE_UNUSED: |
---|
| 100 | * |
---|
| 101 | * This macro is used to flag unused function parameters to GCC |
---|
| 102 | */ |
---|
| 103 | #ifdef __GNUC__ |
---|
| 104 | #ifdef HAVE_ANSIDECL_H |
---|
| 105 | #include <ansidecl.h> |
---|
| 106 | #endif |
---|
| 107 | #ifndef ATTRIBUTE_UNUSED |
---|
| 108 | #define ATTRIBUTE_UNUSED |
---|
| 109 | #endif |
---|
| 110 | #else |
---|
| 111 | #define ATTRIBUTE_UNUSED |
---|
| 112 | #endif |
---|
| 113 | |
---|
| 114 | /** |
---|
| 115 | * LIBXSLT_PUBLIC: |
---|
| 116 | * |
---|
| 117 | * This macro is used to declare PUBLIC variables for Cygwin and for MSC on Windows |
---|
| 118 | */ |
---|
| 119 | #if !defined LIBXSLT_PUBLIC |
---|
| 120 | #if (defined(__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC |
---|
| 121 | #define LIBXSLT_PUBLIC __declspec(dllimport) |
---|
| 122 | #else |
---|
| 123 | #define LIBXSLT_PUBLIC |
---|
| 124 | #endif |
---|
| 125 | #endif |
---|
| 126 | |
---|
| 127 | #ifdef __cplusplus |
---|
| 128 | } |
---|
| 129 | #endif |
---|
| 130 | |
---|
| 131 | #endif /* __XML_XSLTCONFIG_H__ */ |
---|