mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* libc/stdio/fscanf.c (fscanf): Call _vfscanf_r instead of __svfscanf_r
to make sure CHECK_INIT is called. (_fscanf_r): Ditto. * /libc/stdio/scanf.c (scanf): Ditto. (_scanf_r): Ditto. * libc/stdio/fwscanf.c (fwscanf): Call _vfwscanf_r instead of __svfwscanf_r to make sure CHECK_INIT is called. (_fwscanf_r): Ditto. * libc/stdio/wscanf.c (wscanf): Ditto. (_wscanf_r): Ditto.
This commit is contained in:
parent
27a249f513
commit
c842ff73e7
@ -1,3 +1,16 @@
|
||||
2011-07-15 Matt Johnson <johnso87@crhc.illinois.edu>
|
||||
|
||||
* libc/stdio/fscanf.c (fscanf): Call _vfscanf_r instead of __svfscanf_r
|
||||
to make sure CHECK_INIT is called.
|
||||
(_fscanf_r): Ditto.
|
||||
* /libc/stdio/scanf.c (scanf): Ditto.
|
||||
(_scanf_r): Ditto.
|
||||
* libc/stdio/fwscanf.c (fwscanf): Call _vfwscanf_r instead of
|
||||
__svfwscanf_r to make sure CHECK_INIT is called.
|
||||
(_fwscanf_r): Ditto.
|
||||
* libc/stdio/wscanf.c (wscanf): Ditto.
|
||||
(_wscanf_r): Ditto.
|
||||
|
||||
2011-07-13 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* libm/complex/cacos.c: Use temporaries and correct sequencing
|
||||
|
@ -45,7 +45,7 @@ fscanf(FILE *fp, fmt, va_alist)
|
||||
#else
|
||||
va_start (ap);
|
||||
#endif
|
||||
ret = __svfscanf_r (_REENT, fp, fmt, ap);
|
||||
ret = _vfscanf_r (_REENT, fp, fmt, ap);
|
||||
va_end (ap);
|
||||
return ret;
|
||||
}
|
||||
@ -71,7 +71,7 @@ _fscanf_r(ptr, FILE *fp, fmt, va_alist)
|
||||
#else
|
||||
va_start (ap);
|
||||
#endif
|
||||
ret = __svfscanf_r (ptr, fp, fmt, ap);
|
||||
ret = _vfscanf_r (ptr, fp, fmt, ap);
|
||||
va_end (ap);
|
||||
return (ret);
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ fwscanf (FILE *fp, _CONST wchar_t *fmt, ...)
|
||||
va_list ap;
|
||||
|
||||
va_start (ap, fmt);
|
||||
ret = __svfwscanf_r (_REENT, fp, fmt, ap);
|
||||
ret = _vfwscanf_r (_REENT, fp, fmt, ap);
|
||||
va_end (ap);
|
||||
return ret;
|
||||
}
|
||||
@ -45,7 +45,7 @@ _fwscanf_r (struct _reent *ptr, FILE *fp, _CONST wchar_t *fmt, ...)
|
||||
va_list ap;
|
||||
|
||||
va_start (ap, fmt);
|
||||
ret = __svfwscanf_r (ptr, fp, fmt, ap);
|
||||
ret = _vfwscanf_r (ptr, fp, fmt, ap);
|
||||
va_end (ap);
|
||||
return (ret);
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ scanf(fmt, va_alist)
|
||||
#else
|
||||
va_start (ap);
|
||||
#endif
|
||||
ret = __svfscanf_r (_REENT, _stdin_r (_REENT), fmt, ap);
|
||||
ret = _vfscanf_r (_REENT, _stdin_r (_REENT), fmt, ap);
|
||||
va_end (ap);
|
||||
return ret;
|
||||
}
|
||||
@ -71,7 +71,7 @@ _scanf_r(ptr, fmt, va_alist)
|
||||
#else
|
||||
va_start (ap);
|
||||
#endif
|
||||
ret = __svfscanf_r (ptr, _stdin_r (ptr), fmt, ap);
|
||||
ret = _vfscanf_r (ptr, _stdin_r (ptr), fmt, ap);
|
||||
va_end (ap);
|
||||
return (ret);
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ wscanf(_CONST wchar_t *fmt, ...)
|
||||
|
||||
_REENT_SMALL_CHECK_INIT (_REENT);
|
||||
va_start (ap, fmt);
|
||||
ret = __svfwscanf_r (_REENT, _stdin_r (_REENT), fmt, ap);
|
||||
ret = _vfwscanf_r (_REENT, _stdin_r (_REENT), fmt, ap);
|
||||
va_end (ap);
|
||||
return ret;
|
||||
}
|
||||
@ -47,7 +47,7 @@ _wscanf_r(struct _reent *ptr, _CONST wchar_t *fmt, ...)
|
||||
|
||||
_REENT_SMALL_CHECK_INIT (ptr);
|
||||
va_start (ap, fmt);
|
||||
ret = __svfwscanf_r (ptr, _stdin_r (ptr), fmt, ap);
|
||||
ret = _vfwscanf_r (ptr, _stdin_r (ptr), fmt, ap);
|
||||
va_end (ap);
|
||||
return (ret);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user