xkb: rename XkbAddGeomShape() to SrvXkbAddGeomShape()

Instead of doing dirty preprocessor trick, directly rename the function itself.
(the renaming itself is necessary since libX11 has the same symbol)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-02-28 17:46:42 +01:00 committed by Enrico Weigelt, metux IT consult .
parent 938b536223
commit 9bcc5de027
4 changed files with 6 additions and 8 deletions

View File

@ -649,7 +649,7 @@ SrvXkbAddGeomOutline(XkbShapePtr shape, int sz_points)
}
XkbShapePtr
XkbAddGeomShape(XkbGeometryPtr geom, Atom name, int sz_outlines)
SrvXkbAddGeomShape(XkbGeometryPtr geom, Atom name, int sz_outlines)
{
XkbShapePtr shape;
register int i;

View File

@ -5464,7 +5464,7 @@ _CheckSetShapes(XkbGeometryPtr geom,
return BadLength;
shape =
XkbAddGeomShape(geom, shapeWire->name, shapeWire->nOutlines);
SrvXkbAddGeomShape(geom, shapeWire->name, shapeWire->nOutlines);
if (!shape)
return BadAlloc;
olWire = (xkbOutlineWireDesc *) (&shapeWire[1]);

View File

@ -29,7 +29,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "xkbstr.h"
#define XkbAddGeomShape SrvXkbAddGeomShape
#define XkbAllocGeometry SrvXkbAllocGeometry
#define XkbFreeGeomKeyAliases SrvXkbFreeGeomKeyAliases
#define XkbFreeGeomColors SrvXkbFreeGeomColors
@ -315,10 +314,9 @@ XkbColorPtr SrvXkbAddGeomColor(XkbGeometryPtr geom,
XkbOutlinePtr SrvXkbAddGeomOutline(XkbShapePtr shape, int sz_points);
extern XkbShapePtr XkbAddGeomShape(XkbGeometryPtr /* geom */ ,
Atom /* name */ ,
int /* sz_outlines */
);
XkbShapePtr SrvXkbAddGeomShape(XkbGeometryPtr geom,
Atom name,
int sz_outlines);
XkbKeyPtr SrvXkbAddGeomKey(XkbRowPtr row);
XkbRowPtr SrvXkbAddGeomRow(XkbSectionPtr section, int sz_keys);

View File

@ -1099,7 +1099,7 @@ ReadXkmGeometry(FILE * file, XkbDescPtr xkb)
nameAtom = XkbInternAtom(buf, FALSE);
tmp = fread(&shapeWire, SIZEOF(xkmShapeDesc), 1, file);
nRead += tmp * SIZEOF(xkmShapeDesc);
shape = XkbAddGeomShape(geom, nameAtom, shapeWire.num_outlines);
shape = SrvXkbAddGeomShape(geom, nameAtom, shapeWire.num_outlines);
if (!shape) {
_XkbLibError(_XkbErrBadAlloc, "ReadXkmGeometry", 0);
return nRead;