59 extern void vector_add(pVector pvec,
void* data);
60 extern void*
vector_get(pVector pvec,
int idx);
63 extern void vector_sort(pVector pvec,
int (*cmp)(
const void*,
const void*) );
64 extern void*
vector_get_by_cmp( pVector pvec,
void* data,
size_t (*cmp)(
const void*,
const void*) ) ;
74 extern void stack_push(pStack pstack,
void* data);
82 extern void print_error(
char* file,
char*
function,
int line,
char* message, ... );
83 extern int __cmp_int(
const void* a,
const void* b);
void vector_remove_by_data(pVector pvec, void *data)
Definition: utils.c:245
void vector_free(pVector pvec, freefunc func)
Definition: utils.c:170
pStack stack_new()
Definition: utils.c:316
pLinkedListItem tail
Definition: utils.h:53
struct tagVector * pVector
Definition: utils.h:48
pLinkedListItem cur
Definition: utils.h:54
void print_error(char *file, char *function, int line, char *message,...)
Definition: utils.c:21
void(* freefunc)(void *)
Definition: utils.h:8
pLinkedListItem prev
Definition: utils.h:38
ArrayList * pArrayList
Definition: utils.h:19
void vector_add(pVector pvec, void *data)
Definition: utils.c:186
void stack_push(pStack pstack, void *data)
Definition: utils.c:326
void arraylist_sort(pArrayList pal, int(*compar)(const void *, const void *))
Definition: utils.c:81
void * data
Definition: utils.h:37
void vector_sort(pVector pvec, int(*cmp)(const void *, const void *))
Definition: utils.c:231
void * stack_pop(pStack pstack)
Definition: utils.c:342
void arraylist_clear(pArrayList pal)
Definition: utils.c:69
struct tagLinkedListItem * pLinkedListItem
Definition: utils.h:34
void * vector_next(pVector pvec)
Definition: utils.c:305
pVector pStack
Definition: utils.h:70
void stack_free(pStack pstack)
Definition: utils.c:321
pLinkedListItem linkedlistitem_new(void *data)
Definition: utils.c:123
pLinkedListItem next
Definition: utils.h:39
void linkedlistitem_free(pLinkedListItem pitem)
Definition: utils.c:132
void * vector_get(pVector pvec, int idx)
Definition: utils.c:202
void ** array
Definition: utils.h:14
void * arraylist_get(pArrayList pal, int idx)
Definition: utils.c:86
pArrayList arraylist_add(pArrayList pal, void *data)
Definition: utils.c:52
int size
Definition: utils.h:51
void * vector_get_by_cmp(pVector pvec, void *data, size_t(*cmp)(const void *, const void *))
Definition: utils.c:215
void arraylist_shuffle(pArrayList pal)
Definition: utils.c:110
int __cmp_double(const void *a, const void *b)
Definition: utils.c:14
struct tagLinkedListItem LinkedListItem
int remain
Definition: utils.h:16
int stack_has_items(pStack pstack)
Definition: utils.c:360
void arraylist_free(pArrayList pal, freefunc datafree)
Definition: utils.c:92
pArrayList vector_to_arraylist(pVector pvec)
Definition: utils.c:285
void vector_rewind(pVector pvec)
Definition: utils.c:300
int __cmp_int(const void *a, const void *b)
Definition: utils.c:9
pVector vector_new()
Definition: utils.c:161
Vector Stack
Definition: utils.h:69
void vector_dereference_by_data(pVector pvec, void *data)
Definition: utils.c:265
pArrayList arraylist_new(int step)
Definition: utils.c:38
pLinkedListItem head
Definition: utils.h:52
void arraylist_trim(pArrayList pal)
Definition: utils.c:75
int size
Definition: utils.h:15
int step
Definition: utils.h:17