IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 23, 2004, 4:48:25 PM (22 years ago)
Author:
Paul Price
Message:

Fixed brackets.

File:
1 edited

Legend:

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

    r257 r291  
    3737
    3838/** Constructor */
    39 psDlist *psDlistAlloc(void *data)       //!< initial data item; may be NULL
    40 ;
     39psDlist *psDlistAlloc(void *data        //!< initial data item; may be NULL
     40                      );
    4141
    4242/** Destructor */
    4343void psDlistFree(psDlist *list,         //!< list to destroy
    44                 void (*elemFree)(void *)) //!< destructor for data on list
    45 ;
     44                void (*elemFree)(void *) //!< destructor for data on list
     45                 );
    4646
    4747/**** List maintainence functions ****/
     
    5050psDlist *psDlistAdd(psDlist *list,      //!< list to add to (may be NULL)
    5151                    void *data,         //!< data item to add
    52                     int where)          //!< index, PS_DLIST_HEAD, or PS_DLIST_TAIL
    53 ;
     52                    int where           //!< index, PS_DLIST_HEAD, or PS_DLIST_TAIL
     53                    );
    5454
    5555/** Append to a list */
    5656psDlist *psDlistAppend(psDlist *list,   //!< list to append to (may be NULL)
    57                        void *data)      //!< data item to add
    58 ;
     57                       void *data       //!< data item to add
     58                       );
    5959
    6060/** Remove from a list */
    6161void *psDlistRemove(psDlist *list,      //!< list to remove element from
    6262                    void *data,         //!< data item to remove
    63                     int which)          //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
    64 ;                                       //!< PS_DLIST_PREV
    65 
     63                    int which           //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
     64                                        //!< PS_DLIST_PREV
     65                    );
    6666/** Retrieve from a list */
    6767void *psDlistGet(const psDlist *list,   //!< list to retrieve element from
    68                  int which)             //!< index of item, or PS_DLIST_NEXT, or PS_DLIST_PREV
    69 ;
     68                 int which              //!< index of item, or PS_DLIST_NEXT, or PS_DLIST_PREV
     69                 );
    7070
    7171/**** convenience functions to use psDlistGet as an iterator ******/
     
    7474void psDlistSetIterator(psDlist *list,  //!< list to retrieve element from
    7575                        int where,      //!< index, PS_DLIST_HEAD, or PS_DLIST_TAIL
    76                         int which)      //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
    77 ;                                       //!< PS_DLIST_PREV
     76                        int which       //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
     77                                        //!< PS_DLIST_PREV
     78                        );
    7879
    7980/** Get next element */
    8081void *psDlistGetNext(psDlist *list,     //!< list to retrieve element from
    81                      int which)         //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
    82 ;                                       //!< PS_DLIST_PREV
     82                     int which          //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
     83                                        //!< PS_DLIST_PREV
     84                     );
    8385
    8486/** Get previous element */
    8587void *psDlistGetPrev(psDlist *list,     //!< list to retrieve element from
    86                      int which)         //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
    87 ;                                       //!< PS_DLIST_PREV
     88                     int which          //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or
     89                                        //!< PS_DLIST_PREV
     90                     );
    8891
    8992/** Convert doubly-linked list to an array */
    90 psVoidPtrArray *psDlistToArray(psDlist *dlist) //!< List to convert
    91 ;
     93psVoidPtrArray *psDlistToArray(psDlist *dlist //!< List to convert
     94                               );
    9295
    9396/** Convert array to a doubly-linked list */
    94 psDlist *psArrayToDlist(psVoidPtrArray *arr) //!< Array to convert
    95 ;
     97psDlist *psArrayToDlist(psVoidPtrArray *arr //!< Array to convert
     98                        );
    9699
    97100/* \} */ // End of DataGroup Functions
Note: See TracChangeset for help on using the changeset viewer.