libXrandr Status return value confusion

Matthias Hopf mhopf at suse.de
Thu Jan 7 08:29:26 PST 2010


On Jan 07, 10 16:44:52 +0100, Michel Dänzer wrote:
> > > Could the return value of the functions returning True/False be changed
> > > to Bool without breaking ABI? Any other ideas for cleaning this up?
> > 
> > Those functions I found to return rep.status have the type Status
> > already.
> 
> Sure, the problem is functions which declare a Status (Success/...)
> return value but effectively return a Bool (False/True) value.

Right, sorry, stumbled (again) over Success == 0...

As both types Status and Bool are effectively int, I don't see why we
shouldn't be able to change them. IMHO this should be ABI invariant.

Matthias

-- 
Matthias Hopf <mhopf at suse.de>      __        __   __
Maxfeldstr. 5 / 90409 Nuernberg   (_   | |  (_   |__          mat at mshopf.de
Phone +49-911-74053-715           __)  |_|  __)  |__  R & D   www.mshopf.de


More information about the xorg-devel mailing list