diff options
Diffstat (limited to 'src/mesa/program/prog_hash_table.c')
-rw-r--r-- | src/mesa/program/prog_hash_table.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/program/prog_hash_table.c b/src/mesa/program/prog_hash_table.c index 5592b6f..f8a7107 100644 --- a/src/mesa/program/prog_hash_table.c +++ b/src/mesa/program/prog_hash_table.c @@ -228,6 +228,11 @@ hash_table_string_hash(const void *key) return hash; } +bool hash_table_string_compare(const void *a, const void *b) +{ + return strcmp(a, b) == 0; +} + unsigned hash_table_pointer_hash(const void *key) @@ -236,8 +241,8 @@ hash_table_pointer_hash(const void *key) } -int +bool hash_table_pointer_compare(const void *key1, const void *key2) { - return key1 == key2 ? 0 : 1; + return key1 == key2; } |