X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.h;h=6899eef07293156382afcc1c8f7eee07ec4528ae;hb=d954a9a2cfff2fe954f09abb3392a26a20d1952e;hp=26a61f629f7f3da881c60fb5add62ca84a62f3c6;hpb=891e6ae6b61cb387401b79ad75ae5b2c1d58da5e;p=xboard.git diff --git a/backend.h b/backend.h index 26a61f6..6899eef 100644 --- a/backend.h +++ b/backend.h @@ -101,6 +101,7 @@ extern FILE *debugFP; extern char* programVersion; extern ProcRef firstProgramPR, secondProgramPR; extern Board boards[]; +extern char marker[BOARD_RANKS][BOARD_FILES]; char *CmailMsg P((void)); /* Tord: Added the useFEN960 parameter in PositionToFEN() below */ @@ -120,6 +121,8 @@ int PieceForSquare P((int x, int y)); int OKToStartUserMove P((int x, int y)); void Reset P((int redraw, int init)); void ResetGameEvent P((void)); +Boolean HasPattern P(( const char * text, const char * pattern )); +Boolean SearchPattern P(( const char * text, const char * pattern )); int LoadGame P((FILE *f, int n, char *title, int useList)); int LoadGameFromFile P((char *filename, int n, char *title, int useList)); int CmailLoadGame P((FILE *f, int n, char *title, int useList)); @@ -205,6 +208,10 @@ double u64ToDouble P((u64 value)); void OutputChatMessage P((int partner, char *mess)); void EditPositionDone P((Boolean fakeRights)); Boolean GetArgValue P((char *name)); +Boolean LoadPV P((int x, int y)); +Boolean LoadMultiPV P((int x, int y, char *buf, int index, int *start, int *end)); +void UnLoadPV P(()); +void MovePV P((int x, int y, int h)); char *StrStr P((char *string, char *match)); char *StrCaseStr P((char *string, char *match)); @@ -326,7 +333,7 @@ typedef struct _CPS { int hasOwnBookUCI; /* [AS] 0=use GUI or Polyglot book, 1=has own book */ /* [HGM] time odds */ - int timeOdds; /* factor through which we divide time for this engine */ + float timeOdds; /* factor through which we divide time for this engine */ int debug; /* [HGM] ignore engine debug lines starting with '#' */ int maxNrOfSessions; /* [HGM] secondary TC: max args in 'level' command */ int accumulateTC; /* [HGM] secondary TC: how to handle extra sessions */ @@ -345,6 +352,7 @@ typedef struct _CPS { char *optionSettings; void *programLogo; /* [HGM] logo: bitmap of the logo */ char *fenOverride; /* [HGM} FRC: force FEN casling & ep fields by hand */ + char userError; /* [HGM] crash: flag to suppress fatal-error messages*/ } ChessProgramState; extern ChessProgramState first, second; @@ -370,5 +378,6 @@ extern ChessProgramStats_Move pvInfoList[MAX_MOVES]; extern int shuffleOpenings; extern ChessProgramStats programStats; extern int opponentKibitzes; // used by wengineo.c +extern int errorExitStatus; #endif /* _BACKEND */