Re: [PATCH v3 6/7] Optional struct _reent::_new::_unused

Sebastian Huber <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>

On 16/05/2022 17:53, Sebastian Huber wrote:
> diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h
> index 6d6796ed3..4b09e8cd5 100644
> --- a/newlib/libc/include/sys/reent.h
> +++ b/newlib/libc/include/sys/reent.h
> @@ -685,6 +685,7 @@ struct _reent
>             _mbstate_t _wcsrtombs_state;
>   	  int _h_errno;
>           } _reent;
> +#ifdef _REENT_BACKWARD_BINARY_COMPAT
>     /* 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.   */

I guess the comment could be also removed.

> @@ -693,7 +694,8 @@ struct _reent
>   #define _N_LISTS 30
>             unsigned char * _nextf[_N_LISTS];
>             unsigned int _nmalloc[_N_LISTS];

Maybe we should also rename _nextf in _reserved_4 and _nmalloc in 
_reserved_5.

> -        } _unused;
> +        } _reserved_3;
> +#endif

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: [email protected]
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.