public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Corinna Vinschen <vinschen@redhat.com>
To: newlib@sourceware.org
Subject: Re: [PATCH] newlib: Remove unused CHECK_STD_INIT() macro
Date: Fri, 1 Apr 2022 15:38:41 +0200	[thread overview]
Message-ID: <YkcAYX2Iy8hnm14A@calimero.vinschen.de> (raw)
In-Reply-To: <20220331065221.1970-1-sebastian.huber@embedded-brains.de>

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


      reply	other threads:[~2022-04-01 13:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31  6:52 Sebastian Huber
2022-04-01 13:38 ` Corinna Vinschen [this message]

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=YkcAYX2Iy8hnm14A@calimero.vinschen.de \
    --to=vinschen@redhat.com \
    --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).