Lines Matching refs:func

71 /* _GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes);
78 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
79 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
83 /* _GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes);
84 declares the system function, named func, with the given prototype,
90 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
91 _GL_EXTERN_C rettype func parameters_and_attributes
93 /* _GL_CXXALIAS_RPL (func, rettype, parameters);
94 declares a C++ alias called GNULIB_NAMESPACE::func
99 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \
100 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)
102 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
105 rettype (*const func) parameters = ::rpl_func; \
109 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
113 /* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters);
114 is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters);
119 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
122 rettype (*const func) parameters = \
127 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
131 /* _GL_CXXALIAS_SYS (func, rettype, parameters);
132 declares a C++ alias called GNULIB_NAMESPACE::func
133 that redirects to the system provided function func, if GNULIB_NAMESPACE
140 rettype (*const func) parameters = ::func;
144 for uses of ::func but also for uses of GNULIB_NAMESPACE::func. */
145 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
148 static rettype (*func) parameters = ::func; \
152 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
156 /* _GL_CXXALIAS_SYS_CAST (func, rettype, parameters);
157 is like _GL_CXXALIAS_SYS (func, rettype, parameters);
158 except that the C function func may have a slightly different declaration.
162 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
165 static rettype (*func) parameters = \
166 reinterpret_cast<rettype(*)parameters>(::func); \
170 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
174 /* _GL_CXXALIAS_SYS_CAST2 (func, rettype, parameters, rettype2, parameters2);
175 is like _GL_CXXALIAS_SYS (func, rettype, parameters);
186 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
189 static rettype (*func) parameters = \
191 (rettype2(*)parameters2)(::func)); \
195 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
199 /* _GL_CXXALIASWARN (func);
200 causes a warning to be emitted when ::func is used but not when
201 GNULIB_NAMESPACE::func is used. func must be defined without overloaded
204 # define _GL_CXXALIASWARN(func) \
205 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
206 # define _GL_CXXALIASWARN_1(func,namespace) \
207 _GL_CXXALIASWARN_2 (func, namespace)
211 # define _GL_CXXALIASWARN_2(func,namespace) \
212 _GL_WARN_ON_USE (func, \
213 "The symbol ::" #func " refers to the system function. " \
214 "Use " #namespace "::" #func " instead.")
216 # define _GL_CXXALIASWARN_2(func,namespace) \
217 extern __typeof__ (func) func
219 # define _GL_CXXALIASWARN_2(func,namespace) \
223 # define _GL_CXXALIASWARN(func) \
227 /* _GL_CXXALIASWARN1 (func, rettype, parameters_and_attributes);
228 causes a warning to be emitted when the given overloaded variant of ::func
229 is used but not when GNULIB_NAMESPACE::func is used. */
231 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
232 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \
234 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \
235 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
239 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
240 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
241 "The symbol ::" #func " refers to the system function. " \
242 "Use " #namespace "::" #func " instead.")
244 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
245 extern __typeof__ (func) func
247 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
251 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \