* [PATCH] newlib: Remove unused CHECK_STD_INIT() macro
@ 2022-03-31 6:52 Sebastian Huber
2022-04-01 13:38 ` Corinna Vinschen
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Huber @ 2022-03-31 6:52 UTC (permalink / raw)
To: newlib
---
newlib/libc/stdio/local.h | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/newlib/libc/stdio/local.h b/newlib/libc/stdio/local.h
index 86422eb11..e14586f35 100644
--- a/newlib/libc/stdio/local.h
+++ b/newlib/libc/stdio/local.h
@@ -221,15 +221,6 @@ extern _READ_WRITE_RETURN_TYPE __swrite64 (struct _reent *, void *,
while (0)
#endif /* !_REENT_SMALL || _REENT_GLOBAL_STDIO_STREAMS */
-#define CHECK_STD_INIT(ptr) \
- do \
- { \
- struct _reent *_check_init_ptr = (ptr); \
- if ((_check_init_ptr) && !(_check_init_ptr)->__cleanup) \
- __sinit (_check_init_ptr); \
- } \
- while (0)
-
/* Return true and set errno and stream error flag iff the given FILE
cannot be written now. */
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] newlib: Remove unused CHECK_STD_INIT() macro
2022-03-31 6:52 [PATCH] newlib: Remove unused CHECK_STD_INIT() macro Sebastian Huber
@ 2022-04-01 13:38 ` Corinna Vinschen
0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2022-04-01 13:38 UTC (permalink / raw)
To: newlib
On Mar 31 08:52, Sebastian Huber wrote:
> ---
> newlib/libc/stdio/local.h | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/newlib/libc/stdio/local.h b/newlib/libc/stdio/local.h
> index 86422eb11..e14586f35 100644
> --- a/newlib/libc/stdio/local.h
> +++ b/newlib/libc/stdio/local.h
> @@ -221,15 +221,6 @@ extern _READ_WRITE_RETURN_TYPE __swrite64 (struct _reent *, void *,
> while (0)
> #endif /* !_REENT_SMALL || _REENT_GLOBAL_STDIO_STREAMS */
>
> -#define CHECK_STD_INIT(ptr) \
> - do \
> - { \
> - struct _reent *_check_init_ptr = (ptr); \
> - if ((_check_init_ptr) && !(_check_init_ptr)->__cleanup) \
> - __sinit (_check_init_ptr); \
> - } \
> - while (0)
> -
> /* Return true and set errno and stream error flag iff the given FILE
> cannot be written now. */
This patch is kind of obvious, but then again it should drop
CHECK_STD_INIT from libc/machine/spu/c99ppe.h and all its usages
within libc/machine/spu as well.
Thanks,
Corinna
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-01 13:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 6:52 [PATCH] newlib: Remove unused CHECK_STD_INIT() macro Sebastian Huber
2022-04-01 13:38 ` Corinna Vinschen
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).