Re: [Valgrind-users] [exim-dev] [Bug 1050] [PATCH] Portability fixes for memcheck.h.

2011-01-12 Thread Bart Van Assche
On Wed, Jan 12, 2011 at 8:53 AM, David Woodhouse dw...@infradead.org wrote: On Tue, 2011-01-11 at 15:12 +, Tony Finch wrote: Exim doesn't compile with Sun or HP CC since Valgrind support was added. Although valgrind.h protects against usage on unsupported platforms, memcheck.h uses the

Re: [Valgrind-users] [exim-dev] [Bug 1050] [PATCH] Portability fixes for memcheck.h.

2011-01-12 Thread Bart Van Assche
On Wed, Jan 12, 2011 at 3:28 PM, Tony Finch d...@dotat.at wrote: On Wed, 12 Jan 2011, David Woodhouse wrote: Can we turn the ({ ... }) extension into a static inline function? Or is that not sufficiently portable either? No, nested functions are not allowed in standard C. It looks to me