Switch to the OpenBSD implementations of the wide scanf functions.
This also gets us the C99 wcstoimax and wcstoumax, and a working fgetwc and ungetwc, all of which are needed in the implementation. This also brings several other files closer to upstream. Change-Id: I23b025a8237a6dbb9aa50d2a96765ea729a85579
This commit is contained in:
@@ -254,13 +254,14 @@ typedef struct {
|
||||
} imaxdiv_t;
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
intmax_t imaxabs(intmax_t) __pure2;
|
||||
imaxdiv_t imaxdiv(intmax_t, intmax_t) __pure2;
|
||||
|
||||
intmax_t strtoimax(const char *, char **, int);
|
||||
uintmax_t strtoumax(const char *, char **, int);
|
||||
|
||||
intmax_t wcstoimax(const wchar_t * __restrict,
|
||||
wchar_t ** __restrict, int);
|
||||
uintmax_t wcstoumax(const wchar_t * __restrict,
|
||||
wchar_t ** __restrict, int);
|
||||
__END_DECLS
|
||||
|
||||
#endif /* _INTTYPES_H_ */
|
||||
|
@@ -97,9 +97,12 @@ extern int swscanf(const wchar_t *, const wchar_t *, ...);
|
||||
extern wint_t towlower(wint_t);
|
||||
extern wint_t towupper(wint_t);
|
||||
extern wint_t ungetwc(wint_t, FILE *);
|
||||
extern int vfwprintf(FILE *, const wchar_t *, va_list);
|
||||
extern int vwprintf(const wchar_t *, va_list);
|
||||
extern int vswprintf(wchar_t *, size_t, const wchar_t *, va_list);
|
||||
extern int vfwprintf(FILE*, const wchar_t*, va_list);
|
||||
extern int vfwscanf(FILE*, const wchar_t*, va_list);
|
||||
extern int vswprintf(wchar_t*, size_t, const wchar_t*, va_list);
|
||||
extern int vswscanf(const wchar_t*, const wchar_t*, va_list);
|
||||
extern int vwprintf(const wchar_t*, va_list);
|
||||
extern int vwscanf(const wchar_t*, va_list);
|
||||
extern size_t wcrtomb(char *, wchar_t, mbstate_t *);
|
||||
extern int wcscasecmp(const wchar_t *, const wchar_t *);
|
||||
extern wchar_t *wcscat(wchar_t *, const wchar_t *);
|
||||
|
Reference in New Issue
Block a user