api: shorten function checks (and put each into a different scope)
[libc-test] / src / api / wordexp.c
index 5f89956..baf7e24 100644 (file)
@@ -22,6 +22,6 @@ C(WRDE_BADVAL)
 C(WRDE_CMDSUB)
 C(WRDE_NOSPACE)
 C(WRDE_SYNTAX)
-int(*p_wordexp)(const char*restrict,wordexp_t*restrict,int) = wordexp;
-void(*p_wordfree)(wordexp_t*) = wordfree;
+{int(*p)(const char*restrict,wordexp_t*restrict,int) = wordexp;}
+{void(*p)(wordexp_t*) = wordfree;}
 }