On Thu, Feb 16, 2017 at 02:00:03PM -0500, Adam Jackson wrote:
> The code as written would match anything declared extern. _X_EXPORT is
> what we really mean here. That's a macro, so check for what it expands
> to and skip if not found.
> 
> Signed-off-by: Adam Jackson <a...@redhat.com>
> ---
>  hw/xfree86/sdksyms.sh | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/hw/xfree86/sdksyms.sh b/hw/xfree86/sdksyms.sh
> index cf26892..10909d0 100755
> --- a/hw/xfree86/sdksyms.sh
> +++ b/hw/xfree86/sdksyms.sh
> @@ -343,6 +343,10 @@ BEGIN {
>             n = 1;
>          }
>  
> +        # only match _X_EXPORT
> +        if ($n !~ /^(__attribute__..visibility..default|__global)/)
> +            next;

Reviewed-by: Peter Hutterer <peter.hutte...@who-t.net>

> +
>       # skip attribute, if any
>       while ($n ~ /^(__attribute__|__global)/ ||
>           # skip modifiers, if any

fwiw, just a line below here there's still a mention of _X_EXPORT which is
a noop:

              $n ~ /^\*?(unsigned|const|volatile|struct|_X_EXPORT)$/ ||

feel free to remove that one with my rev-by.

Cheers,
   Peter
 
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to