From 7f74ea8081081250ea825b369486b3805b66a08b Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 25 Sep 2000 02:00:55 +0000 Subject: [PATCH] Small bugfix, and more updates to typedef'ed functions. --- WINGs/WINGs.h | 5 ++--- WINGs/wbrowser.c | 4 ++-- WINGs/wlist.c | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/WINGs/WINGs.h b/WINGs/WINGs.h index 341da70a..c06ea71a 100644 --- a/WINGs/WINGs.h +++ b/WINGs/WINGs.h @@ -1059,8 +1059,7 @@ WMListItem *WMInsertListItem(WMList *lPtr, int row, char *text); void WMSortListItems(WMList *lPtr); -void WMSortListItemsWithComparer(WMList *lPtr, - int (f)(const void*, const void*)); +void WMSortListItemsWithComparer(WMList *lPtr, WMCompareDataProc *func); int WMFindRowOfListItemWithTitle(WMList *lPtr, char *title); @@ -1123,7 +1122,7 @@ WMListItem *WMInsertBrowserItem(WMBrowser *bPtr, int column, int row, char *text void WMSortBrowserColumn(WMBrowser *bPtr, int column); void WMSortBrowserColumnWithComparer(WMBrowser *bPtr, int column, - int (f)(const void*, const void*)); + WMCompareDataProc *func); /* Don't free the returned string. */ char* WMSetBrowserPath(WMBrowser *bPtr, char *path); diff --git a/WINGs/wbrowser.c b/WINGs/wbrowser.c index 3fc6f601..c463495d 100644 --- a/WINGs/wbrowser.c +++ b/WINGs/wbrowser.c @@ -442,9 +442,9 @@ WMSortBrowserColumn(WMBrowser *bPtr, int column) void WMSortBrowserColumnWithComparer(WMBrowser *bPtr, int column, - int (f)(const void*, const void*)) + WMCompareDataProc *func) { - WMSortListItemsWithComparer(bPtr->columns[column], f); + WMSortListItemsWithComparer(bPtr->columns[column], func); } diff --git a/WINGs/wlist.c b/WINGs/wlist.c index 04f854bd..551a9c41 100644 --- a/WINGs/wlist.c +++ b/WINGs/wlist.c @@ -152,9 +152,9 @@ WMSortListItems(WMList *lPtr) void -WMSortListItemsWithComparer(WMList *lPtr, int (f)(const void*, const void*)) +WMSortListItemsWithComparer(WMList *lPtr, WMCompareDataProc *func) { - WMSortArray(lPtr->items, f); + WMSortArray(lPtr->items, func); paintList(lPtr); }