You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

144 lines
6.7 KiB

27 years ago
27 years ago
23 years ago
23 years ago
23 years ago
23 years ago
23 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2004 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.0 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available through the world-wide-web at the following url: |
  10. | http://www.php.net/license/3_0.txt. |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Author: |
  16. +----------------------------------------------------------------------+
  17. */
  18. /* $Id$ */
  19. #ifndef PHP_COMPAT_H
  20. #define PHP_COMPAT_H
  21. #ifdef PHP_WIN32
  22. #include "config.w32.h"
  23. #elif defined(NETWARE)
  24. #include "config.nw.h"
  25. #else
  26. #include "php_config.h"
  27. #endif
  28. #if defined(HAVE_BUNDLED_PCRE) || !defined(PHP_VERSION)
  29. #define pcre_compile php_pcre_compile
  30. #define pcre_copy_substring php_pcre_copy_substring
  31. #define pcre_exec php_pcre_exec
  32. #define pcre_get_substring php_pcre_substring
  33. #define pcre_get_substring_list php_pcre_get_substring_list
  34. #define pcre_info php_pcre_info
  35. #define pcre_maketables php_pcre_maketables
  36. #define pcre_study php_pcre_study
  37. #define pcre_version php_pcre_version
  38. #define pcre_fullinfo php_pcre_fullinfo
  39. #endif
  40. #define lookup php_lookup
  41. #define hashTableInit php_hashTableInit
  42. #define hashTableDestroy php_hashTableDestroy
  43. #define hashTableIterInit php_hashTableIterInit
  44. #define hashTableIterNext php_hashTableIterNext
  45. #if defined(HAVE_LIBXML) && defined(HAVE_XML) && !defined(HAVE_LIBEXPAT)
  46. #define XML_DefaultCurrent php_XML_DefaultCurrent
  47. #define XML_ErrorString php_XML_ErrorString
  48. #define XML_ExpatVersion php_XML_ExpatVersion
  49. #define XML_ExpatVersionInfo php_XML_ExpatVersionInfo
  50. #define XML_ExternalEntityParserCreate php_XML_ExternalEntityParserCreate
  51. #define XML_GetBase php_XML_GetBase
  52. #define XML_GetBuffer php_XML_GetBuffer
  53. #define XML_GetCurrentByteCount php_XML_GetCurrentByteCount
  54. #define XML_GetCurrentByteIndex php_XML_GetCurrentByteIndex
  55. #define XML_GetCurrentColumnNumber php_XML_GetCurrentColumnNumber
  56. #define XML_GetCurrentLineNumber php_XML_GetCurrentLineNumber
  57. #define XML_GetErrorCode php_XML_GetErrorCode
  58. #define XML_GetIdAttributeIndex php_XML_GetIdAttributeIndex
  59. #define XML_GetInputContext php_XML_GetInputContext
  60. #define XML_GetSpecifiedAttributeCount php_XML_GetSpecifiedAttributeCount
  61. #define XmlGetUtf16InternalEncodingNS php_XmlGetUtf16InternalEncodingNS
  62. #define XmlGetUtf16InternalEncoding php_XmlGetUtf16InternalEncoding
  63. #define XmlGetUtf8InternalEncodingNS php_XmlGetUtf8InternalEncodingNS
  64. #define XmlGetUtf8InternalEncoding php_XmlGetUtf8InternalEncoding
  65. #define XmlInitEncoding php_XmlInitEncoding
  66. #define XmlInitEncodingNS php_XmlInitEncodingNS
  67. #define XmlInitUnknownEncoding php_XmlInitUnknownEncoding
  68. #define XmlInitUnknownEncodingNS php_XmlInitUnknownEncodingNS
  69. #define XML_ParseBuffer php_XML_ParseBuffer
  70. #define XML_Parse php_XML_Parse
  71. #define XML_ParserCreate_MM php_XML_ParserCreate_MM
  72. #define XML_ParserCreateNS php_XML_ParserCreateNS
  73. #define XML_ParserCreate php_XML_ParserCreate
  74. #define XML_ParserFree php_XML_ParserFree
  75. #define XmlParseXmlDecl php_XmlParseXmlDecl
  76. #define XmlParseXmlDeclNS php_XmlParseXmlDeclNS
  77. #define XmlPrologStateInitExternalEntity php_XmlPrologStateInitExternalEntity
  78. #define XmlPrologStateInit php_XmlPrologStateInit
  79. #define XML_SetAttlistDeclHandler php_XML_SetAttlistDeclHandler
  80. #define XML_SetBase php_XML_SetBase
  81. #define XML_SetCdataSectionHandler php_XML_SetCdataSectionHandler
  82. #define XML_SetCharacterDataHandler php_XML_SetCharacterDataHandler
  83. #define XML_SetCommentHandler php_XML_SetCommentHandler
  84. #define XML_SetDefaultHandlerExpand php_XML_SetDefaultHandlerExpand
  85. #define XML_SetDefaultHandler php_XML_SetDefaultHandler
  86. #define XML_SetDoctypeDeclHandler php_XML_SetDoctypeDeclHandler
  87. #define XML_SetElementDeclHandler php_XML_SetElementDeclHandler
  88. #define XML_SetElementHandler php_XML_SetElementHandler
  89. #define XML_SetEncoding php_XML_SetEncoding
  90. #define XML_SetEndCdataSectionHandler php_XML_SetEndCdataSectionHandler
  91. #define XML_SetEndDoctypeDeclHandler php_XML_SetEndDoctypeDeclHandler
  92. #define XML_SetEndElementHandler php_XML_SetEndElementHandler
  93. #define XML_SetEndNamespaceDeclHandler php_XML_SetEndNamespaceDeclHandler
  94. #define XML_SetEntityDeclHandler php_XML_SetEntityDeclHandler
  95. #define XML_SetExternalEntityRefHandlerArg php_XML_SetExternalEntityRefHandlerArg
  96. #define XML_SetExternalEntityRefHandler php_XML_SetExternalEntityRefHandler
  97. #define XML_SetNamespaceDeclHandler php_XML_SetNamespaceDeclHandler
  98. #define XML_SetNotationDeclHandler php_XML_SetNotationDeclHandler
  99. #define XML_SetNotStandaloneHandler php_XML_SetNotStandaloneHandler
  100. #define XML_SetParamEntityParsing php_XML_SetParamEntityParsing
  101. #define XML_SetProcessingInstructionHandler php_XML_SetProcessingInstructionHandler
  102. #define XML_SetReturnNSTriplet php_XML_SetReturnNSTriplet
  103. #define XML_SetStartCdataSectionHandler php_XML_SetStartCdataSectionHandler
  104. #define XML_SetStartDoctypeDeclHandler php_XML_SetStartDoctypeDeclHandler
  105. #define XML_SetStartElementHandler php_XML_SetStartElementHandler
  106. #define XML_SetStartNamespaceDeclHandler php_XML_SetStartNamespaceDeclHandler
  107. #define XML_SetUnknownEncodingHandler php_XML_SetUnknownEncodingHandler
  108. #define XML_SetUnparsedEntityDeclHandler php_XML_SetUnparsedEntityDeclHandler
  109. #define XML_SetUserData php_XML_SetUserData
  110. #define XML_SetXmlDeclHandler php_XML_SetXmlDeclHandler
  111. #define XmlSizeOfUnknownEncoding php_XmlSizeOfUnknownEncoding
  112. #define XML_UseParserAsHandlerArg php_XML_UseParserAsHandlerArg
  113. #define XmlUtf16Encode php_XmlUtf16Encode
  114. #define XmlUtf8Encode php_XmlUtf8Encode
  115. #define XML_FreeContentModel php_XML_FreeContentModel
  116. #define XML_MemMalloc php_XML_MemMalloc
  117. #define XML_MemRealloc php_XML_MemRealloc
  118. #define XML_MemFree php_XML_MemFree
  119. #define XML_UseForeignDTD php_XML_UseForeignDTD
  120. #define XML_GetFeatureList php_XML_GetFeatureList
  121. #define XML_ParserReset php_XML_ParserReset
  122. /* Define to specify how much context to retain around the current parse
  123. point. */
  124. #define XML_CONTEXT_BYTES 1024
  125. /* Define to make parameter entity parsing functionality available. */
  126. #define XML_DTD 1
  127. /* Define to make XML Namespaces functionality available. */
  128. #define XML_NS 1
  129. #endif
  130. #ifdef PHP_EXPORTS
  131. #define PCRE_STATIC
  132. #endif
  133. #endif