use void * instead of BYTE pointers

This commit is contained in:
Radim Kolar 2009-09-22 16:53:39 +02:00
parent a18032611e
commit ac199f985f

View File

@ -9,13 +9,13 @@
struct FifoCache struct FifoCache
{ {
unsigned int cachesize; /* max. number of entries */ unsigned int cachesize; /* max. number of entries */
BYTE *e_head; /* block of cache entries, every entry has entrysize bytes */ void *e_head; /* block of cache entries, every entry has entrysize bytes */
BYTE *e_next; /* new intem will be placed there */ void *e_next; /* new intem will be placed there */
const BYTE *e_stop; /* stop mark for entries, never write here! */ const void *e_stop; /* stop mark for entries, never write here! */
unsigned int entrysize; /* size of 1 entry in bytes */ unsigned int entrysize; /* size of 1 entry in bytes */
BYTE *k_head; /* block of keys starts there */ void *k_head; /* block of keys starts there */
BYTE *k_next; /* new item */ void *k_next; /* new item */
const BYTE *k_stop; /* stop mark for key entries */ const void *k_stop; /* stop mark for key entries */
unsigned int keysize; /* size of 1 key in bytes */ unsigned int keysize; /* size of 1 key in bytes */
void (*k_destroy_func) (void *key); /* key destoy function */ void (*k_destroy_func) (void *key); /* key destoy function */
void (*e_destroy_func) (void *key); /* element destoy function */ void (*e_destroy_func) (void *key); /* element destoy function */