Lines Matching refs:func

87 /* _GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes);
94 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
95 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
99 /* _GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes);
100 declares the system function, named func, with the given prototype,
106 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
107 _GL_EXTERN_C rettype func parameters_and_attributes
109 /* _GL_CXXALIAS_RPL (func, rettype, parameters);
110 declares a C++ alias called GNULIB_NAMESPACE::func
115 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \
116 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)
118 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
121 rettype (*const func) parameters = ::rpl_func; \
125 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
129 /* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters);
130 is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters);
135 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
138 rettype (*const func) parameters = \
143 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
147 /* _GL_CXXALIAS_SYS (func, rettype, parameters);
148 declares a C++ alias called GNULIB_NAMESPACE::func
149 that redirects to the system provided function func, if GNULIB_NAMESPACE
156 rettype (*const func) parameters = ::func;
160 for uses of ::func but also for uses of GNULIB_NAMESPACE::func. */
161 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
164 static rettype (*func) parameters = ::func; \
168 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
172 /* _GL_CXXALIAS_SYS_CAST (func, rettype, parameters);
173 is like _GL_CXXALIAS_SYS (func, rettype, parameters);
174 except that the C function func may have a slightly different declaration.
178 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
181 static rettype (*func) parameters = \
182 reinterpret_cast<rettype(*)parameters>(::func); \
186 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
190 /* _GL_CXXALIAS_SYS_CAST2 (func, rettype, parameters, rettype2, parameters2);
191 is like _GL_CXXALIAS_SYS (func, rettype, parameters);
202 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
205 static rettype (*func) parameters = \
207 (rettype2(*)parameters2)(::func)); \
211 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
215 /* _GL_CXXALIASWARN (func);
216 causes a warning to be emitted when ::func is used but not when
217 GNULIB_NAMESPACE::func is used. func must be defined without overloaded
220 # define _GL_CXXALIASWARN(func) \
221 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
222 # define _GL_CXXALIASWARN_1(func,namespace) \
223 _GL_CXXALIASWARN_2 (func, namespace)
227 # define _GL_CXXALIASWARN_2(func,namespace) \
228 _GL_WARN_ON_USE (func, \
229 "The symbol ::" #func " refers to the system function. " \
230 "Use " #namespace "::" #func " instead.")
232 # define _GL_CXXALIASWARN_2(func,namespace) \
233 extern __typeof__ (func) func
235 # define _GL_CXXALIASWARN_2(func,namespace) \
239 # define _GL_CXXALIASWARN(func) \
243 /* _GL_CXXALIASWARN1 (func, rettype, parameters_and_attributes);
244 causes a warning to be emitted when the given overloaded variant of ::func
245 is used but not when GNULIB_NAMESPACE::func is used. */
247 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
248 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \
250 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \
251 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
255 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
256 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
257 "The symbol ::" #func " refers to the system function. " \
258 "Use " #namespace "::" #func " instead.")
260 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
261 extern __typeof__ (func) func
263 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
267 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \