From be06b37b4238697e9a4157f38f3b7dfe97333d29 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Wed, 18 Feb 2015 10:47:42 -0500 Subject: [PATCH] dbPutLinkTest: don't use variadic macros MSVC doesn't seem to support them correctly --- src/ioc/db/test/dbPutLinkTest.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ioc/db/test/dbPutLinkTest.c b/src/ioc/db/test/dbPutLinkTest.c index d333d8c14..5fcab16b8 100644 --- a/src/ioc/db/test/dbPutLinkTest.c +++ b/src/ioc/db/test/dbPutLinkTest.c @@ -42,8 +42,6 @@ void dbTestIoc_registerRecordDeviceDriver(struct dbBase *); #define TEST_CONSTANT(SET, EXPECT) {SET, {CONSTANT, EXPECT}} #define TEST_PV_LINK(SET, PV, MOD) {SET, {PV_LINK, PV, MOD}} -#define TEST_HW_(...) __VA_ARGS__ -#define TEST_HW(SET, TYPE, ID, PARM, ...) {SET, {TYPE, PARM, 0, ID, {TEST_HW_(__VA_ARGS__)}}} static const struct testParseDataT { const char * const str; @@ -58,10 +56,10 @@ static const struct testParseDataT { TEST_PV_LINK(" hellox MSI", "hellox", pvlOptMSI), TEST_PV_LINK(" world MSICP", "world", pvlOptMSI|pvlOptCP), - TEST_HW("#C14 S145 @testing", VME_IO, "CS", "testing", 14, 145), - TEST_HW("#B11 C12 N13 A14 F15 @cparam", CAMAC_IO, "BCNAF", "cparam", 11, 12, 13, 14, 15), - TEST_HW(" #B111 C112 N113 @cparam", CAMAC_IO, "BCN", "cparam", 111, 112, 113), - TEST_HW(" @hello world ", INST_IO, "", "hello world"), + {"#C14 S145 @testing", {VME_IO, "testing", 0, "CS", {14, 145}}}, + {"#B11 C12 N13 A14 F15 @cparam", {CAMAC_IO, "cparam", 0, "BCNAF", {11, 12, 13, 14, 15}}}, + {" #B111 C112 N113 @cparam", {CAMAC_IO, "cparam", 0, "BCN", {111, 112, 113}}}, + {" @hello world ", {INST_IO, "hello world", 0, "", /*{}*/}}, {NULL} };