public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Sebastian Huber <sh@sourceware.org>
To: newlib-cvs@sourceware.org
Subject: [newlib-cygwin] Optional struct _reent::_new::_unused
Date: Wed, 18 May 2022 05:58:19 +0000 (GMT)	[thread overview]
Message-ID: <20220518055819.9FA493857827@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9035e406cbda2dcab02dde1c6bd7db0a6f6f1563

commit 9035e406cbda2dcab02dde1c6bd7db0a6f6f1563
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Fri May 13 14:56:24 2022 +0200

    Optional struct _reent::_new::_unused
    
    Rename struct _reent::_new::_unused members _nextf and _nmalloc to _reserved_3
    and _reserved_4, respectively.   Rename struct _reent::_new member _unused to
    _reserved_5.  Provide them only if _REENT_BACKWARD_BINARY_COMPAT is defined.
    
    Remove unused _N_LISTS define.

Diff:
---
 newlib/libc/include/sys/reent.h | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h
index 6d6796ed3..b99cfe099 100644
--- a/newlib/libc/include/sys/reent.h
+++ b/newlib/libc/include/sys/reent.h
@@ -685,15 +685,13 @@ struct _reent
           _mbstate_t _wcsrtombs_state;
 	  int _h_errno;
         } _reent;
-  /* Two next two fields were once used by malloc.  They are no longer
-     used. They are used to preserve the space used before so as to
-     allow addition of new reent fields and keep binary compatibility.   */
+#ifdef _REENT_BACKWARD_BINARY_COMPAT
       struct
         {
-#define _N_LISTS 30
-          unsigned char * _nextf[_N_LISTS];
-          unsigned int _nmalloc[_N_LISTS];
-        } _unused;
+          unsigned char * _reserved_3[30];
+          unsigned int _reserved_4[30];
+        } _reserved_5;
+#endif
     } _new;
 
 # ifndef _REENT_GLOBAL_ATEXIT


                 reply	other threads:[~2022-05-18  5:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220518055819.9FA493857827@sourceware.org \
    --to=sh@sourceware.org \
    --cc=newlib-cvs@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).