1 /* Wrappers for err.h functions. IEEE128 version.
2 Copyright (C) 2019-2024 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
21 #include <libio/libioP.h>
26 va_start (ap, format); \
27 IEEE128_CALL (call); \
31 #define IEEE128_ALIAS(name) \
32 strong_alias (___ieee128_##name, __##name##ieee128)
34 #define IEEE128_DECL(name) ___ieee128_##name
35 #define IEEE128_CALL(name) ___ieee128_##name
38 IEEE128_DECL (vwarn
) (const char *format
, __gnuc_va_list ap
)
40 __vwarn_internal (format
, ap
, PRINTF_LDBL_USES_FLOAT128
);
45 IEEE128_DECL (vwarnx
) (const char *format
, __gnuc_va_list ap
)
47 __vwarnx_internal (format
, ap
, PRINTF_LDBL_USES_FLOAT128
);
49 IEEE128_ALIAS (vwarnx
)
52 IEEE128_DECL (warn
) (const char *format
, ...)
54 VA (vwarn (format
, ap
))
59 IEEE128_DECL (warnx
) (const char *format
, ...)
61 VA (vwarnx (format
, ap
))
66 IEEE128_DECL (verr
) (int status
, const char *format
, __gnuc_va_list ap
)
68 IEEE128_CALL (vwarn
) (format
, ap
);
74 IEEE128_DECL (verrx
) (int status
, const char *format
, __gnuc_va_list ap
)
76 IEEE128_CALL (vwarnx
) (format
, ap
);
82 IEEE128_DECL (err
) (int status
, const char *format
, ...)
84 VA (verr (status
, format
, ap
))
89 IEEE128_DECL (errx
) (int status
, const char *format
, ...)
91 VA (verrx (status
, format
, ap
))
95 hidden_def (___ieee128_warn
)
96 hidden_def (___ieee128_warnx
)
97 hidden_def (___ieee128_vwarn
)
98 hidden_def (___ieee128_vwarnx
)
99 hidden_def (___ieee128_verr
)
100 hidden_def (___ieee128_verrx
)