Lines Matching refs:func

109 /* _GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes);
116 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
117 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
121 /* _GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes);
122 declares the system function, named func, with the given prototype,
128 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
129 _GL_EXTERN_C rettype func parameters_and_attributes
131 /* _GL_CXXALIAS_RPL (func, rettype, parameters);
132 declares a C++ alias called GNULIB_NAMESPACE::func
137 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \
138 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)
140 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
143 rettype (*const func) parameters = ::rpl_func; \
147 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
151 /* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters);
152 is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters);
157 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
160 rettype (*const func) parameters = \
165 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
169 /* _GL_CXXALIAS_SYS (func, rettype, parameters);
170 declares a C++ alias called GNULIB_NAMESPACE::func
171 that redirects to the system provided function func, if GNULIB_NAMESPACE
178 rettype (*const func) parameters = ::func;
182 for uses of ::func but also for uses of GNULIB_NAMESPACE::func. */
183 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
186 static rettype (*func) parameters = ::func; \
190 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
194 /* _GL_CXXALIAS_SYS_CAST (func, rettype, parameters);
195 is like _GL_CXXALIAS_SYS (func, rettype, parameters);
196 except that the C function func may have a slightly different declaration.
200 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
203 static rettype (*func) parameters = \
204 reinterpret_cast<rettype(*)parameters>(::func); \
208 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
212 /* _GL_CXXALIAS_SYS_CAST2 (func, rettype, parameters, rettype2, parameters2);
213 is like _GL_CXXALIAS_SYS (func, rettype, parameters);
224 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
227 static rettype (*func) parameters = \
229 (rettype2(*)parameters2)(::func)); \
233 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
237 /* _GL_CXXALIASWARN (func);
238 causes a warning to be emitted when ::func is used but not when
239 GNULIB_NAMESPACE::func is used. func must be defined without overloaded
242 # define _GL_CXXALIASWARN(func) \
243 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
244 # define _GL_CXXALIASWARN_1(func,namespace) \
245 _GL_CXXALIASWARN_2 (func, namespace)
249 # define _GL_CXXALIASWARN_2(func,namespace) \
250 _GL_WARN_ON_USE (func, \
251 "The symbol ::" #func " refers to the system function. " \
252 "Use " #namespace "::" #func " instead.")
254 # define _GL_CXXALIASWARN_2(func,namespace) \
255 extern __typeof__ (func) func
257 # define _GL_CXXALIASWARN_2(func,namespace) \
261 # define _GL_CXXALIASWARN(func) \
265 /* _GL_CXXALIASWARN1 (func, rettype, parameters_and_attributes);
266 causes a warning to be emitted when the given overloaded variant of ::func
267 is used but not when GNULIB_NAMESPACE::func is used. */
269 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
270 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \
272 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \
273 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
277 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
278 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
279 "The symbol ::" #func " refers to the system function. " \
280 "Use " #namespace "::" #func " instead.")
282 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
283 extern __typeof__ (func) func
285 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
289 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \