aboutsummaryrefslogtreecommitdiffstats
path: root/config/unconfig.h
blob: 79cb70aa76949c8397dfccd1835a79d16aa66734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
/* config/unconfig.h: autogenerated by tools/unconfig.pl */

#ifndef CONFIG_UNCONFIG_H
#define CONFIG_UNCONFIG_H

#ifndef alloc_size_func2
# ifdef HAVE_FUNC_ATTRIBUTE2_ALLOC_SIZE
#  define alloc_size_func2(x1,x2) __attribute__((alloc_size(x1,x2)))
# else
#  define alloc_size_func2(x1,x2)
# endif
#endif

#ifndef alloc_size_func2_ptr
# ifdef HAVE_FUNC_PTR_ATTRIBUTE2_ALLOC_SIZE
#  define alloc_size_func2_ptr(x1,x2) __attribute__((alloc_size(x1,x2)))
# else
#  define alloc_size_func2_ptr(x1,x2)
# endif
#endif

#ifndef end_with_null
# ifdef HAVE_FUNC_ATTRIBUTE_SENTINEL
#  define end_with_null __attribute__((sentinel))
# else
#  define end_with_null
# endif
#endif

#ifndef end_with_null_ptr
# ifdef HAVE_FUNC_PTR_ATTRIBUTE_SENTINEL
#  define end_with_null_ptr __attribute__((sentinel))
# else
#  define end_with_null_ptr
# endif
#endif

#ifndef format_func3
# ifdef HAVE_FUNC_ATTRIBUTE3_FORMAT
#  define format_func3(x1,x2,x3) __attribute__((format(x1,x2,x3)))
# else
#  define format_func3(x1,x2,x3)
# endif
#endif

#ifndef format_func3_ptr
# ifdef HAVE_FUNC_PTR_ATTRIBUTE3_FORMAT
#  define format_func3_ptr(x1,x2,x3) __attribute__((format(x1,x2,x3)))
# else
#  define format_func3_ptr(x1,x2,x3)
# endif
#endif

#ifndef const_func
# ifdef HAVE_FUNC_ATTRIBUTE_CONST
#  define const_func __attribute__((const))
# else
#  define const_func
# endif
#endif

#ifndef const_func_ptr
# ifdef HAVE_FUNC_PTR_ATTRIBUTE_CONST
#  define const_func_ptr __attribute__((const))
# else
#  define const_func_ptr
# endif
#endif

#ifndef pure_func
# ifdef HAVE_FUNC_ATTRIBUTE_PURE
#  define pure_func __attribute__((pure))
# else
#  define pure_func
# endif
#endif

#ifndef pure_func_ptr
# ifdef HAVE_FUNC_PTR_ATTRIBUTE_PURE
#  define pure_func_ptr __attribute__((pure))
# else
#  define pure_func_ptr
# endif
#endif

#ifndef noreturn_func
# ifdef HAVE_FUNC_ATTRIBUTE_NORETURN
#  define noreturn_func __attribute__((noreturn))
# else
#  define noreturn_func
# endif
#endif

#ifndef unlikely_func
# ifdef HAVE_FUNC_ATTRIBUTE_COLD
#  define unlikely_func __attribute__((cold))
# else
#  define unlikely_func
# endif
#endif

#ifndef unlikely_func_ptr
# ifdef HAVE_FUNC_PTR_ATTRIBUTE_COLD
#  define unlikely_func_ptr __attribute__((cold))
# else
#  define unlikely_func_ptr
# endif
#endif

#ifndef unused_func
# ifdef HAVE_FUNC_ATTRIBUTE_UNUSED
#  define unused_func __attribute__((unused))
# else
#  define unused_func
# endif
#endif

#ifndef unused_func_ptr
# ifdef HAVE_FUNC_PTR_ATTRIBUTE_UNUSED
#  define unused_func_ptr __attribute__((unused))
# else
#  define unused_func_ptr
# endif
#endif

#ifndef noreturn_func_ptr
# ifdef HAVE_FUNC_PTR_ATTRIBUTE_NORETURN
#  define noreturn_func_ptr __attribute__((noreturn))
# else
#  define noreturn_func_ptr
# endif
#endif

#ifndef never_null
# ifdef HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL
#  define never_null __attribute__((returns_nonnull))
# else
#  define never_null
# endif
#endif

#ifndef never_null_ptr
# ifdef HAVE_FUNC_PTR_ATTRIBUTE_RETURNS_NONNULL
#  define never_null_ptr __attribute__((returns_nonnull))
# else
#  define never_null_ptr
# endif
#endif

#ifndef malloc_func
# ifdef HAVE_FUNC_ATTRIBUTE_MALLOC
#  define malloc_func __attribute__((malloc))
# else
#  define malloc_func
# endif
#endif

#ifndef malloc_func_ptr
# ifdef HAVE_FUNC_PTR_ATTRIBUTE_MALLOC
#  define malloc_func_ptr __attribute__((malloc))
# else
#  define malloc_func_ptr
# endif
#endif

#ifndef alloc_size_func1
# ifdef HAVE_FUNC_ATTRIBUTE1_ALLOC_SIZE
#  define alloc_size_func1(x1) __attribute__((alloc_size(x1)))
# else
#  define alloc_size_func1(x1)
# endif
#endif

#ifndef alloc_size_func1_ptr
# ifdef HAVE_FUNC_PTR_ATTRIBUTE1_ALLOC_SIZE
#  define alloc_size_func1_ptr(x1) __attribute__((alloc_size(x1)))
# else
#  define alloc_size_func1_ptr(x1)
# endif
#endif

#endif /* CONFIG_UNCONFIG_H */