From: Robert de Bath <robert$@mayday.cix.co.uk>
To: Manuel Novoa III <mjn3@codepoet.org>
Cc: Linux-8086 <linux-8086@vger.kernel.org>
Subject: Re: dev86-0.16.8 cpp bugs
Date: Sun, 11 Aug 2002 20:19:45 +0100 (BST) [thread overview]
Message-ID: <b75e4c9c4f037eaf@mayday.cix.co.uk> (raw)
In-Reply-To: <20020811164440.GA24265@codepoet.org>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 506 bytes --]
On Sun, 11 Aug 2002, Manuel Novoa III wrote:
> Hello Robert,
>
> Some bugs in 0.16.8's cpp I'm afraid. Try the following.
Okay, looks like I wasn't correctly ignoring nested #elif's.
The patch attached should fix that.
The type change for the if_stack allows it to work with any #if nesting
unless you make a nesting error (It will fail to detect some).
--
Rob. (Robert de Bath <robert$ @ debath.co.uk>)
<http://www.cix.co.uk/~mayday>
[-- Attachment #2: Type: TEXT/PLAIN, Size: 599 bytes --]
diff -Nurd linux86.old/cpp/cpp.c linux86/cpp/cpp.c
--- linux86.old/cpp/cpp.c Sun Aug 11 07:33:57 2002
+++ linux86/cpp/cpp.c Sun Aug 11 20:13:38 2002
@@ -83,7 +83,7 @@
static int if_false = 0;
static int if_has_else = 0;
static int if_hidden = 0;
-static int if_stack = 0;
+static unsigned int if_stack = 0;
struct arg_store {
char * name;
@@ -905,6 +905,13 @@
int type;
{
int ch = 0;
+ if(if_false && if_hidden)
+ {
+ if( type != 3 ) if_hidden++;
+ do_proc_tail();
+ return 0;
+ }
+
if( type == 3 )
{
if( if_count == 0 )
next prev parent reply other threads:[~2002-08-11 19:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-02 20:18 More dev86 changes (0.16.7) Robert de Bath
2002-08-02 20:24 ` Manuel Novoa III
2002-08-03 10:17 ` More dev86 changes (0.16.7) [About the optimiser] Harry Kalogirou
2002-08-03 11:01 ` Robert de Bath
2002-08-03 11:31 ` Robert de Bath
2002-08-03 12:24 ` Harry Kalogirou
2002-08-10 19:36 ` More dev86 changes (0.16.7) Manuel Novoa III
2002-08-10 20:28 ` Robert de Bath
2002-08-11 1:06 ` Manuel Novoa III
2002-08-11 16:44 ` dev86-0.16.8 cpp bugs Manuel Novoa III
2002-08-11 19:19 ` Robert de Bath [this message]
2002-08-11 20:01 ` Manuel Novoa III
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b75e4c9c4f037eaf@mayday.cix.co.uk \
--to=robert$@mayday.cix.co.uk \
--cc=linux-8086@vger.kernel.org \
--cc=mjn3@codepoet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox