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
Szabolcs Nagy 7ab89d
#ifdef OBSOLETE
Szabolcs Nagy 7ab89d
C(L_tmpnam)
Szabolcs Nagy 7ab89d
#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 0ef264
{void(*p)(FILE*) = clearerr;}
nsz 0ef264
{char*(*p)(char*) = ctermid;}
nsz 0ef264
{int(*p)(int,const char*restrict,...) = dprintf;}
nsz 0ef264
{int(*p)(FILE*) = fclose;}
nsz edcdab
{FILE*(*p)(int,const char*) = fdopen;}
nsz 0ef264
{int(*p)(FILE*) = feof;}
nsz 0ef264
{int(*p)(FILE*) = ferror;}
nsz 0ef264
{int(*p)(FILE*) = fflush;}
nsz 0ef264
{int(*p)(FILE*) = fgetc;}
nsz 0ef264
{int(*p)(FILE*restrict,fpos_t*restrict) = fgetpos;}
nsz 0ef264
{char*(*p)(char*restrict,int,FILE*restrict) = fgets;}
nsz 0ef264
{int(*p)(FILE*) = fileno;}
nsz 0ef264
{void(*p)(FILE*) = flockfile;}
nsz edcdab
{FILE*(*p)(void*restrict,size_t,const char*restrict) = fmemopen;}
nsz edcdab
{FILE*(*p)(const char*restrict,const char*restrict) = fopen;}
nsz 0ef264
{int(*p)(FILE*restrict,const char*restrict,...) = fprintf;}
nsz 0ef264
{int(*p)(int,FILE*) = fputc;}
nsz 0ef264
{int(*p)(const char*restrict,FILE*restrict) = fputs;}
nsz 0ef264
{size_t(*p)(void*restrict,size_t,size_t,FILE*restrict) = fread;}
nsz edcdab
{FILE*(*p)(const char*restrict,const char*restrict,FILE*restrict) = freopen;}
nsz 0ef264
{int(*p)(FILE*restrict,const char*restrict,...) = fscanf;}
nsz 0ef264
{int(*p)(FILE*,long,int) = fseek;}
nsz 0ef264
{int(*p)(FILE*,off_t,int) = fseeko;}
nsz 0ef264
{int(*p)(FILE*,const fpos_t*) = fsetpos;}
nsz 0ef264
{long(*p)(FILE*) = ftell;}
nsz 0ef264
{off_t(*p)(FILE*) = ftello;}
nsz 0ef264
{int(*p)(FILE*) = ftrylockfile;}
nsz 0ef264
{void(*p)(FILE*) = funlockfile;}
nsz 0ef264
{size_t(*p)(const void*restrict,size_t,size_t,FILE*restrict) = fwrite;}
nsz 0ef264
{int(*p)(FILE*) = getc;}
nsz 0ef264
{int(*p)(FILE*) = getc_unlocked;}
nsz 0ef264
{int(*p)(void) = getchar;}
nsz 0ef264
{int(*p)(void) = getchar_unlocked;}
nsz 0ef264
{ssize_t(*p)(char**restrict,size_t*restrict,int,FILE*restrict) = getdelim;}
nsz 0ef264
{ssize_t(*p)(char**restrict,size_t*restrict,FILE*restrict) = getline;}
nsz 0ef264
{char*(*p)(char*) = gets;}
nsz edcdab
{FILE*(*p)(char**,size_t*) = open_memstream;}
nsz 0ef264
{int(*p)(FILE*) = pclose;}
nsz 0ef264
{void(*p)(const char*) = perror;}
nsz edcdab
{FILE*(*p)(const char*,const char*) = popen;}
nsz 0ef264
{int(*p)(const char*restrict,...) = printf;}
nsz 0ef264
{int(*p)(int,FILE*) = putc;}
nsz 0ef264
{int(*p)(int,FILE*) = putc_unlocked;}
nsz 0ef264
{int(*p)(int) = putchar;}
nsz 0ef264
{int(*p)(int) = putchar_unlocked;}
nsz 0ef264
{int(*p)(const char*) = puts;}
nsz 0ef264
{int(*p)(const char*) = remove;}
nsz 0ef264
{int(*p)(const char*,const char*) = rename;}
nsz 0ef264
{int(*p)(int,const char*,int,const char*) = renameat;}
nsz 0ef264
{void(*p)(FILE*) = rewind;}
nsz 0ef264
{int(*p)(const char*restrict,...) = scanf;}
nsz 0ef264
{void(*p)(FILE*restrict,char*restrict) = setbuf;}
nsz 0ef264
{int(*p)(FILE*restrict,char*restrict,int,size_t) = setvbuf;}
nsz 0ef264
{int(*p)(char*restrict,size_t,const char*restrict,...) = snprintf;}
nsz 0ef264
{int(*p)(char*restrict,const char*restrict,...) = sprintf;}
nsz 0ef264
{int(*p)(const char*restrict,const char*restrict,...) = sscanf;}
nsz 0ef264
{char*(*p)(const char*,const char*) = tempnam;}
nsz edcdab
{FILE*(*p)(void) = tmpfile;}
nsz 0ef264
{char*(*p)(char*) = tmpnam;}
nsz 0ef264
{int(*p)(int,FILE*) = ungetc;}
nsz f81126
}
nsz f81126
#include <wchar.h>
nsz f81126
static void g()
nsz f81126
{
nsz 0ef264
{wint_t(*p)(int) = btowc;}
nsz 0ef264
{wint_t(*p)(FILE*) = fgetwc;}
nsz 0ef264
{wchar_t*(*p)(wchar_t*restrict,int,FILE*restrict) = fgetws;}
nsz 0ef264
{wint_t(*p)(wchar_t,FILE*) = fputwc;}
nsz 0ef264
{int(*p)(const wchar_t*restrict,FILE*restrict) = fputws;}
nsz 0ef264
{int(*p)(FILE*,int) = fwide;}
nsz 0ef264
{int(*p)(FILE*restrict,const wchar_t*restrict,...) = fwprintf;}
nsz 0ef264
{int(*p)(FILE*restrict,const wchar_t*restrict,...) = fwscanf;}
nsz 0ef264
{wint_t(*p)(FILE*) = getwc;}
nsz 0ef264
{wint_t(*p)(wchar_t,FILE*) = putwc;}
nsz 0ef264
{int(*p)(wchar_t*restrict,size_t,const wchar_t*restrict,...) = swprintf;}
nsz 0ef264
{int(*p)(const wchar_t*restrict,const wchar_t*restrict,...) = swscanf;}
nsz 0ef264
{wint_t(*p)(wint_t,FILE*) = ungetwc;}
nsz 0ef264
{int(*p)(wint_t) = wctob;}
nsz 0ef264
{int(*p)(const wchar_t*restrict,...) = wprintf;}
nsz 0ef264
{int(*p)(const wchar_t*restrict,...) = wscanf;}
nsz f81126
}
nsz f81126
#include <stdarg.h>
nsz f81126
static void h()
nsz f81126
{
nsz 0ef264
{int(*p)(int,const char*restrict,va_list) = vdprintf;}
nsz 0ef264
{int(*p)(FILE*restrict,const char*restrict,va_list) = vfprintf;}
nsz 0ef264
{int(*p)(FILE*restrict,const char*restrict,va_list) = vfscanf;}
nsz 0ef264
{int(*p)(const char*restrict,va_list) = vprintf;}
nsz 0ef264
{int(*p)(const char*restrict,va_list) = vscanf;}
nsz 0ef264
{int(*p)(char*restrict,size_t,const char*restrict,va_list) = vsnprintf;}
nsz 0ef264
{int(*p)(char*restrict,const char*restrict,va_list) = vsprintf;}
nsz 0ef264
{int(*p)(const char*restrict,const char*restrict,va_list) = vsscanf;}
nsz f81126
nsz 0ef264
{int(*p)(FILE*restrict,const wchar_t*restrict,va_list) = vfwprintf;}
nsz 0ef264
{int(*p)(FILE*restrict,const wchar_t*restrict,va_list) = vfwscanf;}
nsz 0ef264
{int(*p)(wchar_t*restrict,size_t,const wchar_t*restrict,va_list) = vswprintf;}
nsz 0ef264
{int(*p)(const wchar_t*restrict,const wchar_t*restrict,va_list) = vswscanf;}
nsz 0ef264
{int(*p)(const wchar_t*restrict,va_list) = vwprintf;}
nsz 0ef264
{int(*p)(const wchar_t*restrict,va_list) = vwscanf;}
nsz f81126
}