diff options
author | axel <axel@liljencrantz.se> | 2006-01-24 09:33:47 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-01-24 09:33:47 +1000 |
commit | 8df21a1cb18d5f78d7d3c2ca98d0708b195c65da (patch) | |
tree | 4654be8a2d49437cae3cf0cc7fc049ac9e764999 /util.h | |
parent | ba177b48d53f7c7e8d5c556415e8864b686724f2 (diff) |
Minor edits, mostly tweaks of the API documentation
darcs-hash:20060123233347-ac50b-44ebb96ba202c062739ba3d183519e28a95511b2.gz
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 49 |
1 files changed, 34 insertions, 15 deletions
@@ -165,19 +165,29 @@ float minf( float a, float b ); */ void q_init( dyn_queue_t *q ); -/** Destroy the queue */ +/** + Destroy the queue +*/ void q_destroy( dyn_queue_t *q ); -/** Insert element into queue */ +/** + Insert element into queue +*/ int q_put( dyn_queue_t *q, void *e ); -/** Remove and return next element from queue */ +/** + Remove and return next element from queue +*/ void *q_get( dyn_queue_t *q); -/** Return next element from queue without removing it */ +/** + Return next element from queue without removing it +*/ void *q_peek( dyn_queue_t *q); -/** Returns 1 if the queue is empty, 0 otherwise */ +/** + Returns 1 if the queue is empty, 0 otherwise +*/ int q_empty( dyn_queue_t *q ); /** @@ -251,15 +261,15 @@ void hash_get_keys( hash_table_t *h, void hash_get_data( hash_table_t *h, array_list_t *arr ); -/** - Call the function func for each key/data pair in the table +/** + Call the function func for each key/data pair in the table */ void hash_foreach( hash_table_t *h, void (*func)( const void *, const void * ) ); -/** - Same as hash_foreach, but the function func takes an additional - argument, which is provided by the caller in the variable aux +/** + Same as hash_foreach, but the function func takes an additional + argument, which is provided by the caller in the variable aux */ void hash_foreach2( hash_table_t *h, void (*func)( const void *, const void *, @@ -273,7 +283,8 @@ int hash_str_func( const void *data ); /** Hash comparison function suitable for character strings */ -int hash_str_cmp( const void *a, const void *b ); +int hash_str_cmp( const void *a, + const void *b ); /** Hash function suitable for wide character strings. @@ -283,7 +294,8 @@ int hash_wcs_func( const void *data ); /** Hash comparison function suitable for wide character strings */ -int hash_wcs_cmp( const void *a, const void *b ); +int hash_wcs_cmp( const void *a, + const void *b ); /** Initialize the priority queue @@ -296,12 +308,12 @@ void pq_init( priority_queue_t *q, /** Add element to the queue - \param q the queue - \param e the new element + \param q the queue + \param e the new element */ int pq_put( priority_queue_t *q, - void *e ); + void *e ); /** Removes and returns the last entry in the priority queue */ @@ -445,6 +457,10 @@ void al_foreach2( array_list_t *l, void (*func)(const void *, void *), void *aux int wcsfilecmp( const wchar_t *a, const wchar_t *b ); +/* + String buffer functions +*/ + /** Initialize the specified string_buffer */ @@ -503,6 +519,9 @@ void sb_destroy( string_buffer_t * ); */ void sb_clear( string_buffer_t * ); +/* + Buffer functions +*/ /** Initialize the specified buffer_t |