Subject: Re: bin/36444: flex generates bad C++ code
To: None <gnats-bugs@NetBSD.org>
From: Michael van Elst <mlelstv@serpens.de>
List: netbsd-bugs
Date: 06/05/2007 17:17:46
On Tue, Jun 05, 2007 at 03:00:14PM +0000, Christos Zoulas wrote:
>  The problem should be fixed by changing:
>   	unsigned long size;

This can't be changed, but you can cast the value to yy_size_t
when passing it to yy_scan_bytes.

>  We could add a few more yy_scan_bytes() functions so that we have explicit
>  matches for unsigned long and long, but it is not worth the trouble. Passing
>  a long where an int is expected is not a good practice anyway.

What problem is this function overloading trying to solve?

-- 
                                Michael van Elst
Internet: mlelstv@serpens.de
                                "A potential Snark may lurk in every tree."