aboutsummaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-05-24 08:03:11 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-05-24 08:03:11 +0200
commit800d535504c06f16726f2add8602ee9a36baf808 (patch)
treefdb95553dc154eae4033f75acb34e29461420ce0 /stdio-common
parent36c1dbaedd90f36397f28a96ae265e11b20fc616 (diff)
downloadglibc-800d535504c06f16726f2add8602ee9a36baf808.zip
glibc-800d535504c06f16726f2add8602ee9a36baf808.tar.gz
glibc-800d535504c06f16726f2add8602ee9a36baf808.tar.bz2
stdio-common: Add printf specifier registry to <printf.h>
Add __printf_arginfo_table, __printf_function_table, __printf_va_arg_table, __register_printf_specifier to include/printf.h.
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/printf-parse.h6
-rw-r--r--stdio-common/printf-prs.c1
-rw-r--r--stdio-common/reg-printf.c7
-rw-r--r--stdio-common/vfprintf-internal.c1
4 files changed, 1 insertions, 14 deletions
diff --git a/stdio-common/printf-parse.h b/stdio-common/printf-parse.h
index de0f289..362cce1 100644
--- a/stdio-common/printf-parse.h
+++ b/stdio-common/printf-parse.h
@@ -97,12 +97,6 @@ read_int (const UCHAR_T * *pstr)
#endif
-/* These are defined in reg-printf.c. */
-extern printf_arginfo_size_function **__printf_arginfo_table attribute_hidden;
-extern printf_function **__printf_function_table attribute_hidden;
-extern printf_va_arg_function **__printf_va_arg_table attribute_hidden;
-
-
/* Find the next spec in FORMAT, or the end of the string. Returns
a pointer into FORMAT, to a '%' or a '\0'. */
__extern_always_inline const unsigned char *
diff --git a/stdio-common/printf-prs.c b/stdio-common/printf-prs.c
index 55d1c47..f2fb918 100644
--- a/stdio-common/printf-prs.c
+++ b/stdio-common/printf-prs.c
@@ -21,6 +21,7 @@
#include <string.h>
#include <wchar.h>
#include <sys/param.h>
+#include <printf.h>
#include "../locale/localeinfo.h"
diff --git a/stdio-common/reg-printf.c b/stdio-common/reg-printf.c
index 400b99d..5f4c6a2 100644
--- a/stdio-common/reg-printf.c
+++ b/stdio-common/reg-printf.c
@@ -30,13 +30,6 @@ printf_function **__printf_function_table attribute_hidden;
__libc_lock_define_initialized (static, lock)
-int __register_printf_specifier (int, printf_function,
- printf_arginfo_size_function);
-libc_hidden_proto (__register_printf_specifier)
-int __register_printf_function (int, printf_function,
- printf_arginfo_function);
-
-
/* Register FUNC to be called to format SPEC specifiers. */
int
__register_printf_specifier (int spec, printf_function converter,
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index 1986c4b..f8aa2fd 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1379,7 +1379,6 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
/* Process format specifiers. */
while (1)
{
- extern printf_function **__printf_function_table;
int function_done;
if (spec <= UCHAR_MAX