add memory pool for positions
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <stdint.h>
|
||||
#include "chessdefs.h"
|
||||
#include "board.h"
|
||||
#include "pool.h"
|
||||
#include "list.h"
|
||||
|
||||
typedef struct pos_s {
|
||||
@@ -40,8 +41,10 @@ void bitboard_print(bitboard_t bb);
|
||||
void bitboard_print2(bitboard_t bb1, bitboard_t bb2);
|
||||
void pos_pieces_print(pos_t *pos);
|
||||
void pos_print(pos_t *pos);
|
||||
pos_t *pos_init(pos_t *pos);
|
||||
pos_t *pos_clear(pos_t *pos);
|
||||
pos_t *pos_startpos(pos_t *pos);
|
||||
pos_t *pos_create();
|
||||
pool_t *pos_pool_init();
|
||||
pos_t *pos_get();
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user