IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1644


Ignore:
Timestamp:
Aug 27, 2004, 1:17:54 PM (22 years ago)
Author:
Paul Price
Message:

Fixed order of arguments to match those for psMetadata, and removed
horrible "which" and "where" and replaced with "iterator" and
"location", which are more descriptive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psList.h

    r1580 r1644  
    4242;
    4343
    44 /** Destructor */
    45 void psListFree(psList *list,           ///< list to destroy
    46                 void (*elemFree)(void *)) ///< destructor for data on list
    47 ;
    48 
    4944/**** List maintainence functions ****/
    5045
    5146/** Add to list */
    5247bool *psListAdd(psList *list,           ///< list to add to (may be NULL)
    53                 void *data,             ///< data item to add
    54                 int where)              ///< index, PS_LIST_HEAD, or PS_LIST_TAIL
     48                int location,           ///< index, PS_LIST_HEAD, or PS_LIST_TAIL
     49                void *data)             ///< data item to add
    5550;
    5651
    5752/** Remove from a list */
    5853bool *psListRemove(psList *list,        ///< list to remove element from
    59                    void *data,          ///< data item to remove
    60                    int which)           ///< index of item, or PS_LIST_UNKNOWN, PS_LIST_NEXT, PS_LIST_PREV
     54                   int location,        ///< index of item, or PS_LIST_UNKNOWN, PS_LIST_NEXT, PS_LIST_PREV
     55                   void *data)          ///< data item to remove
    6156;
    6257
    6358/** Retrieve from a list */
    6459void *psListGet(const psList *list,     ///< list to retrieve element from
    65                 int which)              ///< index of item, or PS_LIST_NEXT, PS_LIST_PREV, PS_LIST_UNKNOWN
     60                int location)           ///< index of item, or PS_LIST_NEXT, PS_LIST_PREV, PS_LIST_UNKNOWN
    6661;
    6762
     
    8176/** Set the iterator */
    8277void psListSetIterator(psList *list,    ///< list to retrieve element from
    83                        int where,       ///< index, PS_LIST_HEAD, or PS_LIST_TAIL
    84                        int which)       ///< the desired iterator
     78                       int iterator,    ///< the desired iterator
     79                       int location)    ///< index, PS_LIST_HEAD, or PS_LIST_TAIL
    8580;
    8681
    8782/** Get next element relative to iter */
    8883void *psListGetNext(psList *list,       ///< list to retrieve element from
    89                     int which)          ///< the desired iterator
     84                    int iterator)       ///< the desired iterator
    9085;
    9186
    9287/** Get prev element relative to iter */
    9388void *psListGetPrevious(psList *list,   ///< list to retrieve element from
    94                         int which)      ///< the desired iterator
     89                        int iterator)   ///< the desired iterator
    9590;
    9691
Note: See TracChangeset for help on using the changeset viewer.