public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: newlib@sourceware.org
Subject: [PATCH 4/8] newlib: sort newlib.h output
Date: Mon, 17 Jan 2022 23:47:37 -0500	[thread overview]
Message-ID: <20220118044741.21027-5-vapier@gentoo.org> (raw)
In-Reply-To: <20220118044741.21027-1-vapier@gentoo.org>

Sort the symbols lexically like autoheader does.  There are no other
changes in here.  This will make it easier to sync with autoheader.
---
 newlib/newlib.hin | 266 +++++++++++++++++++++++-----------------------
 1 file changed, 132 insertions(+), 134 deletions(-)

diff --git a/newlib/newlib.hin b/newlib/newlib.hin
index f1198577c452..26cd69f05e11 100644
--- a/newlib/newlib.hin
+++ b/newlib/newlib.hin
@@ -3,102 +3,92 @@
    package using newlib header files and having its own package name,
    version, etc...  */
 #ifndef __NEWLIB_H__
-
 #define __NEWLIB_H__ 1
 
-/* EL/IX level */
-#undef _ELIX_LEVEL
-
 /* Newlib version */
 #include <_newlib_version.h>
 
-/* Enable C99 formats support (e.g. %a, %zu, ...) in IO functions like
-   printf/scanf. */
-#undef _WANT_IO_C99_FORMATS
-
-/* Define to enable long long type support in IO functions like printf/scanf.
-   */
-#undef _WANT_IO_LONG_LONG
-
-/* Register application finalization function using atexit. */
-#undef _WANT_REGISTER_FINI
-
-/* Define to enable long double type support in IO functions like
-   printf/scanf. */
-#undef _WANT_IO_LONG_DOUBLE
-
-/* Positional argument support in printf functions enabled. */
-#undef _WANT_IO_POS_ARGS
-
-/* Optional reentrant struct support. Used mostly on platforms with very
-   restricted storage. */
-#undef _WANT_REENT_SMALL
-
-/* Verify _REENT_CHECK macros allocate memory successfully. */
-#undef _REENT_CHECK_VERIFY
+/* If atexit() may dynamically allocate space for cleanup functions. */
+#undef _ATEXIT_DYNAMIC_ALLOC
 
-/* Multibyte supported. */
-#undef _MB_CAPABLE
+/* EL/IX level */
+#undef _ELIX_LEVEL
 
-/* Multibyte max length. */
-#undef _MB_LEN_MAX
+/* Define if fseek functions support seek optimization. */
+#undef _FSEEK_OPTIMIZATION
 
-/* ICONV enabled. */
-#undef _ICONV_ENABLED
+/* Define if ivo supported in streamio. */
+#undef _FVWRITE_IN_STREAMIO
 
-/* Enable ICONV external CCS files loading capabilities. */
-#undef _ICONV_ENABLE_EXTERNAL_CCS
+/* Define if compiler supports -fno-tree-loop-distribute-patterns. */
+#undef _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL
 
 /* Define if the linker supports .preinit_array/.init_array/.fini_array
    sections. */
 #undef _HAVE_INITFINI_ARRAY
 
-/* If atexit() may dynamically allocate space for cleanup functions. */
-#undef _ATEXIT_DYNAMIC_ALLOC
-
 /* Define if the platform supports long double type. */
 #undef _HAVE_LONG_DOUBLE
 
-/* Define if compiler supports -fno-tree-loop-distribute-patterns. */
-#undef _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL
-
-/* Define if the platform long double type is equal to double. */
-#undef _LDBL_EQ_DBL
- 
-/* Define if ivo supported in streamio. */
-#undef _FVWRITE_IN_STREAMIO
-
-/* Define if fseek functions support seek optimization. */
-#undef _FSEEK_OPTIMIZATION
-
-/* Define if wide char orientation is supported. */
-#undef _WIDE_ORIENT
-
-/* Define if unbuffered stream file optimization is supported. */
-#undef _UNBUF_STREAM_OPT
-
-/* Define if lite version of exit supported. */
-#undef _LITE_EXIT
-
-/* Define if declare atexit data as global. */
-#undef _REENT_GLOBAL_ATEXIT
-
-/* Define to move the stdio stream FILE objects out of struct _reent and make
-   them global. The stdio stream pointers of struct _reent are initialized to
-   point to the global stdio FILE stream objects. */
-#undef _WANT_REENT_GLOBAL_STDIO_STREAMS
-
-/* Define if small footprint nano-formatted-IO implementation used. */
-#undef _NANO_FORMATTED_IO
-
-/* Define if using retargetable functions for default lock routines. */
-#undef _RETARGETABLE_LOCKING
+/* ICONV enabled. */
+#undef _ICONV_ENABLED
 
-/* Define to use type long for time_t. */
-#undef _WANT_USE_LONG_TIME_T
+/* Enable ICONV external CCS files loading capabilities. */
+#undef _ICONV_ENABLE_EXTERNAL_CCS
 
-/* Define if using gdtoa rather than legacy ldtoa. */
-#undef _WANT_USE_GDTOA
+/*
+ * Iconv encodings enabled ("from" direction)
+ */
+#undef _ICONV_FROM_ENCODING_BIG5
+#undef _ICONV_FROM_ENCODING_CP775
+#undef _ICONV_FROM_ENCODING_CP850
+#undef _ICONV_FROM_ENCODING_CP852
+#undef _ICONV_FROM_ENCODING_CP855
+#undef _ICONV_FROM_ENCODING_CP866
+#undef _ICONV_FROM_ENCODING_EUC_JP
+#undef _ICONV_FROM_ENCODING_EUC_KR
+#undef _ICONV_FROM_ENCODING_EUC_TW
+#undef _ICONV_FROM_ENCODING_ISO_8859_1
+#undef _ICONV_FROM_ENCODING_ISO_8859_10
+#undef _ICONV_FROM_ENCODING_ISO_8859_11
+#undef _ICONV_FROM_ENCODING_ISO_8859_13
+#undef _ICONV_FROM_ENCODING_ISO_8859_14
+#undef _ICONV_FROM_ENCODING_ISO_8859_15
+#undef _ICONV_FROM_ENCODING_ISO_8859_2
+#undef _ICONV_FROM_ENCODING_ISO_8859_3
+#undef _ICONV_FROM_ENCODING_ISO_8859_4
+#undef _ICONV_FROM_ENCODING_ISO_8859_5
+#undef _ICONV_FROM_ENCODING_ISO_8859_6
+#undef _ICONV_FROM_ENCODING_ISO_8859_7
+#undef _ICONV_FROM_ENCODING_ISO_8859_8
+#undef _ICONV_FROM_ENCODING_ISO_8859_9
+#undef _ICONV_FROM_ENCODING_ISO_IR_111
+#undef _ICONV_FROM_ENCODING_KOI8_R
+#undef _ICONV_FROM_ENCODING_KOI8_RU
+#undef _ICONV_FROM_ENCODING_KOI8_U
+#undef _ICONV_FROM_ENCODING_KOI8_UNI
+#undef _ICONV_FROM_ENCODING_UCS_2
+#undef _ICONV_FROM_ENCODING_UCS_2BE
+#undef _ICONV_FROM_ENCODING_UCS_2LE
+#undef _ICONV_FROM_ENCODING_UCS_2_INTERNAL
+#undef _ICONV_FROM_ENCODING_UCS_4
+#undef _ICONV_FROM_ENCODING_UCS_4BE
+#undef _ICONV_FROM_ENCODING_UCS_4LE
+#undef _ICONV_FROM_ENCODING_UCS_4_INTERNAL
+#undef _ICONV_FROM_ENCODING_US_ASCII
+#undef _ICONV_FROM_ENCODING_UTF_16
+#undef _ICONV_FROM_ENCODING_UTF_16BE
+#undef _ICONV_FROM_ENCODING_UTF_16LE
+#undef _ICONV_FROM_ENCODING_UTF_8
+#undef _ICONV_FROM_ENCODING_WIN_1250
+#undef _ICONV_FROM_ENCODING_WIN_1251
+#undef _ICONV_FROM_ENCODING_WIN_1252
+#undef _ICONV_FROM_ENCODING_WIN_1253
+#undef _ICONV_FROM_ENCODING_WIN_1254
+#undef _ICONV_FROM_ENCODING_WIN_1255
+#undef _ICONV_FROM_ENCODING_WIN_1256
+#undef _ICONV_FROM_ENCODING_WIN_1257
+#undef _ICONV_FROM_ENCODING_WIN_1258
 
 /*
  * Iconv encodings enabled ("to" direction)
@@ -110,8 +100,8 @@
 #undef _ICONV_TO_ENCODING_CP855
 #undef _ICONV_TO_ENCODING_CP866
 #undef _ICONV_TO_ENCODING_EUC_JP
-#undef _ICONV_TO_ENCODING_EUC_TW
 #undef _ICONV_TO_ENCODING_EUC_KR
+#undef _ICONV_TO_ENCODING_EUC_TW
 #undef _ICONV_TO_ENCODING_ISO_8859_1
 #undef _ICONV_TO_ENCODING_ISO_8859_10
 #undef _ICONV_TO_ENCODING_ISO_8859_11
@@ -132,13 +122,13 @@
 #undef _ICONV_TO_ENCODING_KOI8_U
 #undef _ICONV_TO_ENCODING_KOI8_UNI
 #undef _ICONV_TO_ENCODING_UCS_2
-#undef _ICONV_TO_ENCODING_UCS_2_INTERNAL
 #undef _ICONV_TO_ENCODING_UCS_2BE
 #undef _ICONV_TO_ENCODING_UCS_2LE
+#undef _ICONV_TO_ENCODING_UCS_2_INTERNAL
 #undef _ICONV_TO_ENCODING_UCS_4
-#undef _ICONV_TO_ENCODING_UCS_4_INTERNAL
 #undef _ICONV_TO_ENCODING_UCS_4BE
 #undef _ICONV_TO_ENCODING_UCS_4LE
+#undef _ICONV_TO_ENCODING_UCS_4_INTERNAL
 #undef _ICONV_TO_ENCODING_US_ASCII
 #undef _ICONV_TO_ENCODING_UTF_16
 #undef _ICONV_TO_ENCODING_UTF_16BE
@@ -154,59 +144,67 @@
 #undef _ICONV_TO_ENCODING_WIN_1257
 #undef _ICONV_TO_ENCODING_WIN_1258
 
-/*
- * Iconv encodings enabled ("from" direction)
- */
-#undef _ICONV_FROM_ENCODING_BIG5
-#undef _ICONV_FROM_ENCODING_CP775
-#undef _ICONV_FROM_ENCODING_CP850
-#undef _ICONV_FROM_ENCODING_CP852
-#undef _ICONV_FROM_ENCODING_CP855
-#undef _ICONV_FROM_ENCODING_CP866
-#undef _ICONV_FROM_ENCODING_EUC_JP
-#undef _ICONV_FROM_ENCODING_EUC_TW
-#undef _ICONV_FROM_ENCODING_EUC_KR
-#undef _ICONV_FROM_ENCODING_ISO_8859_1
-#undef _ICONV_FROM_ENCODING_ISO_8859_10
-#undef _ICONV_FROM_ENCODING_ISO_8859_11
-#undef _ICONV_FROM_ENCODING_ISO_8859_13
-#undef _ICONV_FROM_ENCODING_ISO_8859_14
-#undef _ICONV_FROM_ENCODING_ISO_8859_15
-#undef _ICONV_FROM_ENCODING_ISO_8859_2
-#undef _ICONV_FROM_ENCODING_ISO_8859_3
-#undef _ICONV_FROM_ENCODING_ISO_8859_4
-#undef _ICONV_FROM_ENCODING_ISO_8859_5
-#undef _ICONV_FROM_ENCODING_ISO_8859_6
-#undef _ICONV_FROM_ENCODING_ISO_8859_7
-#undef _ICONV_FROM_ENCODING_ISO_8859_8
-#undef _ICONV_FROM_ENCODING_ISO_8859_9
-#undef _ICONV_FROM_ENCODING_ISO_IR_111
-#undef _ICONV_FROM_ENCODING_KOI8_R
-#undef _ICONV_FROM_ENCODING_KOI8_RU
-#undef _ICONV_FROM_ENCODING_KOI8_U
-#undef _ICONV_FROM_ENCODING_KOI8_UNI
-#undef _ICONV_FROM_ENCODING_UCS_2
-#undef _ICONV_FROM_ENCODING_UCS_2_INTERNAL
-#undef _ICONV_FROM_ENCODING_UCS_2BE
-#undef _ICONV_FROM_ENCODING_UCS_2LE
-#undef _ICONV_FROM_ENCODING_UCS_4
-#undef _ICONV_FROM_ENCODING_UCS_4_INTERNAL
-#undef _ICONV_FROM_ENCODING_UCS_4BE
-#undef _ICONV_FROM_ENCODING_UCS_4LE
-#undef _ICONV_FROM_ENCODING_US_ASCII
-#undef _ICONV_FROM_ENCODING_UTF_16
-#undef _ICONV_FROM_ENCODING_UTF_16BE
-#undef _ICONV_FROM_ENCODING_UTF_16LE
-#undef _ICONV_FROM_ENCODING_UTF_8
-#undef _ICONV_FROM_ENCODING_WIN_1250
-#undef _ICONV_FROM_ENCODING_WIN_1251
-#undef _ICONV_FROM_ENCODING_WIN_1252
-#undef _ICONV_FROM_ENCODING_WIN_1253
-#undef _ICONV_FROM_ENCODING_WIN_1254
-#undef _ICONV_FROM_ENCODING_WIN_1255
-#undef _ICONV_FROM_ENCODING_WIN_1256
-#undef _ICONV_FROM_ENCODING_WIN_1257
-#undef _ICONV_FROM_ENCODING_WIN_1258
+/* Define if the platform long double type is equal to double. */
+#undef _LDBL_EQ_DBL
 
-#endif /* !__NEWLIB_H__ */
+/* Define if lite version of exit supported. */
+#undef _LITE_EXIT
+
+/* Multibyte supported. */
+#undef _MB_CAPABLE
+
+/* Multibyte max length. */
+#undef _MB_LEN_MAX
+
+/* Define if small footprint nano-formatted-IO implementation used. */
+#undef _NANO_FORMATTED_IO
+
+/* Verify _REENT_CHECK macros allocate memory successfully. */
+#undef _REENT_CHECK_VERIFY
+
+/* Define if declare atexit data as global. */
+#undef _REENT_GLOBAL_ATEXIT
+
+/* Define if using retargetable functions for default lock routines. */
+#undef _RETARGETABLE_LOCKING
+
+/* Define if unbuffered stream file optimization is supported. */
+#undef _UNBUF_STREAM_OPT
+
+/* Enable C99 formats support (e.g. %a, %zu, ...) in IO functions like
+   printf/scanf. */
+#undef _WANT_IO_C99_FORMATS
 
+/* Define to enable long double type support in IO functions like
+   printf/scanf. */
+#undef _WANT_IO_LONG_DOUBLE
+
+/* Define to enable long long type support in IO functions like printf/scanf.
+   */
+#undef _WANT_IO_LONG_LONG
+
+/* Positional argument support in printf functions enabled. */
+#undef _WANT_IO_POS_ARGS
+
+/* Define to move the stdio stream FILE objects out of struct _reent and make
+   them global. The stdio stream pointers of struct _reent are initialized to
+   point to the global stdio FILE stream objects. */
+#undef _WANT_REENT_GLOBAL_STDIO_STREAMS
+
+/* Optional reentrant struct support. Used mostly on platforms with very
+   restricted storage. */
+#undef _WANT_REENT_SMALL
+
+/* Register application finalization function using atexit. */
+#undef _WANT_REGISTER_FINI
+
+/* Define if using gdtoa rather than legacy ldtoa. */
+#undef _WANT_USE_GDTOA
+
+/* Define to use type long for time_t. */
+#undef _WANT_USE_LONG_TIME_T
+
+/* Define if wide char orientation is supported. */
+#undef _WIDE_ORIENT
+
+#endif /* !__NEWLIB_H__ */
-- 
2.33.0


  parent reply	other threads:[~2022-01-18  4:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-18  4:47 [PATCH 0/8] newlib: convert newlib.h to autoheader Mike Frysinger
2022-01-18  4:47 ` [PATCH 1/8] newlib: internalize HAVE_INITFINI_ARRAY Mike Frysinger
     [not found]   ` <DM3P110MB0522248DFEE102BB37B43A8F9A589@DM3P110MB0522.NAMP110.PROD.OUTLOOK.COM>
2022-01-18 16:10     ` Fw: " C Howland
2022-01-19  0:53       ` Mike Frysinger
2022-01-19  2:39         ` C Howland
2022-01-19  3:44           ` Mike Frysinger
2022-01-19 23:50           ` Mike Frysinger
2022-01-18  4:47 ` [PATCH 2/8] newlib: merge acconfig.h changes into newlib.hin Mike Frysinger
2022-01-18  4:47 ` [PATCH 3/8] newlib: clean up autoheader templates Mike Frysinger
2022-01-18  4:47 ` Mike Frysinger [this message]
2022-01-18  4:47 ` [PATCH 5/8] newlib: move version defines out of the config headers Mike Frysinger
2022-01-18  4:47 ` [PATCH 6/8] newlib: add missing _NANO_MALLOC to newlib.hin Mike Frysinger
2022-01-18  4:47 ` [PATCH 7/8] newlib: iconv: autogenerate iconv define list Mike Frysinger
2022-01-18  4:47 ` [PATCH 8/8] newlib: switch newlib.h to autoheader Mike Frysinger
2022-01-19 14:51 ` [PATCH 0/8] newlib: convert " Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220118044741.21027-5-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=newlib@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).