* hb_list_init ********************************************************************** * Allocates an empty list ready for HB_LIST_DEFAULT_SIZE items *********************************************************************/
| 4100 | * Allocates an empty list ready for HB_LIST_DEFAULT_SIZE items |
| 4101 | *********************************************************************/ |
| 4102 | hb_list_t * hb_list_init() |
| 4103 | { |
| 4104 | hb_list_t * l; |
| 4105 | |
| 4106 | l = calloc( sizeof( hb_list_t ), 1 ); |
| 4107 | l->items = calloc( HB_LIST_DEFAULT_SIZE * sizeof( void * ), 1 ); |
| 4108 | l->items_alloc = HB_LIST_DEFAULT_SIZE; |
| 4109 | |
| 4110 | return l; |
| 4111 | } |
| 4112 | |
| 4113 | /********************************************************************** |
| 4114 | * hb_list_count |
no outgoing calls