Skip to content

Commit

Permalink
Removed const qualifiers from SDL_CreateHashTable() parameter types
Browse files Browse the repository at this point in the history
  • Loading branch information
Sackzement authored and slouken committed Oct 2, 2024
1 parent bcbf4da commit 73a331b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 6 additions & 4 deletions src/SDL_hashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
10 changes: 5 additions & 5 deletions src/SDL_hashtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 73a331b

Please sign in to comment.