X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=dialogs.c;h=430f1793a96fc4f925cd72b37658c2b7572e53a9;hb=385f8b4e934bdc4e426a5c1c9e348119447c90e2;hp=f39199771fcfd1145501c5708a6ecb1e03a373da;hpb=980360ccfb8ca60f0fa8a846da6b461f0c48f9e0;p=xboard.git diff --git a/dialogs.c b/dialogs.c index f391997..430f179 100644 --- a/dialogs.c +++ b/dialogs.c @@ -66,6 +66,7 @@ extern char *getenv(); int values[MAX_OPTIONS]; ChessProgramState *currentCps; +char dataDir[MSG_SIZ] = DATADIR, manDir[MSG_SIZ] = MANDIR; //----------------------------Generic dialog -------------------------------------------- @@ -2296,7 +2297,7 @@ ErrorPopDown () if (errorExitStatus != -1) ExitEvent(errorExitStatus); } -static int +int ErrorOK (int n) { dialogError = errorUp = False; @@ -2496,7 +2497,7 @@ DisplayHelp (char *name) if(currentCps) { TidyProgramName(currentCps == &first ? appData.firstChessProgram : appData.secondChessProgram, "localhost", tidy); snprintf(buf, MSG_SIZ, "/usr/local/share/man/man6/%s.6", tidy); - } else snprintf(buf, MSG_SIZ, "%s/man6/xboard.6", MANDIR); + } else snprintf(buf, MSG_SIZ, "%s/man6/xboard.6", manDir); f = fopen(buf, "r"); if(!f && currentCps) { // engine manual could be in two places snprintf(buf, MSG_SIZ, "/usr/share/man/man6/%s.6", tidy);