Blame src/api/stdio.c

nsz f81126
#include <stdio.h>
nsz f81126
#define T(t) (t*)0;
nsz f81126
#define F(t,n) {t *y = &x.;;}
nsz f81126
#define C(n) switch(n){case n:;}
nsz f81126
static void f()
nsz f81126
{
nsz f81126
T(FILE)
nsz f81126
T(fpos_t)
nsz f81126
T(off_t)
nsz f81126
T(size_t)
nsz f81126
C(BUFSIZ)
nsz f81126
#ifdef _POSIX_C_SOURCE
nsz f81126
T(ssize_t)
nsz f81126
T(va_list)
nsz f81126
C(L_ctermid)
nsz f81126
#endif
nsz f81126
C(_IOFBF)
nsz f81126
C(_IOLBF)
nsz f81126
C(_IONBF)
nsz f81126
C(SEEK_CUR)
nsz f81126
C(SEEK_END)
nsz f81126
C(SEEK_SET)
nsz f81126
C(FILENAME_MAX)
nsz f81126
C(FOPEN_MAX)
nsz f81126
C(EOF)
nsz f81126
{void *x=NULL;}
nsz f81126
{FILE *x=stderr;}
nsz f81126
{FILE *x=stdin;}
nsz f81126
{FILE *x=stdout;}
nsz f81126
void(*p_clearerr)(FILE*) = clearerr;
nsz f81126
char*(*p_ctermid)(char*) = ctermid;
nsz f81126
int(*p_dprintf)(int,const char*restrict,...) = dprintf;
nsz f81126
int(*p_fclose)(FILE*) = fclose;
nsz f81126
FILE*(*p_fdopen)(int,const char*) = fdopen;
nsz f81126
int(*p_feof)(FILE*) = feof;
nsz f81126
int(*p_ferror)(FILE*) = ferror;
nsz f81126
int(*p_fflush)(FILE*) = fflush;
nsz f81126
int(*p_fgetc)(FILE*) = fgetc;
nsz f81126
int(*p_fgetpos)(FILE*restrict,fpos_t*restrict) = fgetpos;
nsz f81126
char*(*p_fgets)(char*restrict,int,FILE*restrict) = fgets;
nsz f81126
int(*p_fileno)(FILE*) = fileno;
nsz f81126
void(*p_flockfile)(FILE*) = flockfile;
nsz f81126
FILE*(*p_fmemopen)(void*restrict,size_t,const char*restrict) = fmemopen;
nsz f81126
FILE*(*p_fopen)(const char*restrict,const char*restrict) = fopen;
nsz f81126
int(*p_fprintf)(FILE*restrict,const char*restrict,...) = fprintf;
nsz f81126
int(*p_fputc)(int,FILE*) = fputc;
nsz f81126
int(*p_fputs)(const char*restrict,FILE*restrict) = fputs;
nsz f81126
size_t(*p_fread)(void*restrict,size_t,size_t,FILE*restrict) = fread;
nsz f81126
FILE*(*p_freopen)(const char*restrict,const char*restrict,FILE*restrict) = freopen;
nsz f81126
int(*p_fscanf)(FILE*restrict,const char*restrict,...) = fscanf;
nsz f81126
int(*p_fseek)(FILE*,long,int) = fseek;
nsz f81126
int(*p_fseeko)(FILE*,off_t,int) = fseeko;
nsz f81126
int(*p_fsetpos)(FILE*,const fpos_t*) = fsetpos;
nsz f81126
long(*p_ftell)(FILE*) = ftell;
nsz f81126
off_t(*p_ftello)(FILE*) = ftello;
nsz f81126
int(*p_ftrylockfile)(FILE*) = ftrylockfile;
nsz f81126
void(*p_funlockfile)(FILE*) = funlockfile;
nsz f81126
size_t(*p_fwrite)(const void*restrict,size_t,size_t,FILE*restrict) = fwrite;
nsz f81126
int(*p_getc)(FILE*) = getc;
nsz f81126
int(*p_getc_unlocked)(FILE*) = getc_unlocked;
nsz f81126
int(*p_getchar)(void) = getchar;
nsz f81126
int(*p_getchar_unlocked)(void) = getchar_unlocked;
nsz f81126
ssize_t(*p_getdelim)(char**restrict,size_t*restrict,int,FILE*restrict) = getdelim;
nsz f81126
ssize_t(*p_getline)(char**restrict,size_t*restrict,FILE*restrict) = getline;
nsz f81126
char*(*p_gets)(char*) = gets;
nsz f81126
FILE*(*p_open_memstream)(char**,size_t*) = open_memstream;
nsz f81126
int(*p_pclose)(FILE*) = pclose;
nsz f81126
void(*p_perror)(const char*) = perror;
nsz f81126
FILE*(*p_popen)(const char*,const char*) = popen;
nsz f81126
int(*p_printf)(const char*restrict,...) = printf;
nsz f81126
int(*p_putc)(int,FILE*) = putc;
nsz f81126
int(*p_putc_unlocked)(int,FILE*) = putc_unlocked;
nsz f81126
int(*p_putchar)(int) = putchar;
nsz f81126
int(*p_putchar_unlocked)(int) = putchar_unlocked;
nsz f81126
int(*p_puts)(const char*) = puts;
nsz f81126
int(*p_remove)(const char*) = remove;
nsz f81126
int(*p_rename)(const char*,const char*) = rename;
nsz f81126
int(*p_renameat)(int,const char*,int,const char*) = renameat;
nsz f81126
void(*p_rewind)(FILE*) = rewind;
nsz f81126
int(*p_scanf)(const char*restrict,...) = scanf;
nsz f81126
void(*p_setbuf)(FILE*restrict,char*restrict) = setbuf;
nsz f81126
int(*p_setvbuf)(FILE*restrict,char*restrict,int,size_t) = setvbuf;
nsz f81126
int(*p_snprintf)(char*restrict,size_t,const char*restrict,...) = snprintf;
nsz f81126
int(*p_sprintf)(char*restrict,const char*restrict,...) = sprintf;
nsz f81126
int(*p_sscanf)(const char*restrict,const char*restrict,...) = sscanf;
nsz f81126
char*(*p_tempnam)(const char*,const char*) = tempnam;
nsz f81126
FILE*(*p_tmpfile)(void) = tmpfile;
nsz f81126
char*(*p_tmpnam)(char*) = tmpnam;
nsz f81126
int(*p_ungetc)(int,FILE*) = ungetc;
nsz f81126
}
nsz f81126
#include <wchar.h>
nsz f81126
static void g()
nsz f81126
{
nsz f81126
wint_t(*p_btowc)(int) = btowc;
nsz f81126
wint_t(*p_fgetwc)(FILE*) = fgetwc;
nsz f81126
wchar_t*(*p_fgetws)(wchar_t*restrict,int,FILE*restrict) = fgetws;
nsz f81126
wint_t(*p_fputwc)(wchar_t,FILE*) = fputwc;
nsz f81126
int(*p_fputws)(const wchar_t*restrict,FILE*restrict) = fputws;
nsz f81126
int(*p_fwide)(FILE*,int) = fwide;
nsz f81126
int(*p_fwprintf)(FILE*restrict,const wchar_t*restrict,...) = fwprintf;
nsz f81126
int(*p_fwscanf)(FILE*restrict,const wchar_t*restrict,...) = fwscanf;
nsz f81126
wint_t(*p_getwc)(FILE*) = getwc;
nsz f81126
wint_t(*p_putwc)(wchar_t,FILE*) = putwc;
nsz f81126
int(*p_swprintf)(wchar_t*restrict,size_t,const wchar_t*restrict,...) = swprintf;
nsz f81126
int(*p_swscanf)(const wchar_t*restrict,const wchar_t*restrict,...) = swscanf;
nsz f81126
wint_t(*p_ungetwc)(wint_t,FILE*) = ungetwc;
nsz f81126
int(*p_wctob)(wint_t) = wctob;
nsz f81126
int(*p_wprintf)(const wchar_t*restrict,...) = wprintf;
nsz f81126
int(*p_wscanf)(const wchar_t*restrict,...) = wscanf;
nsz f81126
}
nsz f81126
#include <stdarg.h>
nsz f81126
static void h()
nsz f81126
{
nsz f81126
int(*p_vdprintf)(int,const char*restrict,va_list) = vdprintf;
nsz f81126
int(*p_vfprintf)(FILE*restrict,const char*restrict,va_list) = vfprintf;
nsz f81126
int(*p_vfscanf)(FILE*restrict,const char*restrict,va_list) = vfscanf;
nsz f81126
int(*p_vprintf)(const char*restrict,va_list) = vprintf;
nsz f81126
int(*p_vscanf)(const char*restrict,va_list) = vscanf;
nsz f81126
int(*p_vsnprintf)(char*restrict,size_t,const char*restrict,va_list) = vsnprintf;
nsz f81126
int(*p_vsprintf)(char*restrict,const char*restrict,va_list) = vsprintf;
nsz f81126
int(*p_vsscanf)(const char*restrict,const char*restrict,va_list) = vsscanf;
nsz f81126
nsz f81126
int(*p_vfwprintf)(FILE*restrict,const wchar_t*restrict,va_list) = vfwprintf;
nsz f81126
int(*p_vfwscanf)(FILE*restrict,const wchar_t*restrict,va_list) = vfwscanf;
nsz f81126
int(*p_vswprintf)(wchar_t*restrict,size_t,const wchar_t*restrict,va_list) = vswprintf;
nsz f81126
int(*p_vswscanf)(const wchar_t*restrict,const wchar_t*restrict,va_list) = vswscanf;
nsz f81126
int(*p_vwprintf)(const wchar_t*restrict,va_list) = vwprintf;
nsz f81126
int(*p_vwscanf)(const wchar_t*restrict,va_list) = vwscanf;
nsz f81126
}