[#7708] Bug in libsnmp-ruby1.8 — Hadmut Danisch <hadmut@...>

Hi,

8 messages 2006/04/11
[#7709] Re: Bug in libsnmp-ruby1.8 — Eric Hodel <drbrain@...7.net> 2006/04/11

On Apr 11, 2006, at 6:23 AM, Hadmut Danisch wrote:

[#7770] Re: possible defect in array.c — "Brown, Warren" <warrenbrown@...>

> rb_range_beg_len (in range.c) does set beg and len.

13 messages 2006/04/26
[#7771] Re: possible defect in array.c — "Pat Eyler" <rubypate@...> 2006/04/26

On 4/26/06, Brown, Warren <warrenbrown@aquire.com> wrote:

Re: [PATCH] parse.y: literal strings for tokens

From: Robin Stocker <robin@...>
Date: 2006-04-04 15:22:27 UTC
List: ruby-core #7675
ville.mattila@stonesoft.com wrote:
 >> From: nobu@ruby-lang.org
>> yacc runs before C compiler, including preprocessor.

Yes, that's the problem.

> Ok, how about if we run parse.y through C preprocessor before yacc?

I don't know about that one, I imagine it could create some strange 
problems because there are already a lot of preprocessor defines and 
tests in parse.y which normally just get copied into the resulting c file.

How about doing something like this in the Makefile, before feeding the 
file to non-bison yaccs:

   sed '/^%token/ s/"[^"]*"//'

Of course parse.y would have to be modified to declare just one token 
with the %token declaration, not a whole lot.

Thoughts?

   Robin

In This Thread