help-flex
[Top][All Lists]
Advanced

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

Re: 2.5.31 assumes snprintf()


From: Hans-Bernhard Broeker
Subject: Re: 2.5.31 assumes snprintf()
Date: Mon, 7 Jul 2003 16:07:10 +0200 (MET DST)

On Mon, 7 Jul 2003, W. L. Estes wrote:

> On Monday, 07 July 2003,15:55 +0200, Hans-Bernhard Broeker wrote:
>
> > > yacc source? not flex source? I'm confused.
> >
> > No need to be. parse.y is the "yacc source" file which parse.c is compiled
> > from, see?
>
> Yes. but how is that a problem with flex?

By the problem being located inside one of flex's source files, which in
turn happens to be written in yacc: parse.y.

The actual problem is that snprintf() is not available on the least common
denominator of platforms.  Old-ish Unix versions don't have it, and most
old-ish C toolchains for MS-DOS don't either.  It's used by flex-2.5.31 in
two places: parse.y and regex.c.  I added a ./configure test for snprintf,
and #ifdef's around snprintf usage in those two source files to get around
that.

-- 
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.





reply via email to

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