1*da2e3ebdSchinset prototyped 2*da2e3ebdSchinlib mbstowcs,wctomb,wcrtomb,wcslen,wcstombs,wcwidth stdlib.h stdio.h wchar.h 3*da2e3ebdSchinlib towlower,towupper stdlib.h stdio.h wchar.h 4*da2e3ebdSchintyp mbstate_t stdlib.h stdio.h wchar.h 5*da2e3ebdSchinnxt wchar 6*da2e3ebdSchin 7*da2e3ebdSchinrun{ 8*da2e3ebdSchincat <<! 9*da2e3ebdSchin #ifndef _SFSTDIO_H 10*da2e3ebdSchin #include <ast_common.h> 11*da2e3ebdSchin #include <stdio.h> 12*da2e3ebdSchin #endif 13*da2e3ebdSchin #if _hdr_wchar && defined(_nxt_wchar) 14*da2e3ebdSchin #include $_nxt_wchar /* the native wchar.h */ 15*da2e3ebdSchin #endif 16*da2e3ebdSchin #if _hdr_wctype 17*da2e3ebdSchin #include <wctype.h> 18*da2e3ebdSchin #endif 19*da2e3ebdSchin 20*da2e3ebdSchin #ifndef WEOF 21*da2e3ebdSchin #define WEOF (-1) 22*da2e3ebdSchin #endif 23*da2e3ebdSchin 24*da2e3ebdSchin #undef fgetwc 25*da2e3ebdSchin #undef fgetws 26*da2e3ebdSchin #undef fputwc 27*da2e3ebdSchin #undef fputws 28*da2e3ebdSchin #undef getwc 29*da2e3ebdSchin #undef getwchar 30*da2e3ebdSchin #undef getws 31*da2e3ebdSchin #undef putwc 32*da2e3ebdSchin #undef putwchar 33*da2e3ebdSchin #undef ungetwc 34*da2e3ebdSchin 35*da2e3ebdSchin #define fgetwc _ast_fgetwc 36*da2e3ebdSchin #define fgetws _ast_fgetws 37*da2e3ebdSchin #define fputwc _ast_fputwc 38*da2e3ebdSchin #define fputws _ast_fputws 39*da2e3ebdSchin #define fwide _ast_fwide 40*da2e3ebdSchin #define fwprintf _ast_fwprintf 41*da2e3ebdSchin #define fwscanf _ast_fwscanf 42*da2e3ebdSchin #define getwc _ast_getwc 43*da2e3ebdSchin #define getwchar _ast_getwchar 44*da2e3ebdSchin #define getws _ast_getws 45*da2e3ebdSchin #define putwc _ast_putwc 46*da2e3ebdSchin #define putwchar _ast_putwchar 47*da2e3ebdSchin #define swprintf _ast_swprintf 48*da2e3ebdSchin #define swscanf _ast_swscanf 49*da2e3ebdSchin #define ungetwc _ast_ungetwc 50*da2e3ebdSchin #define vfwprintf _ast_vfwprintf 51*da2e3ebdSchin #define vfwscanf _ast_vfwscanf 52*da2e3ebdSchin #define vswprintf _ast_vswprintf 53*da2e3ebdSchin #define vswscanf _ast_vswscanf 54*da2e3ebdSchin #define vwprintf _ast_vwprintf 55*da2e3ebdSchin #define vwscanf _ast_vwscanf 56*da2e3ebdSchin #define wprintf _ast_wprintf 57*da2e3ebdSchin #define wscanf _ast_wscanf 58*da2e3ebdSchin 59*da2e3ebdSchin #if !_typ_mbstate_t 60*da2e3ebdSchin #undef _typ_mbstate_t 61*da2e3ebdSchin #define _typ_mbstate_t 1 62*da2e3ebdSchin typedef char mbstate_t; 63*da2e3ebdSchin #endif 64*da2e3ebdSchin 65*da2e3ebdSchin #if _BLD_ast && defined(__EXPORT__) 66*da2e3ebdSchin #define extern __EXPORT__ 67*da2e3ebdSchin #endif 68*da2e3ebdSchin 69*da2e3ebdSchin #if !_lib_mbstowcs 70*da2e3ebdSchin extern size_t mbstowcs(wchar_t*, const char*, size_t); 71*da2e3ebdSchin #endif 72*da2e3ebdSchin #if !_lib_wctomb 73*da2e3ebdSchin extern int wctomb(char*, wchar_t); 74*da2e3ebdSchin #endif 75*da2e3ebdSchin #if !_lib_wcrtomb 76*da2e3ebdSchin extern size_t wcrtomb(char*, wchar_t, mbstate_t*); 77*da2e3ebdSchin #endif 78*da2e3ebdSchin #if !_lib_wcslen 79*da2e3ebdSchin extern size_t wcslen(const wchar_t*); 80*da2e3ebdSchin #endif 81*da2e3ebdSchin #if !_lib_wcstombs 82*da2e3ebdSchin extern size_t wcstombs(char*, const wchar_t*, size_t); 83*da2e3ebdSchin #endif 84*da2e3ebdSchin 85*da2e3ebdSchin extern int fwprintf(FILE*, const wchar_t*, ...); 86*da2e3ebdSchin extern int fwscanf(FILE*, const wchar_t*, ...); 87*da2e3ebdSchin extern wint_t fgetwc(FILE*); 88*da2e3ebdSchin extern wchar_t* fgetws(wchar_t*, int, FILE*); 89*da2e3ebdSchin extern wint_t fputwc(wchar_t, FILE*); 90*da2e3ebdSchin extern int fputws(const wchar_t*, FILE*); 91*da2e3ebdSchin extern int fwide(FILE*, int); 92*da2e3ebdSchin extern wint_t getwc(FILE*); 93*da2e3ebdSchin extern wint_t getwchar(void); 94*da2e3ebdSchin extern wchar_t* getws(wchar_t*); 95*da2e3ebdSchin extern wint_t putwc(wchar_t, FILE*); 96*da2e3ebdSchin extern wint_t putwchar(wchar_t); 97*da2e3ebdSchin extern int swprintf(wchar_t*, size_t, const wchar_t*, ...); 98*da2e3ebdSchin extern int swscanf(const wchar_t*, const wchar_t*, ...); 99*da2e3ebdSchin extern wint_t ungetwc(wint_t, FILE*); 100*da2e3ebdSchin extern int vfwprintf(FILE*, const wchar_t*, va_list); 101*da2e3ebdSchin extern int vfwscanf(FILE*, const wchar_t*, va_list); 102*da2e3ebdSchin extern int vwprintf(const wchar_t*, va_list); 103*da2e3ebdSchin extern int vwscanf(const wchar_t*, va_list); 104*da2e3ebdSchin extern int vswprintf(wchar_t*, size_t, const wchar_t*, va_list); 105*da2e3ebdSchin extern int vswscanf(const wchar_t*, const wchar_t*, va_list); 106*da2e3ebdSchin extern int wprintf(const wchar_t*, ...); 107*da2e3ebdSchin extern int wscanf(const wchar_t*, ...); 108*da2e3ebdSchin 109*da2e3ebdSchin #undef extern 110*da2e3ebdSchin! 111*da2e3ebdSchin}end 112