[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Parsing bug

From: Dave Dodge
Subject: Re: [Tinycc-devel] Parsing bug
Date: Mon, 14 May 2007 04:40:20 -0400
User-agent: Mutt/1.5.12-2006-07-14

On Mon, May 14, 2007 at 01:48:58AM -0400, Rob Landley wrote:
> 1) The #include <gl\glaux.h> doesn't get parsed on Linux systems because the 
> #ifdef prevents everything until the #else from being looked at.

Not so sure about that.  Compiling this:

  #if 0
  #include <a:\qqq>

fails with "stray '\' in program".  From a quick glance at
preprocess_skip() where it calls handle_stray(), there's a comment
suggesting that this may be a known bug.

My guess is that it's treating all backslashes between the #if/#endif
pair as part of escape sequences, instead of handling C's special case
tokenization of header names.  I don't see any obvious code in there
checking for an #include context, for example.

                                                  -Dave Dodge

reply via email to

[Prev in Thread] Current Thread [Next in Thread]