mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-17 15:21:43 +00:00
Removed const qualifiers from SDL_CreateHashTable() parameter types
This commit is contained in:

committed by
Sam Lantinga

parent
d287feaddf
commit
f4cea5e019
@@ -55,10 +55,12 @@ struct SDL_HashTable
|
||||
bool stackable;
|
||||
};
|
||||
|
||||
SDL_HashTable *SDL_CreateHashTable(void *data, const Uint32 num_buckets, const SDL_HashTable_HashFn hashfn,
|
||||
const SDL_HashTable_KeyMatchFn keymatchfn,
|
||||
const SDL_HashTable_NukeFn nukefn,
|
||||
const bool stackable)
|
||||
SDL_HashTable *SDL_CreateHashTable(void *data,
|
||||
Uint32 num_buckets,
|
||||
SDL_HashTable_HashFn hashfn,
|
||||
SDL_HashTable_KeyMatchFn keymatchfn,
|
||||
SDL_HashTable_NukeFn nukefn,
|
||||
bool stackable)
|
||||
{
|
||||
SDL_HashTable *table;
|
||||
|
||||
|
@@ -30,11 +30,11 @@ typedef bool (*SDL_HashTable_KeyMatchFn)(const void *a, const void *b, void *dat
|
||||
typedef void (*SDL_HashTable_NukeFn)(const void *key, const void *value, void *data);
|
||||
|
||||
extern SDL_HashTable *SDL_CreateHashTable(void *data,
|
||||
const Uint32 num_buckets,
|
||||
const SDL_HashTable_HashFn hashfn,
|
||||
const SDL_HashTable_KeyMatchFn keymatchfn,
|
||||
const SDL_HashTable_NukeFn nukefn,
|
||||
const bool stackable);
|
||||
Uint32 num_buckets,
|
||||
SDL_HashTable_HashFn hashfn,
|
||||
SDL_HashTable_KeyMatchFn keymatchfn,
|
||||
SDL_HashTable_NukeFn nukefn,
|
||||
bool stackable);
|
||||
|
||||
extern void SDL_EmptyHashTable(SDL_HashTable *table);
|
||||
extern void SDL_DestroyHashTable(SDL_HashTable *table);
|
||||
|
Reference in New Issue
Block a user