api: shorten function checks (and put each into a different scope)
[libc-test] / src / api / fenv.c
index d489386..5790737 100644 (file)
@@ -17,15 +17,15 @@ C(FE_ALL_EXCEPT)
 //FE_TOWARDZERO
 //FE_UPWARD
 {const fenv_t *c = FE_DFL_ENV;}
-int(*p_feclearexcept)(int) = feclearexcept;
-int(*p_fegetenv)(fenv_t*) = fegetenv;
-int(*p_fegetexceptflag)(fexcept_t*,int) = fegetexceptflag;
-int(*p_fegetround)(void) = fegetround;
-int(*p_feholdexcept)(fenv_t*) = feholdexcept;
-int(*p_feraiseexcept)(int) = feraiseexcept;
-int(*p_fesetenv)(const fenv_t*) = fesetenv;
-int(*p_fesetexceptflag)(const fexcept_t*,int) = fesetexceptflag;
-int(*p_fesetround)(int) = fesetround;
-int(*p_fetestexcept)(int) = fetestexcept;
-int(*p_feupdateenv)(const fenv_t*) = feupdateenv;
+{int(*p)(int) = feclearexcept;}
+{int(*p)(fenv_t*) = fegetenv;}
+{int(*p)(fexcept_t*,int) = fegetexceptflag;}
+{int(*p)(void) = fegetround;}
+{int(*p)(fenv_t*) = feholdexcept;}
+{int(*p)(int) = feraiseexcept;}
+{int(*p)(const fenv_t*) = fesetenv;}
+{int(*p)(const fexcept_t*,int) = fesetexceptflag;}
+{int(*p)(int) = fesetround;}
+{int(*p)(int) = fetestexcept;}
+{int(*p)(const fenv_t*) = feupdateenv;}
 }