api_version.inc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. { Copyright 2000-2004 The Apache Software Foundation
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. }
  15. {#include "apr.h"
  16. #include "apr_version.h"
  17. #include "apr_iconv.h"}
  18. {
  19. * @file api_version.h
  20. * @brief
  21. *
  22. * APR-iconv's Version
  23. *
  24. * There are several different mechanisms for accessing the version. There
  25. * is a string form, and a set of numbers; in addition, there are constants
  26. * which can be compiled into your application, and you can query the library
  27. * being used for its actual version.
  28. *
  29. * Note that it is possible for an application to detect that it has been
  30. * compiled against a different version of API by use of the compile-time
  31. * constants and the use of the run-time query function.
  32. *
  33. * API version numbering follows the guidelines specified in:
  34. *
  35. * http://apr.apache.org/versioning.html
  36. }
  37. { The numeric compile-time version constants. These constants are the
  38. * authoritative version numbers for API.
  39. }
  40. { major version
  41. * Major API changes that could cause compatibility problems for older
  42. * programs such as structure size changes. No binary compatibility is
  43. * possible across a change in the major version.
  44. }
  45. const
  46. API_MAJOR_VERSION = 0;
  47. {
  48. * Minor API changes that do not cause binary compatibility problems.
  49. * Should be reset to 0 when upgrading API_MAJOR_VERSION
  50. }
  51. API_MINOR_VERSION = 9;
  52. { patch level }
  53. API_PATCH_VERSION = 7;
  54. {
  55. * This symbol is defined for internal, "development" copies of API. This
  56. * symbol will be #undef'd for releases.
  57. }
  58. { #define API_IS_DEV_VERSION }
  59. { The formatted string of API's version }
  60. {#define API_VERSION_STRING \
  61. APR_STRINGIFY(API_MAJOR_VERSION) "." \
  62. APR_STRINGIFY(API_MINOR_VERSION) "." \
  63. APR_STRINGIFY(API_PATCH_VERSION) \
  64. API_IS_DEV_STRING}
  65. {
  66. * Return APR-util's version information information in a numeric form.
  67. *
  68. * @param pvsn Pointer to a version structure for returning the version
  69. * information.
  70. }
  71. //procedure api_version(pvsn: Papr_version_t);
  72. // {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
  73. // external LibAPRIconv name LibNamePrefix + 'api_version' + LibSuff4;
  74. { Return API's version information as a string. }
  75. //function api_version_string: PChar;
  76. // {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
  77. // external LibAPRIconv name LibNamePrefix + 'api_version_string' + LibSuff0;
  78. { Internal: string form of the "is dev" flag }
  79. const
  80. {$ifdef API_IS_DEV_VERSION}
  81. API_IS_DEV_STRING = '-dev';
  82. {$else}
  83. API_IS_DEV_STRING = '';
  84. {$endif}