This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AC_CHECK_DECLS(basename) (Was: Re: Ping: patches required for --enable-build-with-cxx)


On 02/17/2010 04:41 PM, Joern Rennecke wrote:
Quoting Ralf Wildenhues <Ralf.Wildenhues@gmx.de>:
sed alternation \| is not portable.

I've replaced it now with a pair of substitutions. I also fixed the ',' substitution to give yield on opening bracket for the next cast, and to apply for all commas.

+ $[]as_decl_type

What is this variable? It doesn't seem to be defined anywhere.

Oops, that's a remnant from a previous implementation approach - I originally intended of declaring a variable with the type of the argument. That might work for more cases than casting 0 to the desired type, but supporting multiple arguments would be much messier.

Maybe we can use this in AC_CHECK_DECLS instead of having a new separate macro. If there is a parenthesis in the name call the new version, if there is none, call the old one.


If it is fine, I can do the patch using Joern's work; thanks for it.

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]