mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xkb: make XkbFreeGeomProperties() static
Only used within one source file. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt, metux IT consult .
parent
7b089d63a3
commit
67c7bd5064
@@ -139,8 +139,8 @@ _XkbClearProperty(char *prop_in)
|
||||
return;
|
||||
}
|
||||
|
||||
void
|
||||
XkbFreeGeomProperties(XkbGeometryPtr geom, int first, int count, Bool freeAll)
|
||||
static void
|
||||
SrvXkbFreeGeomProperties(XkbGeometryPtr geom, int first, int count, Bool freeAll)
|
||||
{
|
||||
_XkbFreeGeomNonLeafElems(freeAll, first, count,
|
||||
&geom->num_properties, &geom->sz_properties,
|
||||
@@ -356,7 +356,7 @@ XkbFreeGeometry(XkbGeometryPtr geom, unsigned which, Bool freeMap)
|
||||
if (freeMap)
|
||||
which = XkbGeomAllMask;
|
||||
if ((which & XkbGeomPropertiesMask) && (geom->properties != NULL))
|
||||
XkbFreeGeomProperties(geom, 0, geom->num_properties, TRUE);
|
||||
SrvXkbFreeGeomProperties(geom, 0, geom->num_properties, TRUE);
|
||||
if ((which & XkbGeomColorsMask) && (geom->colors != NULL))
|
||||
SrvXkbFreeGeomColors(geom, 0, geom->num_colors, TRUE);
|
||||
if ((which & XkbGeomShapesMask) && (geom->shapes != NULL))
|
||||
|
||||
@@ -29,7 +29,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#include "xkbstr.h"
|
||||
|
||||
#define XkbFreeGeomProperties SrvXkbFreeGeomProperties
|
||||
#define XkbFreeGeomKeys SrvXkbFreeGeomKeys
|
||||
#define XkbFreeGeomRows SrvXkbFreeGeomRows
|
||||
#define XkbFreeGeomSections SrvXkbFreeGeomSections
|
||||
@@ -340,13 +339,6 @@ XkbDoodadPtr SrvXkbAddGeomDoodad(XkbGeometryPtr geom,
|
||||
XkbSectionPtr section,
|
||||
Atom name);
|
||||
|
||||
extern void
|
||||
XkbFreeGeomProperties(XkbGeometryPtr /* geom */ ,
|
||||
int /* first */ ,
|
||||
int /* count */ ,
|
||||
Bool /* freeAll */
|
||||
);
|
||||
|
||||
extern void
|
||||
XkbFreeGeomOverlayKeys(XkbOverlayRowPtr /* row */ ,
|
||||
int /* first */ ,
|
||||
|
||||
Reference in New Issue
Block a user