Blame src/api/wchar.c

nsz 6a2161
#include <wchar.h>
nsz 6a2161
#define T(t) (t*)0;
nsz 6a2161
#define F(t,n) {t *y = &x.;;}
nsz 6a2161
#define C(n) switch(n){case n:;}
nsz 6a2161
static void f()
nsz 6a2161
{
nsz 6a2161
#ifdef _POSIX_C_SOURCE
nsz 6a2161
T(FILE)
nsz 6a2161
T(locale_t)
nsz 6a2161
T(va_list)
nsz 6a2161
#endif
nsz 6a2161
T(mbstate_t)
nsz 6a2161
T(size_t)
nsz 6a2161
T(wchar_t)
nsz 6a2161
T(wint_t)
Szabolcs Nagy 7ab89d
T(struct tm)
nsz 6a2161
C(WCHAR_MAX)
nsz 6a2161
C(WCHAR_MIN)
nsz 6a2161
C(WEOF)
nsz 6a2161
{void *x=NULL;}
Szabolcs Nagy 7ab89d
{wint_t(*p)(int) = btowc;}
Szabolcs Nagy cf1c99
{wint_t(*p)(FILE*) = fgetwc;}
Szabolcs Nagy 7ab89d
{wchar_t*(*p)(wchar_t*restrict,int,FILE*restrict) = fgetws;}
Szabolcs Nagy 7ab89d
{wint_t(*p)(wchar_t,FILE*) = fputwc;}
Szabolcs Nagy 7ab89d
{int(*p)(const wchar_t*restrict,FILE*restrict) = fputws;}
Szabolcs Nagy 7ab89d
{int(*p)(FILE*,int) = fwide;}
Szabolcs Nagy 7ab89d
{int(*p)(FILE*restrict,const wchar_t*restrict,...) = fwprintf;}
Szabolcs Nagy 7ab89d
{int(*p)(FILE*restrict,const wchar_t*restrict,...) = fwscanf;}
Szabolcs Nagy 7ab89d
{wint_t(*p)(FILE*) = getwc;}
nsz 0ef264
{wint_t(*p)(void) = getwchar;}
nsz 0ef264
{size_t(*p)(const char*restrict,size_t,mbstate_t*restrict) = mbrlen;}
nsz 0ef264
{size_t(*p)(wchar_t*restrict,const char*restrict,size_t,mbstate_t*restrict) = mbrtowc;}
nsz 0ef264
{int(*p)(const mbstate_t*) = mbsinit;}
nsz 0ef264
{size_t(*p)(wchar_t*restrict,const char**restrict,size_t,mbstate_t*restrict) = mbsrtowcs;}
Szabolcs Nagy 7ab89d
{wint_t(*p)(wchar_t,FILE*) = putwc;}
nsz 0ef264
{wint_t(*p)(wchar_t) = putwchar;}
Szabolcs Nagy 7ab89d
{int(*p)(wchar_t*restrict,size_t,const wchar_t*restrict,...) = swprintf;}
Szabolcs Nagy 7ab89d
{int(*p)(const wchar_t*restrict,const wchar_t*restrict,...) = swscanf;}
Szabolcs Nagy 7ab89d
{wint_t(*p)(wint_t,FILE*) = ungetwc;}
Szabolcs Nagy 7ab89d
{int(*p)(FILE*restrict,const wchar_t*restrict,va_list) = vfwprintf;}
Szabolcs Nagy 7ab89d
{int(*p)(FILE*restrict,const wchar_t*restrict,va_list) = vfwscanf;}
Szabolcs Nagy 7ab89d
{int(*p)(wchar_t*restrict,size_t,const wchar_t*restrict,va_list) = vswprintf;}
Szabolcs Nagy 7ab89d
{int(*p)(const wchar_t*restrict,const wchar_t*restrict,va_list) = vswscanf;}
Szabolcs Nagy 7ab89d
{int(*p)(const wchar_t*restrict,va_list) = vwprintf;}
Szabolcs Nagy 7ab89d
{int(*p)(const wchar_t*restrict,va_list) = vwscanf;}
nsz 0ef264
{size_t(*p)(char*restrict,wchar_t,mbstate_t*restrict) = wcrtomb;}
nsz 0ef264
{wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict) = wcscat;}
nsz 0ef264
{wchar_t*(*p)(const wchar_t*,wchar_t) = wcschr;}
nsz 0ef264
{int(*p)(const wchar_t*,const wchar_t*) = wcscmp;}
nsz 0ef264
{int(*p)(const wchar_t*,const wchar_t*) = wcscoll;}
nsz 0ef264
{wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict) = wcscpy;}
nsz 0ef264
{size_t(*p)(const wchar_t*,const wchar_t*) = wcscspn;}
nsz 0ef264
{size_t(*p)(wchar_t*restrict,size_t,const wchar_t*restrict,const struct tm*restrict) = wcsftime;}
nsz 0ef264
{size_t(*p)(const wchar_t*) = wcslen;}
nsz 0ef264
{wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict,size_t) = wcsncat;}
nsz 0ef264
{int(*p)(const wchar_t*,const wchar_t*,size_t) = wcsncmp;}
nsz 0ef264
{wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict,size_t) = wcsncpy;}
nsz 0ef264
{wchar_t*(*p)(const wchar_t*,const wchar_t*) = wcspbrk;}
nsz 0ef264
{wchar_t*(*p)(const wchar_t*,wchar_t) = wcsrchr;}
nsz 0ef264
{size_t(*p)(char*restrict,const wchar_t**restrict,size_t,mbstate_t*restrict) = wcsrtombs;}
nsz 0ef264
{size_t(*p)(const wchar_t*,const wchar_t*) = wcsspn;}
nsz 0ef264
{wchar_t*(*p)(const wchar_t*restrict,const wchar_t*restrict) = wcsstr;}
nsz 0ef264
{double(*p)(const wchar_t*restrict,wchar_t**restrict) = wcstod;}
nsz 0ef264
{float(*p)(const wchar_t*restrict,wchar_t**restrict) = wcstof;}
nsz 0ef264
{wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict,wchar_t**restrict) = wcstok;}
nsz 0ef264
{long(*p)(const wchar_t*restrict,wchar_t**restrict,int) = wcstol;}
nsz 0ef264
{long double(*p)(const wchar_t*restrict,wchar_t**restrict) = wcstold;}
nsz 0ef264
{long long(*p)(const wchar_t*restrict,wchar_t**restrict,int) = wcstoll;}
nsz 0ef264
{unsigned long(*p)(const wchar_t*restrict,wchar_t**restrict,int) = wcstoul;}
nsz 0ef264
{unsigned long long(*p)(const wchar_t*restrict,wchar_t**restrict,int) = wcstoull;}
nsz 0ef264
{size_t(*p)(wchar_t*restrict,const wchar_t*restrict,size_t) = wcsxfrm;}
Szabolcs Nagy 7ab89d
{int(*p)(wint_t) = wctob;}
nsz 0ef264
{wchar_t*(*p)(const wchar_t*,wchar_t,size_t) = wmemchr;}
nsz 0ef264
{int(*p)(const wchar_t*,const wchar_t*,size_t) = wmemcmp;}
nsz 0ef264
{wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict,size_t) = wmemcpy;}
nsz 0ef264
{wchar_t*(*p)(wchar_t*,const wchar_t*,size_t) = wmemmove;}
nsz 0ef264
{wchar_t*(*p)(wchar_t*,wchar_t,size_t) = wmemset;}
nsz 6a2161
#ifdef _POSIX_C_SOURCE
nsz 0ef264
{size_t(*p)(wchar_t*restrict,const char**restrict,size_t,size_t,mbstate_t*restrict) = mbsnrtowcs;}
nsz edcdab
{FILE*(*p)(wchar_t**,size_t*) = open_wmemstream;}
nsz 0ef264
{wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict) = wcpcpy;}
nsz 0ef264
{wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict,size_t) = wcpncpy;}
nsz 0ef264
{int(*p)(const wchar_t*,const wchar_t*) = wcscasecmp;}
nsz 0ef264
{int(*p)(const wchar_t*,const wchar_t*,locale_t) = wcscasecmp_l;}
nsz 0ef264
{int(*p)(const wchar_t*,const wchar_t*,locale_t) = wcscoll_l;}
nsz 0ef264
{wchar_t*(*p)(const wchar_t*) = wcsdup;}
nsz 0ef264
{int(*p)(const wchar_t*,const wchar_t*,size_t) = wcsncasecmp;}
nsz 0ef264
{int(*p)(const wchar_t*,const wchar_t*,size_t,locale_t) = wcsncasecmp_l;}
nsz 0ef264
{size_t(*p)(const wchar_t*,size_t) = wcsnlen;}
nsz 0ef264
{size_t(*p)(char*restrict,const wchar_t**restrict,size_t,size_t,mbstate_t*restrict) = wcsnrtombs;}
nsz 0ef264
{size_t(*p)(wchar_t*restrict,const wchar_t*restrict,size_t,locale_t) = wcsxfrm_l;}
nsz 6a2161
#endif
nsz 6a2161
#ifdef _XOPEN_SOURCE
nsz 0ef264
{int(*p)(const wchar_t*,size_t) = wcswidth;}
nsz 0ef264
{int(*p)(wchar_t) = wcwidth;}
nsz 6a2161
#endif
nsz 6a2161
}