Re: typedef char *temp __attribute__ ((cleanup(free));

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

 



Hi Leah,

I believe the cleanup attribute is associated with the variable, not with
the type.  And not just any variable, it has to be an auto variable (not a
static variable, not a parameter).

A typedef does not define a variable, it defines a type (or, really, a
synonymous alias to a type).

But that's just my take on it, I may be mistaken.

HTH,
--Eljay


[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