aboutsummaryrefslogtreecommitdiffstats
path: root/lib/c++defs.h
diff options
context:
space:
mode:
authorPaul Eggert2025-11-25 22:13:37 -0800
committerPaul Eggert2025-11-25 23:08:33 -0800
commit8cdc8a51efdcaefe3632370e7c3ce9c0cfe77e9d (patch)
tree2706ced060603fa07e7891477ce42975e14f1a23 /lib/c++defs.h
parent16a70518880ef8f54bd853020f1606d3abf04d8e (diff)
downloademacs-8cdc8a51efdcaefe3632370e7c3ce9c0cfe77e9d.tar.gz
emacs-8cdc8a51efdcaefe3632370e7c3ce9c0cfe77e9d.zip
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib/c++defs.h')
-rw-r--r--lib/c++defs.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/c++defs.h b/lib/c++defs.h
index b77979a3259..b887cc3fb80 100644
--- a/lib/c++defs.h
+++ b/lib/c++defs.h
@@ -127,6 +127,16 @@
127#define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters,...) \ 127#define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters,...) \
128 _GL_EXTERN_C_FUNC __VA_ARGS__ rettype rpl_func parameters 128 _GL_EXTERN_C_FUNC __VA_ARGS__ rettype rpl_func parameters
129 129
130/* _GL_FUNCDECL_SYS_NAME (func) expands to plain func if C++, and to
131 parenthesized func otherwise. Parenthesization is needed in C23 if
132 the function is like strchr and so is a qualifier-generic macro
133 that expands to something more complicated. */
134#ifdef __cplusplus
135# define _GL_FUNCDECL_SYS_NAME(func) func
136#else
137# define _GL_FUNCDECL_SYS_NAME(func) (func)
138#endif
139
130/* _GL_FUNCDECL_SYS (func, rettype, parameters, [attributes]); 140/* _GL_FUNCDECL_SYS (func, rettype, parameters, [attributes]);
131 declares the system function, named func, with the given prototype, 141 declares the system function, named func, with the given prototype,
132 consisting of return type, parameters, and attributes. 142 consisting of return type, parameters, and attributes.
@@ -139,7 +149,7 @@
139 _GL_FUNCDECL_SYS (posix_openpt, int, (int flags), _GL_ATTRIBUTE_NODISCARD); 149 _GL_FUNCDECL_SYS (posix_openpt, int, (int flags), _GL_ATTRIBUTE_NODISCARD);
140 */ 150 */
141#define _GL_FUNCDECL_SYS(func,rettype,parameters,...) \ 151#define _GL_FUNCDECL_SYS(func,rettype,parameters,...) \
142 _GL_EXTERN_C_FUNC __VA_ARGS__ rettype func parameters 152 _GL_EXTERN_C_FUNC __VA_ARGS__ rettype _GL_FUNCDECL_SYS_NAME (func) parameters
143 153
144/* _GL_CXXALIAS_RPL (func, rettype, parameters); 154/* _GL_CXXALIAS_RPL (func, rettype, parameters);
145 declares a C++ alias called GNULIB_NAMESPACE::func 155 declares a C++ alias called GNULIB_NAMESPACE::func