acl-devel
[Top][All Lists]
Advanced

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

Re: [Acl-devel] [RFC] Add attribute visibility("default") to API functio


From: Mike Frysinger
Subject: Re: [Acl-devel] [RFC] Add attribute visibility("default") to API functions
Date: Tue, 16 Feb 2016 23:24:05 -0500

On 17 Feb 2016 00:57, Andreas Grünbacher wrote:
> 2016-02-16 21:50 GMT+01:00 Mike Frysinger <address@hidden>:
> > On 16 Feb 2016 23:18, Yury Usishchev wrote:
> >> Ok, the patch is attached.
> >
> > i'm fine with this (although i haven't tested it yet).
> > let's see what Andreas has to say.
> 
> This patch looks simple enough, but I really don't want to have the
> ACL_API_EXPORT define in the public headers: it doesn't add anything
> for users, it just makes the header messier to read. An ACL_API_EXPORT
> or similar macro can just as well be added where each function is
> defined, with the same net result.

unfortunately, it cannot.  the visibility has to be set on the prototype
so that when other functions see it, gcc knows how to call it and what
optimizations to use.
-mike

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]