diff options
author | tjr <tjr@FreeBSD.org> | 2002-10-14 11:18:21 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-10-14 11:18:21 +0000 |
commit | 83b297f2f002d92fe29b8b6c4466b58491c60cd9 (patch) | |
tree | 91abecd893b916905cbb54d6b161023826a6cd18 /include | |
parent | c952a2a492986a744ef73884b4e30f448f735c55 (diff) | |
download | FreeBSD-src-83b297f2f002d92fe29b8b6c4466b58491c60cd9.zip FreeBSD-src-83b297f2f002d92fe29b8b6c4466b58491c60cd9.tar.gz |
Use a weak reference instead of a macro to make vfscanf an alias
for __vfscanf.
Diffstat (limited to 'include')
-rw-r--r-- | include/stdio.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/include/stdio.h b/include/stdio.h index 468a3c3..3da10be 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -258,20 +258,13 @@ int vsprintf(char * __restrict, const char * __restrict, #if __ISO_C_VISIBLE >= 1999 int snprintf(char * __restrict, size_t, const char * __restrict, ...) __printflike(3, 4); +int vfscanf(FILE * __restrict, const char * __restrict, __va_list) + __scanflike(2, 0); int vscanf(const char * __restrict, __va_list) __scanflike(1, 0); int vsnprintf(char * __restrict, size_t, const char * __restrict, __va_list) __printflike(3, 0); int vsscanf(const char * __restrict, const char * __restrict, __va_list) __scanflike(2, 0); - -/* - * This is a #define because the function is used internally and - * (unlike vfscanf) the name __vfscanf is guaranteed not to collide - * with a user function when _ANSI_SOURCE or _POSIX_SOURCE is defined. - * - * XXX missing a backing function (weak alias?) for this. - */ -#define vfscanf __vfscanf #endif /* @@ -387,8 +380,6 @@ int truncate(const char *, __off_t); * Functions internal to the implementation. */ int __srget(FILE *); -int __vfscanf(FILE *, const char *, __va_list); -int __svfscanf(FILE *, const char *, __va_list); int __swbuf(int, FILE *); /* |