X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=list.h;h=d3668964f3eed27182c403c937d5d03310690eb8;hb=1087eb7b2d8447adf9a7deb549d4004a87b46b10;hp=9004602fa05d7f02ae5781a54c89de2ed2541775;hpb=64f72f31685ea1dff12b19b22cfaf7a53ccc079f;p=polyglot.git diff --git a/list.h b/list.h index 9004602..d366896 100644 --- a/list.h +++ b/list.h @@ -10,24 +10,26 @@ #include "move.h" #include "util.h" -// constants +// defines -const int ListSize = 256; +#define ListSize 256 // types -struct list_t { +typedef struct { sint16 size; move_t move[ListSize]; sint16 value[ListSize]; -}; +} list_t; // functions extern bool list_is_ok (const list_t * list); extern void list_clear (list_t * list); -extern void list_add (list_t * list, int move, int value = 0); +extern void list_add (list_t * list, int move); +extern void list_add_ex (list_t * list, int move, int value); + extern void list_remove (list_t * list, int index); extern bool list_is_empty (const list_t * list);