IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 170


Ignore:
Timestamp:
Mar 9, 2004, 2:55:27 PM (22 years ago)
Author:
rhl
Message:

1/ Rename New/Del to Alloc/Free
2/ Added psDlistSetIterator/psDlistGetNext/psDlistGetPrev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/src/Utils/psDlist.h

    r141 r170  
    2929 * Constructors and Destructors
    3030 */
    31 psDlist *psDlistNew(void *data);        // initial data item; may be NULL
     31psDlist *psDlistAlloc(void *data);      // initial data item; may be NULL
    3232
    33 void psDlistDel(psDlist *list,          // list to destroy
    34                 void (*elemDel)(void *)); // destructor for data on list
     33void psDlistFree(psDlist *list,         // list to destroy
     34                void (*elemFree)(void *)); // destructor for data on list
    3535
    3636/*
     
    5050                                        // or PS_DLIST_PREV
    5151/*
     52 * convenience functions to use psDlistGet as an iterator
     53 */
     54void psDlistSetIterator(psDlist *list, int where, int which);
     55void *psDlistGetNext(psDlist *list, int which);
     56void *psDlistGetPrev(psDlist *list, int which);
     57/*
    5258 * Conversions to/from arrays
    5359 */
Note: See TracChangeset for help on using the changeset viewer.