]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
stdio-common: Move union printf_arg int <printf.h>
authorFlorian Weimer <fweimer@redhat.com>
Tue, 24 May 2022 06:03:11 +0000 (08:03 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 24 May 2022 06:03:11 +0000 (08:03 +0200)
The type does not depend on wide vs narrow preprocessor macros,
so it does not need to be customized in stdio-common/printf-parse.h.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
include/printf.h
stdio-common/printf-parse.h

index fb0b71fa4c0375eadd871a8e3c65732e7812b9db..78accaab6d8c1ac6ffa179cf8b67911b34a990a6 100644 (file)
@@ -20,6 +20,27 @@ int __register_printf_specifier (int, printf_function,
                                 printf_arginfo_size_function);
 libc_hidden_proto (__register_printf_specifier)
 
+/* The various kinds of arguments that can be passed to printf.  */
+union printf_arg
+  {
+    wchar_t pa_wchar;
+    int pa_int;
+    long int pa_long_int;
+    long long int pa_long_long_int;
+    unsigned int pa_u_int;
+    unsigned long int pa_u_long_int;
+    unsigned long long int pa_u_long_long_int;
+    double pa_double;
+    long double pa_long_double;
+#if __HAVE_FLOAT128_UNLIKE_LDBL
+    _Float128 pa_float128;
+#endif
+    const char *pa_string;
+    const wchar_t *pa_wstring;
+    void *pa_pointer;
+    void *pa_user;
+};
+
 #include <bits/types/locale_t.h>
 
 /* Now define the internal interfaces.  */
index 362cce1ead04827436cd2c933c5dee3cf6fe1c20..249f789526c13d638d0d221e78bde509d310fe16 100644 (file)
@@ -44,29 +44,6 @@ struct printf_spec
     int size;
   };
 
-
-/* The various kinds off arguments that can be passed to printf.  */
-union printf_arg
-  {
-    wchar_t pa_wchar;
-    int pa_int;
-    long int pa_long_int;
-    long long int pa_long_long_int;
-    unsigned int pa_u_int;
-    unsigned long int pa_u_long_int;
-    unsigned long long int pa_u_long_long_int;
-    double pa_double;
-    long double pa_long_double;
-#if __HAVE_FLOAT128_UNLIKE_LDBL
-    _Float128 pa_float128;
-#endif
-    const char *pa_string;
-    const wchar_t *pa_wstring;
-    void *pa_pointer;
-    void *pa_user;
-  };
-
-
 #ifndef DONT_NEED_READ_INT
 /* Read a simple integer from a string and update the string pointer.
    It is assumed that the first character is a digit.  */