apu.hnw 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
  2. * applicable.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /*
  17. * Note: This is a NetWare specific version of apu.h. It is renamed to
  18. * apu.h at the start of a NetWare build.
  19. */
  20. /* @file apu.h
  21. * @brief APR-Utility main file
  22. */
  23. /**
  24. * @defgroup APR_Util APR Utility Functions
  25. * @{
  26. */
  27. #ifndef APU_H
  28. #define APU_H
  29. /**
  30. * APU_DECLARE_EXPORT is defined when building the APR-UTIL dynamic library,
  31. * so that all public symbols are exported.
  32. *
  33. * APU_DECLARE_STATIC is defined when including the APR-UTIL public headers,
  34. * to provide static linkage when the dynamic library may be unavailable.
  35. *
  36. * APU_DECLARE_STATIC and APU_DECLARE_EXPORT are left undefined when
  37. * including the APR-UTIL public headers, to import and link the symbols from
  38. * the dynamic APR-UTIL library and assure appropriate indirection and calling
  39. * conventions at compile time.
  40. */
  41. /**
  42. * The public APR-UTIL functions are declared with APU_DECLARE(), so they may
  43. * use the most appropriate calling convention. Public APR functions with
  44. * variable arguments must use APU_DECLARE_NONSTD().
  45. *
  46. * @deffunc APU_DECLARE(rettype) apr_func(args);
  47. */
  48. #define APU_DECLARE(type) type
  49. /**
  50. * The public APR-UTIL functions using variable arguments are declared with
  51. * APU_DECLARE_NONSTD(), as they must use the C language calling convention.
  52. *
  53. * @deffunc APU_DECLARE_NONSTD(rettype) apr_func(args, ...);
  54. */
  55. #define APU_DECLARE_NONSTD(type) type
  56. /**
  57. * The public APR-UTIL variables are declared with APU_DECLARE_DATA.
  58. * This assures the appropriate indirection is invoked at compile time.
  59. *
  60. * @deffunc APU_DECLARE_DATA type apr_variable;
  61. * @tip APU_DECLARE_DATA extern type apr_variable; syntax is required for
  62. * declarations within headers to properly import the variable.
  63. */
  64. #define APU_DECLARE_DATA
  65. /*
  66. * we always have SDBM (it's in our codebase)
  67. */
  68. #define APU_HAVE_SDBM 1
  69. #define APU_HAVE_GDBM 0
  70. #define APU_HAVE_DB 0
  71. #define HAVE_ICONV_H 1
  72. #define APU_HAVE_APR_ICONV 0
  73. #define APU_HAVE_ICONV 1
  74. #define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)
  75. #endif /* APU_H */
  76. /** @} */