Updated all files to GPL version 3.
[xboard.git] / xboard.c
index 1f17046..9bfdc94 100644 (file)
--- a/xboard.c
+++ b/xboard.c
@@ -2,8 +2,10 @@
  * xboard.c -- X front end for XBoard\r
  * $Id: xboard.c,v 2.2 2003/11/06 07:22:14 mann Exp $\r
  *\r
- * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts.\r
- * Enhancements Copyright 1992-2001 Free Software Foundation, Inc.\r
+ * Copyright 1991 by Digital Equipment Corporation, Maynard,\r
+ * Massachusetts.  Enhancements Copyright\r
+ * 1992-2001,2002,2003,2004,2005,2006,2007,2008,2009 Free Software\r
+ * Foundation, Inc.\r
  *\r
  * The following terms apply to Digital Equipment Corporation's copyright\r
  * interest in XBoard:\r
  * SOFTWARE.\r
  * ------------------------------------------------------------------------\r
  *\r
- * The following terms apply to the enhanced version of XBoard distributed\r
- * by the Free Software Foundation:\r
+ * The following terms apply to the enhanced version of XBoard\r
+ * distributed by the Free Software Foundation:\r
  * ------------------------------------------------------------------------\r
- * This program is free software; you can redistribute it and/or modify\r
+ *\r
+ * GNU XBoard is free software: you can redistribute it and/or modify\r
  * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
+ * the Free Software Foundation, either version 3 of the License, or (at\r
+ * your option) any later version.\r
  *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- * GNU General Public License for more details.\r
+ * GNU XBoard is distributed in the hope that it will be useful, but\r
+ * WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
+ * General Public License for more details.\r
  *\r
  * You should have received a copy of the GNU General Public License\r
- * along with this program; if not, write to the Free Software\r
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * ------------------------------------------------------------------------\r
+ * along with this program. If not, see http://www.gnu.org/licenses/.  *\r
  *\r
- * See the file ChangeLog for a revision history.\r
- */\r
+ *------------------------------------------------------------------------\r
+ ** See the file ChangeLog for a revision history.  */\r
 \r
 #include "config.h"\r
 \r
@@ -1309,6 +1310,18 @@ XtResource clientResources[] = {
     { "niceEngines", "niceEngines", XtRInt,\r
        sizeof(int), XtOffset(AppDataPtr, niceEngines),\r
        XtRImmediate, (XtPointer) 0},\r
+    { "nameOfDebugFile", "nameOfDebugFile", XtRString,\r
+       sizeof(String), XtOffset(AppDataPtr, nameOfDebugFile),\r
+       XtRImmediate, (XtPointer) "xboard.debug"},\r
+    { "noGUI", "noGUI", XtRBoolean,\r
+       sizeof(Boolean), XtOffset(AppDataPtr, noGUI),\r
+       XtRImmediate, (XtPointer) 0},\r
+    { "firstOptions", "firstOptions", XtRString,\r
+        sizeof(String), XtOffset(AppDataPtr, firstOptions),\r
+       XtRImmediate, (XtPointer) "" },\r
+    { "secondOptions", "secondOptions", XtRString,\r
+        sizeof(String), XtOffset(AppDataPtr, secondOptions),\r
+       XtRImmediate, (XtPointer) "" },\r
 \r
     // [HGM] Winboard_x UCI options\r
     { "firstIsUCI", "firstIsUCI", XtRBoolean,\r
@@ -1347,12 +1360,6 @@ XtResource clientResources[] = {
     { "delayAfterQuit", "delayAfterQuit", XtRInt,\r
        sizeof(int), XtOffset(AppDataPtr, delayAfterQuit),\r
        XtRImmediate, (XtPointer) 0},\r
-    { "nameOfDebugFile", "nameOfDebugFile", XtRString,\r
-       sizeof(String), XtOffset(AppDataPtr, nameOfDebugFile),\r
-       XtRImmediate, (XtPointer) "xboard.debug"},\r
-    { "noGUI", "noGUI", XtRBoolean,\r
-       sizeof(Boolean), XtOffset(AppDataPtr, noGUI),\r
-       XtRImmediate, (XtPointer) 0},\r
 };\r
 \r
 XrmOptionDescRec shellOptions[] = {\r
@@ -1658,6 +1665,8 @@ XrmOptionDescRec shellOptions[] = {
     { "-secondHasOwnBookUCI", "secondHasOwnBookUCI", XrmoptionSepArg, NULL },\r
     { "-fNoOwnBookUCI", "firstHasOwnBookUCI", XrmoptionNoArg, "False" },\r
     { "-sNoOwnBookUCI", "secondHasOwnBookUCI", XrmoptionNoArg, "False" },\r
+    { "-firstXBook", "firstHasOwnBookUCI", XrmoptionNoArg, "False" },\r
+    { "-secondXBook", "secondHasOwnBookUCI", XrmoptionNoArg, "False" },\r
     { "-polyglotDir", "polyglotDir", XrmoptionSepArg, NULL },\r
     { "-usePolyglotBook", "usePolyglotBook", XrmoptionSepArg, NULL },\r
     { "-polyglotBook", "polyglotBook", XrmoptionSepArg, NULL },\r
@@ -1707,6 +1716,8 @@ XrmOptionDescRec shellOptions[] = {
     { "-delayAfterQuit", "delayAfterQuit", XrmoptionSepArg, NULL }, \r
     { "-nameOfDebugFile", "nameOfDebugFile", XrmoptionSepArg, NULL }, \r
     { "-noGUI", "noGUI", XrmoptionNoArg, "True" }, \r
+    { "-firstOptions", "firstOptions", XrmoptionSepArg, NULL }, \r
+    { "-secondOptions", "secondOptions", XrmoptionSepArg, NULL }, \r
 };\r
 \r
 \r
@@ -2268,7 +2279,6 @@ main(argc, argv)
 #ifdef ENABLE_NLS\r
     XtSetLanguageProc(NULL, NULL, NULL);\r
     bindtextdomain(PRODUCT, LOCALEDIR);\r
-    bind_textdomain_codeset(PRODUCT, "UTF-8");\r
     textdomain(PRODUCT);\r
 #endif\r
 \r