From mboxrd@z Thu Jan 1 00:00:00 1970 From: mjn3@codepoet.org (Manuel Novoa III) Subject: dev86-0.16.8 cpp bugs Date: Sun, 11 Aug 2002 10:44:40 -0600 Sender: linux-8086-owner@vger.kernel.org Message-ID: <20020811164440.GA24265@codepoet.org> References: <20020810193601.GA11440@codepoet.org> <37f23ff36ac7348a@mayday.cix.co.uk> <20020811010614.GA13756@codepoet.org> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20020811010614.GA13756@codepoet.org> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Robert de Bath Cc: Linux-8086 Hello Robert, Some bugs in 0.16.8's cpp I'm afraid. Try the following. Manuel #define X 2 #define Y 4 #undef TEST #if 1 #ifdef TEST #warning in test #if X >= 4 #warning x #elif Y >= 4 #warning y #else #warning other #endif #else /* TEST */ #warning not in test so should be no other warnings #endif #else #ifndef TEST #warning not in test so should be no other warnings #else #warning in test #if X >= 4 #warning x #elif Y >= 4 #warning y #else #warning other #endif #endif #endif