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-01-28 12:58:36 +0300
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-13 07:55:46 +0300
commit627a5cb4133ece2a80dbca27c403d4ceb3139130 (patch)
tree039bdd320b53c183829c7c32712e09da41ccf0ee /newlib/libc/machine
parentf3b8138239d3ba34c4ecaa4305b0fbd7eb4e28a5 (diff)
Add _REENT_STDIN(ptr)
Add a _REENT_STDIN() macro to encapsulate access to the _stdin 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 1dcc88b60..756628303 100644
--- a/newlib/libc/machine/spu/stdio.c
+++ b/newlib/libc/machine/spu/stdio.c
@@ -67,8 +67,8 @@ __sinit (struct _reent *s)
{
s->__cleanup = __cleanup;
- s->_stdin = &s->__sf[0];
- s->_stdin->_fp = SPE_STDIN;
+ _REENT_STDIN(s) = &s->__sf[0];
+ _REENT_STDIN(s)->_fp = SPE_STDIN;
s->_stdout = &s->__sf[1];
s->_stdout->_fp = SPE_STDOUT;