On Wed, 23 May 2012 12:52:07 +0200 Davidlohr Bueso <[email protected]> wrote:
> On Wed, 2012-05-23 at 13:41 +0300, Lauri Kasanen wrote: > > On Wed, 23 May 2012 11:17:51 +0200 > > Davidlohr Bueso <[email protected]> wrote: > > > > > > Or, instead of pragma use it as a function attribute, it seems we can > > > implement visibility that way as well. > > > http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#Function-Attributes > > > > Yes, I'm aware of that. But that's exactly what I was trying to avoid by > > using the pragmas, because it's really ugly having that in _every_ function > > in _every_ header. > > > > > > No, see how I implemented the allocation size attributes, just define it > once and call it everywhere - if not available, the definition will > simply be empty. I get that. I mean that having the define in every header for every function is ugly. With the pragma, you have two lines per header. With the attribute, you have the define for every function and global variable. Much more text for no benefit. - Lauri _______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
