Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-02-23 09:47:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-23 11:20:20 +0300
commit6ab634ccc477fb704fce45663f170e500d5694b8 (patch)
tree53df61cccb53baa0c230352dc7ee9c97cd607428 /source/blender/blenlib/intern/BLI_ghash.c
parent9d78b7edb98e769f6148d87b23709e28c5416ed0 (diff)
Cleanup: use specific names for global variables
hash & hashsizes are generic names, be more specific & define the generic names locally. Quiet undeclared variable warnings.
Diffstat (limited to 'source/blender/blenlib/intern/BLI_ghash.c')
-rw-r--r--source/blender/blenlib/intern/BLI_ghash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c
index 298c9ca4d39..fc432c8c8b7 100644
--- a/source/blender/blenlib/intern/BLI_ghash.c
+++ b/source/blender/blenlib/intern/BLI_ghash.c
@@ -54,12 +54,14 @@
*
* \note Also used by: `BLI_edgehash` & `BLI_smallhash`.
*/
-const uint hashsizes[] = {
+extern const uint BLI_ghash_hash_sizes[]; /* Quiet warning, this is only used by smallhash.c */
+const uint BLI_ghash_hash_sizes[] = {
5, 11, 17, 37, 67, 131, 257, 521, 1031, 2053, 4099, 8209,
16411, 32771, 65537, 131101, 262147, 524309, 1048583, 2097169,
4194319, 8388617, 16777259, 33554467, 67108879, 134217757,
268435459,
};
+#define hashsizes BLI_ghash_hash_sizes
#ifdef GHASH_USE_MODULO_BUCKETS
# define GHASH_MAX_SIZE 27