Lines Matching refs:func

140 /* _GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes);
147 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
148 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
152 /* _GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes);
153 declares the system function, named func, with the given prototype,
159 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
160 _GL_EXTERN_C rettype func parameters_and_attributes
162 /* _GL_CXXALIAS_RPL (func, rettype, parameters);
163 declares a C++ alias called GNULIB_NAMESPACE::func
169 avoids a reference to rpl_func unless GNULIB_NAMESPACE::func is
171 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \
172 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)
174 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
177 static const struct _gl_ ## func ## _wrapper \
185 } func = {}; \
189 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
193 /* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters);
194 is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters);
199 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
202 static const struct _gl_ ## func ## _wrapper \
210 } func = {}; \
214 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
218 /* _GL_CXXALIAS_SYS (func, rettype, parameters);
219 declares a C++ alias called GNULIB_NAMESPACE::func
220 that redirects to the system provided function func, if GNULIB_NAMESPACE
225 Wrapping func in an object with an inline conversion operator
226 avoids a reference to func unless GNULIB_NAMESPACE::func is
229 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
232 static const struct _gl_ ## func ## _wrapper \
238 return ::func; \
240 } func = {}; \
244 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
248 /* _GL_CXXALIAS_SYS_CAST (func, rettype, parameters);
249 is like _GL_CXXALIAS_SYS (func, rettype, parameters);
250 except that the C function func may have a slightly different declaration.
254 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
257 static const struct _gl_ ## func ## _wrapper \
263 return reinterpret_cast<type>(::func); \
265 } func = {}; \
269 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
273 /* _GL_CXXALIAS_SYS_CAST2 (func, rettype, parameters, rettype2, parameters2);
274 is like _GL_CXXALIAS_SYS (func, rettype, parameters);
285 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
288 static const struct _gl_ ## func ## _wrapper \
294 return reinterpret_cast<type>((rettype2 (*) parameters2)(::func)); \
296 } func = {}; \
300 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
304 /* _GL_CXXALIASWARN (func);
305 causes a warning to be emitted when ::func is used but not when
306 GNULIB_NAMESPACE::func is used. func must be defined without overloaded
309 # define _GL_CXXALIASWARN(func) \
310 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
311 # define _GL_CXXALIASWARN_1(func,namespace) \
312 _GL_CXXALIASWARN_2 (func, namespace)
316 # define _GL_CXXALIASWARN_2(func,namespace) \
317 _GL_WARN_ON_USE (func, \
318 "The symbol ::" #func " refers to the system function. " \
319 "Use " #namespace "::" #func " instead.")
321 # define _GL_CXXALIASWARN_2(func,namespace) \
322 extern __typeof__ (func) func
324 # define _GL_CXXALIASWARN_2(func,namespace) \
328 # define _GL_CXXALIASWARN(func) \
332 /* _GL_CXXALIASWARN1 (func, rettype, parameters_and_attributes);
333 causes a warning to be emitted when the given overloaded variant of ::func
334 is used but not when GNULIB_NAMESPACE::func is used. */
336 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
337 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \
339 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \
340 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
344 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
345 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
346 "The symbol ::" #func " refers to the system function. " \
347 "Use " #namespace "::" #func " instead.")
349 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
353 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \