From 62b9ce815b3e4ad57092f321c293895aeea4bf45 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 7 Feb 2012 23:04:49 +0100 Subject: [PATCH] Increase max nr of engines to 2000 Move the #define for MAXENGINES also to common.h, so that both the Load and Tourney dialog use the same maximum. --- backend.c | 1 - common.h | 2 ++ xoptions.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend.c b/backend.c index e669f50..e6f48a4 100644 --- a/backend.c +++ b/backend.c @@ -9762,7 +9762,6 @@ WriteTourneyFile (char *results, FILE *f) return f; } -#define MAXENGINES 1000 char *command[MAXENGINES], *mnemonic[MAXENGINES]; void diff --git a/common.h b/common.h index d7cfab1..ab3503d 100644 --- a/common.h +++ b/common.h @@ -756,6 +756,8 @@ extern WindowPlacement wpMoveHistory; extern WindowPlacement wpGameList; extern WindowPlacement wpTags; +#define MAXENGINES 2000 + // [HGM] chat #define MAX_CHAT 5 extern int chatCount; diff --git a/xoptions.c b/xoptions.c index 688f3f3..8b9b644 100644 --- a/xoptions.c +++ b/xoptions.c @@ -311,7 +311,7 @@ char *engineName, *engineDir, *engineChoice, *engineLine, *nickName, *params, *t Boolean isUCI, hasBook, storeVariant, v1, addToList, useNick; extern Option installOptions[], matchOptions[]; char *engineNr[] = { N_("First Engine"), N_("Second Engine"), NULL }; -char *engineList[100] = {" "}, *engineMnemonic[100] = {""}; +char *engineList[MAXENGINES] = {" "}, *engineMnemonic[MAXENGINES] = {""}; int AppendText (Option *opt, char *s) -- 1.7.0.4