src/terminal-chess.h

changeset 52
26707039d5a6
parent 51
84f2e380a434
child 55
54ea19938d57
equal deleted inserted replaced
51:84f2e380a434 52:26707039d5a6
34 #include "chess/rules.h" 34 #include "chess/rules.h"
35 35
36 #ifndef TERMINAL_CHESS_H 36 #ifndef TERMINAL_CHESS_H
37 #define TERMINAL_CHESS_H 37 #define TERMINAL_CHESS_H
38 38
39 #define PROGRAM_VERSION "0.9-r52"
40
39 #ifdef __cplusplus 41 #ifdef __cplusplus
40 extern "C" { 42 extern "C" {
41 #endif 43 #endif
42 44
43 typedef struct { 45 typedef struct {
44 GameInfo gameinfo; 46 GameInfo gameinfo;
45 char* port; 47 char* port;
46 char* serverhost; /* NULL, if we are about to start a server */ 48 char* serverhost; /* NULL, if we are about to start a server */
47 char* continuepgn; 49 char* continuepgn;
48 char* analyzepgn; 50 char* analyzepgn;
49 _Bool printhelp;
50 _Bool singlemachine; 51 _Bool singlemachine;
51 } Settings; 52 } Settings;
52 53
53 #define is_server(settings) !((settings)->serverhost) 54 #define is_server(settings) !((settings)->serverhost)
54 55

mercurial