api: shorten function checks (and put each into a different scope)
[libc-test] / src / api / sys_time.c
index 7aa0893..54fc0e7 100644 (file)
@@ -13,17 +13,17 @@ F(suseconds_t,tv_usec)
 }
 C(FD_SETSIZE)
 #ifndef FD_CLR
-void(*p_FD_CLR)(int,fd_set*) = FD_CLR;
+{void(*p)(int,fd_set*) = FD_CLR;}
 #endif
 #ifndef FD_ISSET
-int(*p_FD_ISSET)(int,fd_set*) = FD_ISSET;
+{int(*p)(int,fd_set*) = FD_ISSET;}
 #endif
 #ifndef FD_SET
-void(*p_FD_SET)(int,fd_set*) = FD_SET;
+{void(*p)(int,fd_set*) = FD_SET;}
 #endif
 #ifndef FD_ZERO
-void(*p_FD_ZERO)(fd_set*) = FD_ZERO;
+{void(*p)(fd_set*) = FD_ZERO;}
 #endif
-int(*p_select)(int,fd_set*restrict,fd_set*restrict,fd_set*restrict,struct timeval*restrict) = select;
-int(*p_utimes)(const char*,const struct timeval[]) = utimes;
+{int(*p)(int,fd_set*restrict,fd_set*restrict,fd_set*restrict,struct timeval*restrict) = select;}
+{int(*p)(const char*,const struct timeval[]) = utimes;}
 }