From 5a8e35c51c6837aaa61714693b37d4d6b199da84 Mon Sep 17 00:00:00 2001 From: Jason Barron Date: Wed, 15 Jul 2009 15:43:40 +0200 Subject: Fix configure.exe when more than 256(!) else-ifs are required. The introduction of the additional 'continuousElse' statement was flawed because once the variable is toggled to true by the first else block, it remains true for the second block even if the option was found so these options will eventually hit the "Unknown option" error in the final else case. The workaround is not to re-use the variable for each block, but instead use an array of bools. One element of the array per 'continuousElse' check. This should probably be refactored soon-ish :) --- tools/configure/configureapp.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index 2041715..a50019f 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -439,7 +439,7 @@ void Configure::parseCmdLine() } for( ; i