Home | History | Annotate | Download | only in darwin-lib

Lines Matching refs:func

148 /* _GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes);
155 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
156 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
160 /* _GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes);
161 declares the system function, named func, with the given prototype,
167 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
168 _GL_EXTERN_C rettype func parameters_and_attributes
170 /* _GL_CXXALIAS_RPL (func, rettype, parameters);
171 declares a C++ alias called GNULIB_NAMESPACE::func
176 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \
177 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)
179 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
182 rettype (*const func) parameters = ::rpl_func; \
186 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
190 /* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters);
191 is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters);
196 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
199 rettype (*const func) parameters = \
204 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
208 /* _GL_CXXALIAS_SYS (func, rettype, parameters);
209 declares a C++ alias called GNULIB_NAMESPACE::func
210 that redirects to the system provided function func, if GNULIB_NAMESPACE
217 rettype (*const func) parameters = ::func;
221 for uses of ::func but also for uses of GNULIB_NAMESPACE::func. */
222 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
225 static rettype (*func) parameters = ::func; \
229 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
233 /* _GL_CXXALIAS_SYS_CAST (func, rettype, parameters);
234 is like _GL_CXXALIAS_SYS (func, rettype, parameters);
235 except that the C function func may have a slightly different declaration.
239 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
242 static rettype (*func) parameters = \
243 reinterpret_cast<rettype(*)parameters>(::func); \
247 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
251 /* _GL_CXXALIAS_SYS_CAST2 (func, rettype, parameters, rettype2, parameters2);
252 is like _GL_CXXALIAS_SYS (func, rettype, parameters);
263 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
266 static rettype (*func) parameters = \
268 (rettype2(*)parameters2)(::func)); \
272 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
276 /* _GL_CXXALIASWARN (func);
277 causes a warning to be emitted when ::func is used but not when
278 GNULIB_NAMESPACE::func is used. func must be defined without overloaded
281 # define _GL_CXXALIASWARN(func) \
282 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
283 # define _GL_CXXALIASWARN_1(func,namespace) \
284 _GL_CXXALIASWARN_2 (func, namespace)
288 # define _GL_CXXALIASWARN_2(func,namespace) \
289 _GL_WARN_ON_USE (func, \
290 "The symbol ::" #func " refers to the system function. " \
291 "Use " #namespace "::" #func " instead.")
293 # define _GL_CXXALIASWARN_2(func,namespace) \
294 extern __typeof__ (func) func
296 # define _GL_CXXALIASWARN_2(func,namespace) \
300 # define _GL_CXXALIASWARN(func) \
304 /* _GL_CXXALIASWARN1 (func, rettype, parameters_and_attributes);
305 causes a warning to be emitted when the given overloaded variant of ::func
306 is used but not when GNULIB_NAMESPACE::func is used. */
308 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
309 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \
311 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \
312 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
316 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
317 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
318 "The symbol ::" #func " refers to the system function. " \
319 "Use " #namespace "::" #func " instead.")
321 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
322 extern __typeof__ (func) func
324 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
328 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \