IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2004, 1:19:11 PM (22 years ago)
Author:
desonia
Message:

added psListSort function and fixed psListRemove to match the new SDRS (i,e.,
the function now returns a bool instead of a void*).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psList.h

    r1111 r1127  
    1010 *  @ingroup LinkedList
    1111 *
    12  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-06-28 20:36:37 $
     12 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-06-29 23:19:11 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1717
    1818#include <pthread.h>                   // we need a mutex to make this stuff thread safe.
     19#include <stdbool.h>                   // we use the bool type.
    1920
    2021#include "psCompare.h"
     
    9899/** Remove an item from a list.  If which parameter is PS_LIST_UNKNOWN,
    99100 *
    100  *  @return void*       The data item that was removed.  If NULL, no item was
    101  *                      removed.
     101 *  @return bool        TRUE if element is successfully removed, otherwise FALSE.
    102102 */
    103 void* psListRemove(
     103bool psListRemove(
    104104    psList* restrict list,
    105105    ///< list to remove element from
     
    182182);
    183183
    184 psList* psListSort(psList* list, psCompareFcn compare);
     184psList* psListSort(psList* list, psComparePtrFcn compare);
    185185
    186186/// @} End of DataGroup Functions
Note: See TracChangeset for help on using the changeset viewer.