Re: [Bug-gnulib] Re: fnmatch.c includes alloca.h conditionally?

Paul Eggert <[email protected]>
Newsgroups gmane.comp.sysutils.automake.bugs,gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs,gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
Derek Robert Price <[email protected]> writes:

> Actually, fnmatch.c still calls alloca() unconditionally, but it does
> look to me like the dependency reference in modules/argp can be removed.
> ...

>>Wouldn't it be simpler to change gl_FUNC_ALLOCA to always define
> HAVE_ALLOCA_H?
>
> This would work if you removed the #include <alloca.h> from
> alloca_.h.  In this case, I should think alloca_.h should #define
> HAVE_ALLOCA on platforms where it is deemed faster than malloc, such
> as when #ifdef _MSC_VER, as well.

Yes, that makes sense.

How about this idea: wait a day or two for Bruno to comment, and if he
doesn't then write up a patch?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.