X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=common.h;h=0668750e74e7668df146bd73de3def97be41cace;hb=7b4dacf6fe9f8c10b6eb4d6070869a3d933dbeb5;hp=e93d0e1b0f1a4d12a748230c88d1e490cfcc3a9b;hpb=a49a080da8e49d3d814116eb96205dbf77d6536b;p=xboard.git diff --git a/common.h b/common.h index e93d0e1..0668750 100644 --- a/common.h +++ b/common.h @@ -1,9 +1,10 @@ /* * common.h -- Common definitions for X and Windows NT versions of XBoard - * $Id: common.h,v 2.1 2003/10/27 19:21:00 mann Exp $ * - * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. - * Enhancements Copyright 1992-95 Free Software Foundation, Inc. + * Copyright 1991 by Digital Equipment Corporation, Maynard, + * Massachusetts. Enhancements Copyright + * 1992-2001,2002,2003,2004,2005,2006,2007,2008,2009 Free Software + * Foundation, Inc. * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: @@ -27,24 +28,25 @@ * SOFTWARE. * ------------------------------------------------------------------------ * - * The following terms apply to the enhanced version of XBoard distributed - * by the Free Software Foundation: + * The following terms apply to the enhanced version of XBoard + * distributed by the Free Software Foundation: * ------------------------------------------------------------------------ - * This program is free software; you can redistribute it and/or modify + * + * GNU XBoard is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * GNU XBoard is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * ------------------------------------------------------------------------ - */ + * along with this program. If not, see http://www.gnu.org/licenses/. * + * + *------------------------------------------------------------------------ + ** See the file ChangeLog for a revision history. */ #ifndef _COMMON #define _COMMON @@ -145,6 +147,7 @@ int pclose(FILE *); #define FIRST_HOST "localhost" #define SECOND_HOST "localhost" #define TELNET_PROGRAM "telnet" +#define DEF_BITMAP_DIR "/usr/share/games/xboard/bitmaps.xchess" /* AP: shouldn't be hardcoded directory, but better than nothing at the moment */ #define MATCH_MODE "False" #define INIT_STRING "new\nrandom\n" #define WHITE_STRING "white\ngo\n" @@ -287,6 +290,7 @@ typedef enum { VariantJanus, VariantSuper, VariantGreat, + VariantTwilight, VariantUnknown /* Catchall for other unknown variants */ } VariantClass; @@ -328,6 +332,7 @@ typedef enum { "janus",\ "super",\ "great",\ + "twilight",\ "unknown" \ } @@ -561,7 +566,10 @@ typedef struct { char *zippyVariants; int zippyMaxGames; int zippyReplayTimeout; /*seconds*/ + int zippyShortGame; /* [HGM] aborter */ #endif + Boolean lowTimeWarning; /* [HGM] low time */ + char *lowTimeWarningColor; char *serverMovesName; Boolean suppressLoadMoves; @@ -587,6 +595,8 @@ typedef struct { Boolean noGUI; /* [HGM] fast: suppress all display updates */ char *firstOptions; /* [HGM] options */ char *secondOptions; + char *fenOverride1; + char *fenOverride2; } AppData, *AppDataPtr; /* [AS] PGN tags (for showing in the game list) */