[PATCH libXext] sync declarations/definitions of xgeExtRegister()

Peter Hutterer peter.hutterer at who-t.net
Tue Sep 7 16:08:20 PDT 2010


On Tue, Sep 07, 2010 at 01:31:20PM -0700, Alan Coopersmith wrote:
> Shouldn't this just go into an internal .h instead of trying to keep definitions
> in sync between multiple *.c files?
> 
> 	-alan-
> 
> Rémi Cardona wrote:
> > src/extutil.c has _X_HIDDEN while src/Xge.c didn't. This apparently went
> > unnoticed by most compilers for a while, but not on Gentoo-prefix/amd64
> > where this issue breaks the build.
> > 
> > Fixes https://bugs.freedesktop.org/show_bug.cgi?id=29958
> > 
> > Signed-off-by: Ivan Jager <aij+freedesktop.org at mrph.org>
> > Reviewed-by: Rémi Cardona <remi at gentoo.org>
> > ---
> > 
> > Could I get an extra pair of eyes to ACK this before committing?

I agree with Alan that a header file may be nicer, though we currently need
this for a single function definition only. As a temporary fix for the bug
above:

Acked-by: Peter Hutterer <peter.hutterer at who-t.net>

Cheers,
  Peter

> > 
> > Thanks,
> > 
> > Rémi
> > 
> >  src/Xge.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/src/Xge.c b/src/Xge.c
> > index 0655e00..2e25894 100644
> > --- a/src/Xge.c
> > +++ b/src/Xge.c
> > @@ -291,7 +291,7 @@ _xgeEventToWire(Display* dpy, XEvent* re, xEvent* event)
> >  /*
> >   * Extensions need to register callbacks for their events.
> >   */
> > -Bool
> > +_X_HIDDEN Bool
> >  xgeExtRegister(Display* dpy, int offset, XExtensionHooks* callbacks)
> >  {
> >      XGEExtNode* newExt;
> 


More information about the xorg-devel mailing list