newlib: Remove superfluous CHECK_STD_INIT() macro

This macro is unused or expands to nothing.
This commit is contained in:
Sebastian Huber 2022-03-31 08:43:49 +02:00
parent e9c96f0a6d
commit bd95aa4d33
9 changed files with 0 additions and 24 deletions

View File

@ -105,6 +105,5 @@ FILE *__sfp (struct _reent *);
#define CHECK_INIT(ptr) \
do { if ((ptr) && !(ptr)->__cleanup) __sinit (ptr); } while (0)
#define CHECK_STD_INIT(ptr) /* currently, do nothing */
#define CHECK_STR_INIT(ptr) /* currently, do nothing */
#endif /* __ASSEMBLER__ */

View File

@ -43,8 +43,6 @@ getchar ()
{
int ret;
CHECK_STD_INIT(_REENT);
return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_GETCHAR, &ret);
}
#endif /* ! _REENT_ONLY */

View File

@ -40,8 +40,6 @@ char *
gets (buf)
char *buf;
{
CHECK_STD_INIT(_REENT);
/* The return value gets written over buf
*/
return (char*) __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_GETS, &buf);

View File

@ -19,8 +19,6 @@ perror (const char *s)
{
c99_perror_t arg;
CHECK_STD_INIT(_REENT);
arg.str = s;
arg.arg_errno = errno;
__send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PERROR, &arg);

View File

@ -10,8 +10,6 @@ int
putchar (c)
int c;
{
CHECK_STD_INIT(_REENT);
/* c gets overwritten before return */
return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PUTCHAR, &c);

View File

@ -7,8 +7,6 @@
int
puts (char const * s)
{
CHECK_STD_INIT(_REENT);
/* The return value gets written over s
*/
return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PUTS, &s);

View File

@ -24,8 +24,6 @@ vprintf (const char *fmt,
{
c99_vprintf_t args;
CHECK_STD_INIT(_REENT);
args.fmt = fmt;
va_copy(args.ap,ap);

View File

@ -56,8 +56,6 @@ vscanf (const char *fmt,
{
c99_vscanf_t args;
CHECK_STD_INIT(_REENT);
args.fmt = (char*) fmt;
va_copy(args.ap,ap);

View File

@ -220,15 +220,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. */