function attributes on function pointers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi all,

is there a way to use function attributes on function pointers?

my program uses a function table for a plugin interface, which includes a 
function to allocate memory:

void* (*myAlloc)(Host * myHost, size_t size);

is it possible to use the malloc attribute for this to help the optimizer? i was 
trying something like:
void* __attribute__ ((malloc))(*myAlloc)(Host * myHost, size_t size);

... but the attribute will be ignored ...

thanks, tim



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux