about summary refs log tree commit diff
path: root/stdlib/tst-strtod.h
diff options
context:
space:
mode:
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-05-09 17:59:37 -0500
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-05-25 13:33:36 -0500
commit1ced34c00a0aa26dca5aab811a967c1e52c33fe9 (patch)
treec08873d06a2c935f555d7b03fb84674af813cc7d /stdlib/tst-strtod.h
parentb4d80349bb8b91fd64d6e860af5c0bd503b15f97 (diff)
downloadglibc-1ced34c00a0aa26dca5aab811a967c1e52c33fe9.tar.gz
glibc-1ced34c00a0aa26dca5aab811a967c1e52c33fe9.tar.xz
glibc-1ced34c00a0aa26dca5aab811a967c1e52c33fe9.zip
Refactor tst-strtod-round.c for type-generic-ness
Reduce much of the redundancy in this file, and attempt
to coral the type specific stuff to ease adding an new type.
Diffstat (limited to 'stdlib/tst-strtod.h')
-rw-r--r--stdlib/tst-strtod.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/tst-strtod.h b/stdlib/tst-strtod.h
index d53c1de95a..607cf393aa 100644
--- a/stdlib/tst-strtod.h
+++ b/stdlib/tst-strtod.h
@@ -22,10 +22,10 @@
 #define FSTRLENMAX 128
 
 /* Splat n variants of the same test for the various strtod functions.  */
-#define GEN_TEST_STRTOD_FOREACH(mfunc)		  \
-    mfunc (  f,       float, snprintf,  "", f, f) \
-    mfunc (  d,      double, snprintf,  "",  ,  ) \
-    mfunc ( ld, long double, snprintf, "L", L, l)
+#define GEN_TEST_STRTOD_FOREACH(mfunc, ...)			 \
+    mfunc (  f,       float, snprintf,  "", f, f, ##__VA_ARGS__) \
+    mfunc (  d,      double, snprintf,  "",  ,  , ##__VA_ARGS__) \
+    mfunc ( ld, long double, snprintf, "L", L, l, ##__VA_ARGS__)
 /* The arguments to the generated macros are:
    FSUF - Function suffix
    FTYPE - float type