Release 5.0-rc4.
[wine.git] / include / sal.h
blob823361af17edd5c6a46f69f321acb15f5d811119
1 /*
2 * Copyright (C) 2018 Alistair Leslie-Hughes
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_SAL_H__
20 #define __WINE_SAL_H__
23 #define _Always_(exp)
25 #define _At_
26 #define _At_buffer_(a, b, c, d)
28 #define _Check_return_
29 #define _Check_return_opt_
31 #define _COM_Outptr_
32 #define _COM_Outptr_result_maybenull_
34 #define _Deref_out_
35 #define _Deref_out_z_
36 #define _Deref_out_opt_
37 #define _Deref_out_opt_z_
38 #define _Deref_post_maybenull_
39 #define _Deref_post_opt_cap_(count)
40 #define _Deref_post_opt_valid_
41 #define _Deref_post_opt_z_cap_(count)
42 #define _Deref_post_valid_
43 #define _Deref_post_z_
44 #define _Deref_pre_maybenull_
45 #define _Deref_pre_z_
46 #define _Deref_prepost_opt_z_
47 #define _Deref_ret_z_
49 #define _Field_range_(min, max)
51 #define __in
52 #define __in_opt
53 #define _In_
54 #define _In_bytecount_(count)
55 #define _In_bytecount_c_(count)
56 #define _In_bytecount_x_(count)
57 #define _In_count_(count)
58 #define _In_count_c_(count)
59 #define _In_count_x_(count)
60 #define _In_opt_
61 #define _In_opt_bytecount_(count)
62 #define _In_opt_bytecount_c_(count)
63 #define _In_opt_bytecount_x_(count)
64 #define _In_opt_count_(count)
65 #define _In_opt_count_c_(count)
66 #define _In_opt_count_x_(count)
67 #define _In_opt_ptrdiff_count_(count)
68 #define _In_opt_z_
69 #define _In_opt_z_count_(count)
70 #define _In_opt_z_count_c_(count)
71 #define _In_opt_z_bytecount_(count)
72 #define _In_opt_z_bytecount_c_(count)
73 #define _In_ptrdiff_count_(count)
74 #define _In_range_(min, max)
75 #define _In_reads_(count)
76 #define _In_reads_bytes_(count)
77 #define _In_reads_bytes_opt_(count)
78 #define _In_reads_opt_(count)
79 #define _In_reads_opt_z_(count)
80 #define _In_reads_or_z_(count)
81 #define _In_reads_or_z_opt_(count)
82 #define _In_reads_z_(count)
83 #define _In_z_
84 #define _In_z_bytecount_(count)
85 #define _In_z_bytecount_c_(count)
86 #define _In_z_count_(count)
87 #define _In_z_count_c_(count)
89 #define __inout
90 #define _Inout_
91 #define _Inout_bytecap_x_(count)
92 #define _Inout_cap_(count)
93 #define _Inout_opt_
94 #define _Inout_opt_cap_c_(count)
95 #define _Inout_opt_z_
96 #define _Inout_opt_z_bytecap_(count)
97 #define _Inout_updates_(count)
98 #define _Inout_updates_bytes_(count)
99 #define _Inout_updates_bytes_all_opt_(count)
100 #define _Inout_updates_opt_(count)
101 #define _Inout_updates_z_(count)
102 #define _Inout_updates_opt_z_(count)
103 #define _Inout_z_
104 #define _Inout_z_bytecap_(count)
105 #define _Inout_z_cap_(count)
106 #define _Inout_z_cap_c_(count)
108 #define _Null_terminated_
110 #define __out
111 #define __out_opt
112 #define _Out_
113 #define _Outptr_
114 #define _Out_bytecap_(count)
115 #define _Out_bytecap_c_(count)
116 #define _Out_bytecap_x_(count)
117 #define _Out_bytecapcount_(count)
118 #define _Out_bytecap_post_bytecount_(count1, count2)
119 #define _Out_cap_(count)
120 #define _Out_cap_c_(count)
121 #define _Out_cap_m_(count1, count2)
122 #define _Out_cap_x_(count)
123 #define _Out_cap_post_count_(count1, count2)
124 #define _Out_opt_
125 #define _Out_opt_bytecap_(count)
126 #define _Out_opt_bytecap_c_(count)
127 #define _Out_opt_bytecap_x_(count)
128 #define _Out_opt_bytecap_post_bytecount_(count1, count2)
129 #define _Out_opt_bytecapcount_(count)
130 #define _Out_opt_cap_(count)
131 #define _Out_opt_cap_m_(count1, count2)
132 #define _Out_opt_cap_c_(count)
133 #define _Out_opt_cap_x_(count)
134 #define _Out_opt_cap_post_count_(count1, count2)
135 #define _Out_opt_ptrdiff_cap_(count)
136 #define _Out_opt_z_bytecap_(count)
137 #define _Out_opt_z_bytecap_c_(count)
138 #define _Out_opt_z_bytecap_x_(count)
139 #define _Out_opt_z_bytecap_post_bytecount_(count1, count2)
140 #define _Out_opt_z_cap_(count)
141 #define _Out_opt_z_cap_c_(count)
142 #define _Out_opt_z_cap_m_(count1, count2)
143 #define _Out_opt_z_cap_x_(count)
144 #define _Out_opt_z_cap_post_count_(count1, count2)
145 #define _Out_ptrdiff_cap_(count)
146 #define _Out_writes_(count)
147 #define _Out_writes_all_(count)
148 #define _Out_writes_bytes_(count)
149 #define _Out_writes_bytes_all_(count)
150 #define _Out_writes_bytes_all_opt_(count)
151 #define _Out_writes_bytes_opt_(count)
152 #define _Out_writes_bytes_to_(count1, count2)
153 #define _Out_writes_bytes_to_opt_(count1, count2)
154 #define _Out_writes_opt_(count)
155 #define _Out_writes_opt_z_(count)
156 #define _Out_writes_to_(count1, count2)
157 #define _Out_writes_to_opt_(count1, count2)
158 #define _Out_writes_z_(count)
159 #define _Out_z_bytecap_(count)
160 #define _Out_z_bytecap_c_(count)
161 #define _Out_z_bytecap_x_(count)
162 #define _Out_z_bytecap_post_bytecount_(count1, count2)
163 #define _Out_z_cap_(count)
164 #define _Out_z_cap_c_(count)
165 #define _Out_z_cap_m_(count1, count2)
166 #define _Out_z_cap_x_(count)
167 #define _Out_z_cap_post_count_(count1, count2)
169 #define _Outptr_opt_
170 #define _Outptr_result_buffer_(count)
171 #define _Outptr_result_buffer_maybenull_(count)
172 #define _Outptr_result_maybenull_
173 #define _Outptr_result_maybenull_z_
174 #define _Outptr_result_nullonfailure_
175 #define _Outptr_result_z_
177 #define _Param_(p)
179 #define _Post_count_(count)
180 #define _Post_count_c_(count)
181 #define _Post_equal_to_(exp)
182 #define _Post_invalid_
183 #define _Post_maybez_
184 #define _Post_ptr_invalid_
185 #define _Post_readable_byte_size_(count)
186 #define _Post_readable_size_(count)
187 #define _Post_same_lock_(exp, exp1)
188 #define _Post_satisfies_(exp)
189 #define _Post_writable_byte_size_(count)
190 #define _Post_writable_size_(count)
191 #define _Post_z_
193 #define _Pre_cap_for_(count)
194 #define _Pre_maybenull_
195 #define _Pre_notnull_
196 #define _Pre_null_
197 #define _Pre_opt_z_
198 #define _Pre_valid_
199 #define _Pre_writable_size_(count)
200 #define _Pre_z_
201 #define _Prepost_z_
203 #define _Printf_format_string_
204 #define _Printf_format_string_params_(count)
206 #define _Reserved_
208 #define _Result_nullonfailure_
210 #define _Ret_maybenull_
211 #define _Ret_maybenull_z_
212 #define _Ret_notnull_
213 #define _Ret_opt_
214 #define _Ret_opt_bytecap_(count)
215 #define _Ret_opt_bytecap_x_(count)
216 #define _Ret_opt_z_cap_(count)
217 #define _Ret_range_(exp,exp2)
218 #define _Ret_writes_bytes_maybenull_(count)
219 #define _Ret_z_
221 #define _Return_type_success_(count)
223 #define _Scanf_format_string_
224 #define _Scanf_format_string_params_(count)
225 #define _Scanf_s_format_string_
226 #define _Scanf_s_format_string_params_(count)
228 #define _Success_(exp)
230 #define _When_(exp1, exp2)
232 #endif