public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Remove duplicate stdio initializations
@ 2022-05-13 11:19 Sebastian Huber
  0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2022-05-13 11:19 UTC (permalink / raw)
  To: newlib-cvs

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

commit 5a066d46c99e132ad90593c8ac82f9686c98d469
Author: Matt Joyce <matthew.joyce@embedded-brains.de>
Date:   Fri Apr 1 11:30:00 2022 +0200

    Remove duplicate stdio initializations
    
    Removed duplicate stdio initializations from __sinit(). These
    are already initialized in the _REENT_INIT macro in sys/reent.h.
    This simplification enables the reduction of _GLOBAL_REENT
    dependency in a follow-on patch.

Diff:
---
 newlib/libc/stdio/findfp.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/newlib/libc/stdio/findfp.c b/newlib/libc/stdio/findfp.c
index 1370b63b8..ab3c6a55d 100644
--- a/newlib/libc/stdio/findfp.c
+++ b/newlib/libc/stdio/findfp.c
@@ -259,10 +259,6 @@ __sinit (struct _reent *s)
   s->_stdin = __sfp(s);
   s->_stdout = __sfp(s);
   s->_stderr = __sfp(s);
-# else /* _REENT_GLOBAL_STDIO_STREAMS */
-  s->_stdin = &__sf[0];
-  s->_stdout = &__sf[1];
-  s->_stderr = &__sf[2];
 # endif /* _REENT_GLOBAL_STDIO_STREAMS */
 #endif


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-13 11:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 11:19 [newlib-cygwin] Remove duplicate stdio initializations Sebastian Huber

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).