Make ellFree() a 1-argument macro, calls ellFree2() with free as freeFunc.

This commit is contained in:
Andrew Johnson
2009-08-28 18:34:38 +00:00
parent f17ac39f29
commit 534ca2c86e
5 changed files with 9 additions and 11 deletions
+2 -2
View File
@@ -161,7 +161,7 @@ MAIN(epicsEllTest)
testOk1(ellFind(&list2, ellNth(&list2, 10)) == 10);
testOk1(ellFind(&list1, ellNth(&list1, 11)) == 11);
ellFree(&list2, free);
ellFree(&list2);
testOk1(ellCount(&list2) == 0);
pick = (struct myItem *)ellFirst(&list1);
@@ -190,7 +190,7 @@ MAIN(epicsEllTest)
pitem = (struct myItem *)ellNStep(&pitem->node, -4);
testOk1(pitem->num == 7);
ellFree(&list1, free);
ellFree2(&list1, free);
testOk1(ellCount(&list1) == 0);
return testDone();