X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Flists.h;h=10a2a192735a14e0e34914882c7e7b7b2cac6e84;hb=95d449ad4de79dd32b1705b8a4d3550f1e9081e3;hp=3249fcaa46b303e053b1c7af1800add9d57ec985;hpb=bdb4a2f05e2cd4fb99d6759aeccca6041bc0a0a3;p=u-boot diff --git a/include/lists.h b/include/lists.h index 3249fcaa46..10a2a19273 100644 --- a/include/lists.h +++ b/include/lists.h @@ -1,9 +1,9 @@ #ifndef _LISTS_H_ #define _LISTS_H_ -#define LIST_START -1 /* Handy Constants that substitute for item positions */ -#define LIST_END 0 /* END_OF_LIST means one past current length of list when */ - /* inserting. Otherwise it refers the last item in the list. */ +#define LIST_START -1 /* Handy Constants that substitute for item positions */ +#define LIST_END 0 /* END_OF_LIST means one past current length of list when */ + /* inserting. Otherwise it refers the last item in the list. */ typedef struct { @@ -39,7 +39,7 @@ void *ListGetPtrToItem(list_t list, int itemPosition); void ListRemoveItem(list_t list, void *itemDestination, int itemPosition); void ListRemoveItems(list_t list, void *itemsDestination, int firstItemPosition, int numItemsToRemove); -#if 0 +#if 0 /* rarely ever used; kept here for reference just in case ... */ void ListDisposePtrList(list_t list); void ListGetItem(list_t list, void *itemDestination, int itemPosition); void ListReplaceItem(list_t list, void *ptrToItem, int itemPosition); @@ -72,6 +72,6 @@ int ListGetItemSize(list_t list); int GetIntListFromParmInfo(va_list parmInfo, int numIntegers, list_t *integerList); int ListInsertAfterItem(list_t list, void *ptrToItem, void *ptrToItemToInsertAfter, CompareFunction compareFunction); int ListInsertBeforeItem(list_t list, void *ptrToItem, void *ptrToItemToInsertBefore, CompareFunction compareFunction); -#endif 0 +#endif /* 0 */ #endif /* _LISTS_H_ */