X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=f430375a3c774242d3356de67cdd2b73bf255337;hb=21a44c336aa8cd16a38f3c682386528c8f112650;hp=6bc77ccce9fc3c3b8662c442bf53bacb0b0bd9b2;hpb=447740095b0491c84370083c0ee2bf281aa502bd;p=xboard.git diff --git a/xboard.c b/xboard.c index 6bc77cc..f430375 100644 --- a/xboard.c +++ b/xboard.c @@ -199,11 +199,11 @@ extern char *getenv(); #include "backendz.h" #include "moves.h" #include "xboard.h" +#include "xboard2.h" #include "childio.h" #include "xgamelist.h" #include "xhistory.h" #include "xevalgraph.h" -#include "xedittags.h" #include "menus.h" #include "board.h" #include "dialogs.h" @@ -322,6 +322,19 @@ WindowPlacement wpEngineOutput; WindowPlacement wpGameList; WindowPlacement wpTags; +#define INPUT_SOURCE_BUF_SIZE 8192 + +typedef struct { + CPKind kind; + int fd; + int lineByLine; + char *unused; + InputCallback func; + XtInputId xid; + char buf[INPUT_SOURCE_BUF_SIZE]; + VOIDSTAR closure; +} InputSource; + /* This magic number is the number of intermediate frames used in each half of the animation. For short moves it's reduced