char *buf, int count, int error));
void read_from_ics P((InputSourceRef isr, VOIDSTAR closure,
char *buf, int count, int error));
-void ics_printf P((char *format, ...));
void SendToICS P((char *s));
void SendToICSDelayed P((char *s, long msdelay));
void SendMoveToICS P((ChessMove moveType, int fromX, int fromY, int toX, int toY, char promoChar));
Boolean ParseFEN P((Board board, int *blackPlaysFirst, char *fen));
void ApplyMove P((int fromX, int fromY, int toX, int toY, int promoChar, Board board));
void PackMove P((int fromX, int fromY, int toX, int toY, ChessSquare promoPiece));
+void ics_printf P((char *format, ...));
char *StrStr P((char *string, char *match));
char *StrCaseStr P((char *string, char *match));
void CopyRectangle P((AnimNr anr, int srcBuf, int destBuf, int srcX, int srcY, int width, int height, int destX, int destY));
void SetDragPiece P((AnimNr anr, ChessSquare piece));
void DragPieceMove P((int x, int y));
+void DrawBorder P((int x, int y, int type));
+void FlashDelay P((int flash_delay));
+void SwitchWindow P((void));
extern int damage[2][BOARD_RANKS][BOARD_FILES];
int GenericPopUp P((Option *option, char *title, DialogClass dlgNr, DialogClass parent, int modal, int topLevel));
int GenericReadout P((Option *currentOption, int selected));
int PopDown P((DialogClass n));
+void MarkMenu P((char *item, int dlgNr));
int AppendText P((Option *opt, char *s));
void SetColor P((char *colorName, Option *box));
void ColorChanged P((Widget w, XtPointer data, XEvent *event, Boolean *b));
Boolean pathFlag, char *mode, char **name, FILE **fp));
void InitDrawingParams P(()); // in xboard.c
-void ErrorPopUp P((char *title, char *text, int modal));
int ShiftKeys P((void));
void SetClockIcon P((int color));
void DelayedLoad P((void));
void DisplayTimerLabel P((Option *opt, char *color, long timer, int highlight));
+void SetWindowTitle P((char *text, char *title, char *icon));
+void SetupDropMenu P((void));
Option *BoardPopUp P((int squareSize, int lineGap, void *clockFontThingy));
int SetCurrentComboSelection P((Option *opt));
void ICSInputBoxPopUp P((void));
void LoadOptionsPopUp P((DialogClass parent));
void GameListOptionsPopUp P((DialogClass parent));
+void RefreshColor P((int source, int n));
+void SendString P((char *p));
// in ngamelist.c
int GameListClicks P((int direction));
void SetFilter P((void));
-int SaveGameListAsText P((FILE *f));
void PromotionPopUp P((void));
void DragPieceBegin P((int x, int y, Boolean instantly));
void DragPieceEnd P((int x, int y));
+void DragPieceMove P((int x, int y));
void LeftClick P((ClickType c, int x, int y));
int RightClick P((ClickType c, int x, int y, int *col, int *row));
void EvalGraphPopUp P((void));
Boolean EvalGraphIsUp P((void));
int EvalGraphDialogExists P((void));
+void SlavePopUp P((void));
/* these are in xhistory.c */
Boolean MoveHistoryIsUp P((void));
extern Menu menuBar[];
+void ErrorPopUp P((char *title, char *text, int modal));
void AppendEnginesToMenu P((char *list));
void LoadGameProc P((void));
void LoadNextGameProc P((void));
void BoardOptionsProc P((void));
void LoadOptionsProc P((void));
void SaveOptionsProc P((void));
+void SaveSettings P((char *));
void EditBookProc P((void));
void InitMenuMarkers P((void));
void ShowGameListProc P((void)); // in ngamelist.c
void EngineOutputProc P((void));
void EvalGraphProc P((void));
-void CreateMainMenus P((Menu *mb));
+int SaveGameListAsText P((FILE *f));
+
void AppendMenuItem P((char *text, int n));
-void CreateMenuButton P((char *name, Menu *mb));
MenuItem *MenuNameToItem P((char *menuName));
void SetMenuEnables P((Enables *enab));
void EnableButtonBar P((int state));
char *ModeToWidgetName P((GameMode mode));
void CreateAnimVars P((void));
+void CopySomething P((char *s));
extern char *gameCopyFilename, *gamePasteFilename;
# define N_(s) s
#endif
+static int get_term_width P(());
+
static char *cnames[9] = { "black", "red", "green", "yellow", "blue",
"magenta", "cyan", "white" };
TextColors textColors[(int)NColorClasses];
}
#include <sys/ioctl.h>
-int
+static int
get_term_width ()
{
int fd, default_width;
extern char *oldICSInteractionTitle;
char *ExpandPathName P((char *path));
-int MySearchPath(char *installDir, char *name, char *fullname);
-int MyGetFullPathName(char *name, char *fullname);
+int MySearchPath P((char *installDir, char *name, char *fullname));
+int MyGetFullPathName P((char *name, char *fullname));
+void PlaySoundForColor P((ColorClass cc));
void ICSInitScript P((void));
void SelectMove P((Widget w, XEvent * event, String * params, Cardinal * nParams));
void update_ics_width P(());
-int get_term_width P(());
int CopyMemoProc P(());
-void SetupDropMenu P((void));
/*
* XBoard depends on Xt R4 or higher
return xBoardWindow != 0;
}
-void SwitchWindow()
+void
+SwitchWindow ()
{
extern Option dualOptions[];
static Window dual;
void NewTagsPopup P((char *text, char *msg));
int AppendText P((Option *opt, char *s));
void NewCommentPopup P((char *title, char *text, int index));
-void MarkMenu P((char *item, int dlgNr));
-void GetWidgetText P((Option *opt, char **buf));
-void ClearTextWidget P((Option *opt));
void CatchDeleteWindow(Widget w, String procname);
void GenericPopDown P((Widget w, XEvent *event, String *prms, Cardinal *nprms));
void InitDrawingSizes P((int i, int j));