diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-03 21:59:45 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-03 21:59:45 -0800 |
commit | a9313fc0c31884f07ae4d3e7d24dc03557ba2e13 (patch) | |
tree | 86ffca5c37ad2e3667f476c8f6c5769bca48ee0f /util.h | |
parent | dfba35aee8b01e04d3ee71a43dea478bb63d46cc (diff) |
Cleanup reader.cpp's usage of string_buffer, remove some other unused data structures
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 46 |
1 files changed, 0 insertions, 46 deletions
@@ -16,52 +16,6 @@ #include <unistd.h> /** - Typedef for a generic function pointer - */ -typedef void (*func_ptr_t)(); - -/** - A union of all types that can be stored in an array_list_t. This is - used to make sure that the pointer type can fit whatever we want to - insert. - */ -typedef union -{ - /** - long value - */ - long long_val; - /** - pointer value - */ - void *ptr_val; - /** - function pointer value - */ - func_ptr_t func_val; -} - anything_t; - -/** - Data structure for an automatically resizing dynamically allocated - priority queue. A priority queue allows quick retrieval of the - smallest element of a set (This implementation uses O(log n) time). - This implementation uses a heap for storing the queue. -*/ -typedef struct priority_queue -{ - /** Array contining the data */ - void **arr; - /** Number of elements*/ - int count; - /** Length of array */ - int size; - /** Comparison function */ - int (*compare)(void *e1, void *e2); -} -priority_queue_t; - -/** Buffer for concatenating arbitrary data. */ typedef struct buffer |