[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] [PATCH] Preprocessor: ignore everything after #error
From: |
Rob Landley |
Subject: |
Re: [Tinycc-devel] [PATCH] Preprocessor: ignore everything after #error or #warning |
Date: |
Wed, 26 Sep 2007 21:36:30 -0500 |
User-agent: |
KMail/1.9.6 |
On Wednesday 26 September 2007 2:52:27 am Dave Dodge wrote:
> On Wed, Sep 26, 2007 at 01:23:32AM -0500, Rob Landley wrote:
> > Hmmm... What about #warning as last line of the file with no newline at
> > the end of the line?
>
> FWIW, the grammar for most preprocessing directives explicitly
> includes a newline. gcc accepts a #warning with no newline but
> emits an additional warning about the missing newline.
I was more worried about next() falling off the end of the file and either
segfaulting or looping endlessly...
Rob
--
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.