misc.c: init_all()

This commit is contained in:
2024-05-15 18:34:50 +02:00
parent 022daf0a89
commit 86f8184c56
5 changed files with 14 additions and 15 deletions

View File

@@ -178,4 +178,6 @@ double clock_elapsed_sec(mclock_t *clock);
void rand_init(u64 seed);
u64 rand64(void);
void init_all(void);
#endif /* _CHESSDEFS_H */

View File

@@ -21,7 +21,7 @@
#include "hash.h"
void init_all()
void init_all(void)
{
/* for printf() numeric thousands separator */
setlocale(LC_NUMERIC, "");
@@ -37,6 +37,6 @@ void init_all()
/* zobrist tables & default tt hashtable */
zobrist_init();
hash_create(HASH_DEFAULT);
hash_create(HASH_SIZE_DEFAULT);
}