help-flex
[Top][All Lists]
Advanced

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

GACK!


From: Bruce Lilly
Subject: GACK!
Date: Thu, 05 Sep 2002 12:41:23 -0400

The info file for flex 2.5.18 has an error.

It states that function prototypes are provided for the generated
.c file if supported by the environment.  That used to be true, but
is no longer so -- only old-style non-prototyped declarations are
provided unless one goes through contortions to get normal ANSI
C89, C90, C95, or C99 prototypes.

Can this behavior please be reversed; I don't object to giving the
gcc folks a way to force old-style declarations, but let's not put
the burden on everybody else.

Or, provide prototypes unless __STDC__ is zero or undefined, which
is the normal, standard way to detect an ANSI environment.

If neither is possible, then at least please provide a %option so
that the .l file can specify that prototypes should be generated
(putting #define YY_NO_TRADITIONAL_FUNC_DEFS 1 in section 1 doesn't
work) [better still, reverse the sense and make prototypes the
default, and provide a %option for the gcc folks].

This is really, really bad.  In a project with 60 object files, it
is unreasonable to have to specify the extraordinarily verbose
-DYY_NO_TRADITIONAL_FUNC_DEFS for all compilations when it ought not
to be needed for any object files (i.e. the project in question is
not "bootstrapping gcc").  A separate compilation command in a
makefile for the flex object isn't possible with gmake, because
gmake overrides it with the recipe based on SUFFIXES.




reply via email to

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