Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Joyce <matthew.joyce@embedded-brains.de>2022-02-01 14:37:46 +0300
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-13 07:55:46 +0300
commit3266a463274789de3d805667a851c08bf5b36c18 (patch)
tree0311c6eb31ded5ea59159b3e64c9055080a7338d /newlib/libc/machine
parent627a5cb4133ece2a80dbca27c403d4ceb3139130 (diff)
Add _REENT_STDOUT(ptr)
Add a _REENT_STDOUT() macro to encapsulate access to the _stdout member of struct reent. This will help to replace the struct member with a thread-local storage object in a follow up patch.
Diffstat (limited to 'newlib/libc/machine')
-rw-r--r--newlib/libc/machine/spu/stdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/machine/spu/stdio.c b/newlib/libc/machine/spu/stdio.c
index 756628303..769b8f1c9 100644
--- a/newlib/libc/machine/spu/stdio.c
+++ b/newlib/libc/machine/spu/stdio.c
@@ -70,8 +70,8 @@ __sinit (struct _reent *s)
_REENT_STDIN(s) = &s->__sf[0];
_REENT_STDIN(s)->_fp = SPE_STDIN;
- s->_stdout = &s->__sf[1];
- s->_stdout->_fp = SPE_STDOUT;
+ _REENT_STDOUT(s) = &s->__sf[1];
+ _REENT_STDOUT(s)->_fp = SPE_STDOUT;
s->_stderr = &s->__sf[2];
s->_stderr->_fp = SPE_STDERR;