Follow-up Comment #14, patch #7017 (project grep):
I'm aware that typeof is non-ISO (but it is supported by at least Metrowerks
as well as GCC), hence my test in configure.ac. I propose to be happy to fail
on those systems that support dlopen but don't have a compiler with typeof.
However, another reason was that I couldn't think of another way of doing it
without writing all the types out again.
So, I tried your suggestion, and I get:
search.c:71: error: lvalue required as left operand of assignment
search.c:72: error: lvalue required as left operand of assignment
search.c:73: error: lvalue required as left operand of assignment
search.c:74: error: lvalue required as left operand of assignment
I confess I do not understand this error, I thought your idea would work
(though unfortunately it was not susceptible to a macro, as mine is).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?7017>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/