On Wed, 2011-01-12 at 14:28 +0000, Tony Finch 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.

Nested? I meant

static inline VALGRIND_MAKE_MEM_NOACCESS(void *addr, int *len)
{
  unsigned long res;
  VALGRIND_DO_CLIENT_REQUEST(_res, 0 /* default return */,
                             VG_USERREQ__MAKE_MEM_NOACCESS,
                             addr, len, 0, 0, 0);
  return res;
}

Where's the nesting?

-- 
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to