IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 291


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

Fixed brackets.

Location:
trunk/archive/pslib/include
Files:
3 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
  • trunk/archive/pslib/include/psHash.h

    r257 r291  
    1616
    1717/// Allocate hash buckets in table.
    18 psHash *psHashAlloc(int nbucket)        ///< initial number of buckets
    19 ;
     18psHash *psHashAlloc(int nbucket         ///< initial number of buckets
     19    );
    2020
    2121/// Free hash buckets from table.
    2222void psHashFree(psHash *table,          ///< hash table to be freed
    23                 void (*itemFree)(void *item)) ///< how to free hashed data; or NULL
    24 ;
     23                void (*itemFree)(void *item) ///< how to free hashed data; or NULL
     24    );
    2525
    2626/// Insert entry into table.
     
    2828                   const char *key,     ///< key to use
    2929                   void *data,          ///< data to insert
    30                    void (*itemFree)(void *item)) ///< how to free hashed data; or NULL
    31 ;
     30                   void (*itemFree)(void *item) ///< how to free hashed data; or NULL
     31    );
    3232
    3333/// Lookup key in table.
    3434void *psHashLookup(psHash *table,       ///< table to lookup key in
    35                    const char *key)     ///< key to lookup
    36 ;
     35                   const char *key      ///< key to lookup
     36    );
    3737
    3838/// Remove key from table.
    3939void *psHashRemove(psHash *table,       ///< table to lookup key in
    40                    const char *key)     ///< key to lookup
    41 ;
     40                   const char *key      ///< key to lookup
     41    );
    4242
    4343/* \} */ // End of DataGroup Functions
  • trunk/archive/pslib/include/psMisc.h

    r266 r291  
    1515void psAbort(const char *name,          ///< Category of code that caused the abort
    1616             const char *fmt,           ///< Format
    17              ...)                       ///< Extra arguments to use format
    18 ;
     17             ...                        ///< Extra arguments to use format
     18             );
    1919
    2020/// Prints an error message and doesn't abort
    2121void psError(const char *name,          ///< Category of code that caused the abort
    2222             const char *fmt,           ///< Format
    23              ...)                       ///< Extra arguments to use format
    24 ;
     23             ...                        ///< Extra arguments to use format
     24    );
    2525
    2626/// Allocates and returns a copy of a string
    27 char *psStringCopy(const char *str)     ///< string to copy
    28 ;
     27char *psStringCopy(const char *str      ///< string to copy
     28    );
    2929
    3030/// Allocates nChar and returns a copy of the string or segment
    31 char *psStringNCopy(const char *str, int nChar) ///< string to copy
    32 ;
     31char *psStringNCopy(const char *str,    ///< string to copy
     32                    int nChar           //!< Number of characters (including \0 )
     33    );
    3334
    3435/* \} */ // End of SystemGroup Functions
Note: See TracChangeset for help on using the changeset viewer.