api: shorten function checks (and put each into a different scope)
[libc-test] / src / api / nl_types.c
index 922cb2b..079ee50 100644 (file)
@@ -7,7 +7,7 @@ T(nl_catd)
 T(nl_item)
 C(NL_SETD)
 C(NL_CAT_LOCALE)
-int(*p_catclose)(nl_catd) = catclose;
-char*(*p_catgets)(nl_catd,int,int,const char*) = catgets;
-nl_catd(*p_catopen)(const char*,int) = catopen;
+{int(*p)(nl_catd) = catclose;}
+{char*(*p)(nl_catd,int,int,const char*) = catgets;}
+{nl_catd(*p)(const char*,int) = catopen;}
 }