+2013-06-26 Jeff Johnston <jjohnstn@redhat.com>
+
+ * libc/include/stdio.h: Specify std streams always in terms
+ of _REENT.
+ * libc/include/wchar.h: Ditto.
+ * libc/include/sys/reent.h: Remove _RENT_ONLY check around
+ setting of _REENT macro.
+
2013-06-24 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/string.h (rawmemchr): Declare.
#define TMP_MAX 26
-#ifndef _REENT_ONLY
#define stdin (_REENT->_stdin)
#define stdout (_REENT->_stdout)
#define stderr (_REENT->_stderr)
-#else /* _REENT_ONLY */
-#define stdin (_impure_ptr->_stdin)
-#define stdout (_impure_ptr->_stdout)
-#define stderr (_impure_ptr->_stderr)
-#endif /* _REENT_ONLY */
#define _stdin_r(x) ((x)->_stdin)
#define _stdout_r(x) ((x)->_stdout)
/* #define _REENT_ONLY define this to get only reentrant routines */
-#ifndef _REENT_ONLY
-
#if defined(__DYNAMIC_REENT__) && !defined(__SINGLE_THREAD__)
#ifndef __getreent
struct _reent * _EXFUN(__getreent, (void));
# define _REENT _impure_ptr
#endif /* __SINGLE_THREAD__ || !__DYNAMIC_REENT__ */
-#endif /* !_REENT_ONLY */
-
#define _GLOBAL_REENT _global_impure_ptr
#ifdef _REENT_GLOBAL_ATEXIT
#define getwc(fp) fgetwc(fp)
#define putwc(wc,fp) fputwc((wc), (fp))
-#ifndef _REENT_ONLY
#define getwchar() fgetwc(_REENT->_stdin)
#define putwchar(wc) fputwc((wc), _REENT->_stdout)
-#else
-#define getwchar() fgetwc(_impure_ptr->_stdin)
-#define putwchar(wc) fputwc((wc), _impure_ptr->_stdout)
-#endif
_END_STD_C