X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=line.h;h=7582d9aa477ffe43a8a7e0fd99ab518e5873f116;hp=b41eed8bb3696ee27f6365cff4867f03c180cc0e;hb=HEAD;hpb=64f72f31685ea1dff12b19b22cfaf7a53ccc079f diff --git a/line.h b/line.h index b41eed8..7582d9a 100644 --- a/line.h +++ b/line.h @@ -1,32 +1,32 @@ - -// line.h - -#ifndef LINE_H -#define LINE_H - -// includes - -#include "board.h" -#include "move.h" -#include "util.h" - -// constants - -const int LineSize = 256; - -// functions - -extern bool line_is_ok (const move_t line[]); - -extern void line_clear (move_t line[]); -extern void line_copy (move_t dst[], const move_t src[]); - -extern bool line_from_can (move_t line[], const board_t * board, const char string[], int size); - -extern bool line_to_can (const move_t line[], const board_t * board, char string[], int size); -extern bool line_to_san (const move_t line[], const board_t * board, char string[], int size); - -#endif // !defined LINE_H - -// end of line.h - + +// line.h + +#ifndef LINE_H +#define LINE_H + +// includes + +#include "board.h" +#include "move.h" +#include "util.h" + +// constants + +#define LineSize 256 + +// functions + +extern bool line_is_ok (const move_t line[]); + +extern void line_clear (move_t line[]); +extern void line_copy (move_t dst[], const move_t src[]); + +extern bool line_from_can (move_t line[], const board_t * board, const char string[], int size); + +extern bool line_to_can (const move_t line[], const board_t * board, char string[], int size); +extern bool line_to_san (const move_t line[], const board_t * board, char string[], int size); + +#endif // !defined LINE_H + +// end of line.h +