[#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: possible defect in array.c

From: Sam Roberts <sroberts@...>
Date: 2006-04-27 05:11:49 UTC
List: ruby-core #7788
Quoting nobu@ruby-lang.org, on Thu, Apr 27, 2006 at 11:55:17AM +0900:
> Hi,
> 
> 2006/4/27, Sam Roberts <sroberts@uniserve.com>:
> > Are you sure? It appears to support non-standard extensions in both C99
> > and C89 dialects. I'm not complaining, the extensions are useful, but
> > just because gcc compiled it doesn't mean its standard C, of any
> > particular dialect.
> 
> Well, you're correct it has its own extensions not only C99 and C89
> standards, and you need -pedaintic-errors option to let gcc be strict
> with them.  But it doesn't croak if -std=c99 is also given, and I
> thought it is the default in gcc4, IIRC.

I think you are right about that.

> I meant that change about the based standards.

Yes, I see your point, the particular thing he was doing is standard
now, not a gnu extension.

I think gcc allowed it well before 1999 though! I tend to stick to the
older standard, porting from C99 to C89 would be awful, and there are
still many older compilers around for embedded system. It appears to
me that ruby src doesn't assume a C99 compiler currently, I hope it
will continue to build with C89.

Cheers,
Sam


In This Thread