unconfig.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /* config/unconfig.h: autogenerated by tools/unconfig.pl */
  2. #ifndef CONFIG_UNCONFIG_H
  3. #define CONFIG_UNCONFIG_H
  4. #ifndef alloc_size_func2
  5. # ifdef HAVE_FUNC_ATTRIBUTE2_ALLOC_SIZE
  6. # define alloc_size_func2(x1,x2) __attribute__((alloc_size(x1,x2)))
  7. # else
  8. # define alloc_size_func2(x1,x2)
  9. # endif
  10. #endif
  11. #ifndef alloc_size_func2_ptr
  12. # ifdef HAVE_FUNC_PTR_ATTRIBUTE2_ALLOC_SIZE
  13. # define alloc_size_func2_ptr(x1,x2) __attribute__((alloc_size(x1,x2)))
  14. # else
  15. # define alloc_size_func2_ptr(x1,x2)
  16. # endif
  17. #endif
  18. #ifndef end_with_null
  19. # ifdef HAVE_FUNC_ATTRIBUTE_SENTINEL
  20. # define end_with_null __attribute__((sentinel))
  21. # else
  22. # define end_with_null
  23. # endif
  24. #endif
  25. #ifndef end_with_null_ptr
  26. # ifdef HAVE_FUNC_PTR_ATTRIBUTE_SENTINEL
  27. # define end_with_null_ptr __attribute__((sentinel))
  28. # else
  29. # define end_with_null_ptr
  30. # endif
  31. #endif
  32. #ifndef format_func3
  33. # ifdef HAVE_FUNC_ATTRIBUTE3_FORMAT
  34. # define format_func3(x1,x2,x3) __attribute__((format(x1,x2,x3)))
  35. # else
  36. # define format_func3(x1,x2,x3)
  37. # endif
  38. #endif
  39. #ifndef format_func3_ptr
  40. # ifdef HAVE_FUNC_PTR_ATTRIBUTE3_FORMAT
  41. # define format_func3_ptr(x1,x2,x3) __attribute__((format(x1,x2,x3)))
  42. # else
  43. # define format_func3_ptr(x1,x2,x3)
  44. # endif
  45. #endif
  46. #ifndef const_func
  47. # ifdef HAVE_FUNC_ATTRIBUTE_CONST
  48. # define const_func __attribute__((const))
  49. # else
  50. # define const_func
  51. # endif
  52. #endif
  53. #ifndef const_func_ptr
  54. # ifdef HAVE_FUNC_PTR_ATTRIBUTE_CONST
  55. # define const_func_ptr __attribute__((const))
  56. # else
  57. # define const_func_ptr
  58. # endif
  59. #endif
  60. #ifndef pure_func
  61. # ifdef HAVE_FUNC_ATTRIBUTE_PURE
  62. # define pure_func __attribute__((pure))
  63. # else
  64. # define pure_func
  65. # endif
  66. #endif
  67. #ifndef pure_func_ptr
  68. # ifdef HAVE_FUNC_PTR_ATTRIBUTE_PURE
  69. # define pure_func_ptr __attribute__((pure))
  70. # else
  71. # define pure_func_ptr
  72. # endif
  73. #endif
  74. #ifndef noreturn_func
  75. # ifdef HAVE_FUNC_ATTRIBUTE_NORETURN
  76. # define noreturn_func __attribute__((noreturn))
  77. # else
  78. # define noreturn_func
  79. # endif
  80. #endif
  81. #ifndef unlikely_func
  82. # ifdef HAVE_FUNC_ATTRIBUTE_COLD
  83. # define unlikely_func __attribute__((cold))
  84. # else
  85. # define unlikely_func
  86. # endif
  87. #endif
  88. #ifndef unlikely_func_ptr
  89. # ifdef HAVE_FUNC_PTR_ATTRIBUTE_COLD
  90. # define unlikely_func_ptr __attribute__((cold))
  91. # else
  92. # define unlikely_func_ptr
  93. # endif
  94. #endif
  95. #ifndef unused_func
  96. # ifdef HAVE_FUNC_ATTRIBUTE_UNUSED
  97. # define unused_func __attribute__((unused))
  98. # else
  99. # define unused_func
  100. # endif
  101. #endif
  102. #ifndef unused_func_ptr
  103. # ifdef HAVE_FUNC_PTR_ATTRIBUTE_UNUSED
  104. # define unused_func_ptr __attribute__((unused))
  105. # else
  106. # define unused_func_ptr
  107. # endif
  108. #endif
  109. #ifndef noreturn_func_ptr
  110. # ifdef HAVE_FUNC_PTR_ATTRIBUTE_NORETURN
  111. # define noreturn_func_ptr __attribute__((noreturn))
  112. # else
  113. # define noreturn_func_ptr
  114. # endif
  115. #endif
  116. #ifndef never_null
  117. # ifdef HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL
  118. # define never_null __attribute__((returns_nonnull))
  119. # else
  120. # define never_null
  121. # endif
  122. #endif
  123. #ifndef never_null_ptr
  124. # ifdef HAVE_FUNC_PTR_ATTRIBUTE_RETURNS_NONNULL
  125. # define never_null_ptr __attribute__((returns_nonnull))
  126. # else
  127. # define never_null_ptr
  128. # endif
  129. #endif
  130. #ifndef malloc_func
  131. # ifdef HAVE_FUNC_ATTRIBUTE_MALLOC
  132. # define malloc_func __attribute__((malloc))
  133. # else
  134. # define malloc_func
  135. # endif
  136. #endif
  137. #ifndef malloc_func_ptr
  138. # ifdef HAVE_FUNC_PTR_ATTRIBUTE_MALLOC
  139. # define malloc_func_ptr __attribute__((malloc))
  140. # else
  141. # define malloc_func_ptr
  142. # endif
  143. #endif
  144. #ifndef alloc_size_func1
  145. # ifdef HAVE_FUNC_ATTRIBUTE1_ALLOC_SIZE
  146. # define alloc_size_func1(x1) __attribute__((alloc_size(x1)))
  147. # else
  148. # define alloc_size_func1(x1)
  149. # endif
  150. #endif
  151. #ifndef alloc_size_func1_ptr
  152. # ifdef HAVE_FUNC_PTR_ATTRIBUTE1_ALLOC_SIZE
  153. # define alloc_size_func1_ptr(x1) __attribute__((alloc_size(x1)))
  154. # else
  155. # define alloc_size_func1_ptr(x1)
  156. # endif
  157. #endif
  158. #endif /* CONFIG_UNCONFIG_H */