diff --git a/src/api/dirent.c b/src/api/dirent.c index 9a2f40e..32f2bc4 100644 --- a/src/api/dirent.c +++ b/src/api/dirent.c @@ -19,8 +19,8 @@ F(char, d_name[0]) {int(*p)(const struct dirent**,const struct dirent**) = alphasort;} {int(*p)(DIR*) = closedir;} {int(*p)(DIR*) = dirfd;} -DIR*(*p)(int) = fdopendir; -DIR*(*p)(const char*) = opendir; +{DIR*(*p)(int) = fdopendir;} +{DIR*(*p)(const char*) = opendir;} {struct dirent*(*p)(DIR*) = readdir;} {int(*p)(DIR*restrict,struct dirent*restrict,struct dirent**restrict) = readdir_r;} {void(*p)(DIR*) = rewinddir;} diff --git a/src/api/ndbm.c b/src/api/ndbm.c index 0193840..f68a5e4 100644 --- a/src/api/ndbm.c +++ b/src/api/ndbm.c @@ -20,6 +20,6 @@ C(DBM_REPLACE) {datum(*p)(DBM*,datum) = dbm_fetch;} {datum(*p)(DBM*) = dbm_firstkey;} {datum(*p)(DBM*) = dbm_nextkey;} -DBM*(*p)(const char*,int,mode_t) = dbm_open; +{DBM*(*p)(const char*,int,mode_t) = dbm_open;} {int(*p)(DBM*,datum,datum,int) = dbm_store;} } diff --git a/src/api/search.c b/src/api/search.c index 014b96f..a482b6e 100644 --- a/src/api/search.c +++ b/src/api/search.c @@ -24,7 +24,7 @@ case leaf:; } {int(*p)(size_t) = hcreate;} {void(*p)(void) = hdestroy;} -ENTRY*(*p)(ENTRY,ACTION) = hsearch; +{ENTRY*(*p)(ENTRY,ACTION) = hsearch;} {void(*p)(void*,void*) = insque;} {void*(*p)(const void*,const void*,size_t*,size_t,int(*)(const void*,const void*)) = lfind;} {void*(*p)(const void*,void*,size_t*,size_t,int(*)(const void*,const void*)) = lsearch;} diff --git a/src/api/stdio.c b/src/api/stdio.c index 7c2a7e1..ac73961 100644 --- a/src/api/stdio.c +++ b/src/api/stdio.c @@ -31,7 +31,7 @@ C(EOF) {char*(*p)(char*) = ctermid;} {int(*p)(int,const char*restrict,...) = dprintf;} {int(*p)(FILE*) = fclose;} -FILE*(*p)(int,const char*) = fdopen; +{FILE*(*p)(int,const char*) = fdopen;} {int(*p)(FILE*) = feof;} {int(*p)(FILE*) = ferror;} {int(*p)(FILE*) = fflush;} @@ -40,13 +40,13 @@ FILE*(*p)(int,const char*) = fdopen; {char*(*p)(char*restrict,int,FILE*restrict) = fgets;} {int(*p)(FILE*) = fileno;} {void(*p)(FILE*) = flockfile;} -FILE*(*p)(void*restrict,size_t,const char*restrict) = fmemopen; -FILE*(*p)(const char*restrict,const char*restrict) = fopen; +{FILE*(*p)(void*restrict,size_t,const char*restrict) = fmemopen;} +{FILE*(*p)(const char*restrict,const char*restrict) = fopen;} {int(*p)(FILE*restrict,const char*restrict,...) = fprintf;} {int(*p)(int,FILE*) = fputc;} {int(*p)(const char*restrict,FILE*restrict) = fputs;} {size_t(*p)(void*restrict,size_t,size_t,FILE*restrict) = fread;} -FILE*(*p)(const char*restrict,const char*restrict,FILE*restrict) = freopen; +{FILE*(*p)(const char*restrict,const char*restrict,FILE*restrict) = freopen;} {int(*p)(FILE*restrict,const char*restrict,...) = fscanf;} {int(*p)(FILE*,long,int) = fseek;} {int(*p)(FILE*,off_t,int) = fseeko;} @@ -63,10 +63,10 @@ FILE*(*p)(const char*restrict,const char*restrict,FILE*restrict) = freopen; {ssize_t(*p)(char**restrict,size_t*restrict,int,FILE*restrict) = getdelim;} {ssize_t(*p)(char**restrict,size_t*restrict,FILE*restrict) = getline;} {char*(*p)(char*) = gets;} -FILE*(*p)(char**,size_t*) = open_memstream; +{FILE*(*p)(char**,size_t*) = open_memstream;} {int(*p)(FILE*) = pclose;} {void(*p)(const char*) = perror;} -FILE*(*p)(const char*,const char*) = popen; +{FILE*(*p)(const char*,const char*) = popen;} {int(*p)(const char*restrict,...) = printf;} {int(*p)(int,FILE*) = putc;} {int(*p)(int,FILE*) = putc_unlocked;} @@ -84,7 +84,7 @@ FILE*(*p)(const char*,const char*) = popen; {int(*p)(char*restrict,const char*restrict,...) = sprintf;} {int(*p)(const char*restrict,const char*restrict,...) = sscanf;} {char*(*p)(const char*,const char*) = tempnam;} -FILE*(*p)(void) = tmpfile; +{FILE*(*p)(void) = tmpfile;} {char*(*p)(char*) = tmpnam;} {int(*p)(int,FILE*) = ungetc;} } diff --git a/src/api/wchar.c b/src/api/wchar.c index cff6765..bbb6963 100644 --- a/src/api/wchar.c +++ b/src/api/wchar.c @@ -56,7 +56,7 @@ C(WEOF) {wchar_t*(*p)(wchar_t*,wchar_t,size_t) = wmemset;} #ifdef _POSIX_C_SOURCE {size_t(*p)(wchar_t*restrict,const char**restrict,size_t,size_t,mbstate_t*restrict) = mbsnrtowcs;} -FILE*(*p)(wchar_t**,size_t*) = open_wmemstream; +{FILE*(*p)(wchar_t**,size_t*) = open_wmemstream;} {wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict) = wcpcpy;} {wchar_t*(*p)(wchar_t*restrict,const wchar_t*restrict,size_t) = wcpncpy;} {int(*p)(const wchar_t*,const wchar_t*) = wcscasecmp;}