2 #define NPIECES 1000 /* FIXME: how many, really? */
3 #define NSQUARES 1000 /* FIXME: how many, really? */
4 #define NTYPES 100 /* FIXME: how many, really? */
7 #define ASSIGN(X, Y) if(X) free(X); X = strdup(Y)
11 typedef void (*DelayedEventCallback
)(void);
12 typedef int (*FileProc
)(FILE *f
, int n
, char *title
);
14 typedef enum { Press
, Release
} ClickType
;
16 typedef enum { CheckBox
, ComboBox
, TextBox
, Button
, Spin
, ResetButton
, SaveButton
, ListBox
, Graph
, PopUp
,
17 FileName
, PathName
, Slider
, Message
, Fractional
, Label
, Icon
,
18 BoxBegin
, BoxEnd
, BarBegin
, BarEnd
, DropDown
, Break
, EndMark
, Skip
} Control
;
20 typedef struct _opt
{ // [HGM] options: descriptor of UCI-style option
21 int value
; // current setting, starts as default
22 int min
; // Also used for flags
24 void *handle
; // for use by front end
25 void *target
; // for use by front end
26 char *textValue
; // points to beginning of text value in name field
27 char **choice
; // points to array of combo choices in cps->combo
29 char *name
; // holds both option name and text value (in allocated memory)
42 long sec
; /* Assuming this is >= 32 bits */
43 int ms
; /* Assuming this is >= 16 bits */
46 extern TimeMark programStartTime
;