XKBgeom.h: Add _Xconst qualifier to char * arguments in functions

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
Alan Coopersmith 2022-04-16 12:59:39 -07:00
parent 0ce4425826
commit c88ceaad4a
8 changed files with 24 additions and 21 deletions

View file

@ -279,21 +279,21 @@ _XFUNCPROTOBEGIN
extern XkbPropertyPtr
XkbAddGeomProperty(
XkbGeometryPtr /* geom */,
char * /* name */,
char * /* value */
_Xconst char * /* name */,
_Xconst char * /* value */
);
extern XkbKeyAliasPtr
XkbAddGeomKeyAlias(
XkbGeometryPtr /* geom */,
char * /* alias */,
char * /* real */
_Xconst char * /* alias */,
_Xconst char * /* real */
);
extern XkbColorPtr
XkbAddGeomColor(
XkbGeometryPtr /* geom */,
char * /* spec */,
_Xconst char * /* spec */,
unsigned int /* pixel */
);
@ -348,8 +348,8 @@ extern XkbOverlayKeyPtr
XkbAddGeomOverlayKey(
XkbOverlayPtr /* overlay */,
XkbOverlayRowPtr /* row */,
char * /* over */,
char * /* under */
_Xconst char * /* over */,
_Xconst char * /* under */
);
extern XkbDoodadPtr
@ -597,7 +597,7 @@ extern char *
XkbFindOverlayForKey(
XkbGeometryPtr /* geom */,
XkbSectionPtr /* wanted */,
char * /* under */
_Xconst char * /* under */
);
extern Status

View file

@ -27,7 +27,7 @@ description
.HP
.B XkbColorPtr XkbAddGeomColor
.BI "(\^XkbGeometryPtr " "geom" "\^,"
.BI "char *" "spec" "\^,"
.BI "_Xconst char *" "spec" "\^,"
.BI "unsigned int " "pixel" "\^);"
.if n .ti +5n
.if t .ti +.5i

View file

@ -27,8 +27,8 @@ description
.HP
.B XkbKeyAliasPtr XkbAddGeomKeyAlias
.BI "(\^XkbGeometryPtr " "geom" "\^,"
.BI "char *" "alias" "\^,"
.BI "char *" "real" "\^);"
.BI "_Xconst char *" "alias" "\^,"
.BI "_Xconst char *" "real" "\^);"
.if n .ti +5n
.if t .ti +.5i
.SH ARGUMENTS

View file

@ -27,7 +27,8 @@ XkbAddGeomOverlayKey \- Add a key to an existing overlay row
.B XkbOverlayKeyPtr XkbAddGeomOverlayKey
.BI "(\^XkbOverlayPtr " "overlay" "\^,"
.BI "XkbRowPtr " "row" "\^,"
.BI "char *" "under" "\^);"
.BI "_Xconst char *" "over" "\^,"
.BI "_Xconst char *" "under" "\^);"
.if n .ti +5n
.if t .ti +.5i
.SH ARGUMENTS

View file

@ -27,8 +27,8 @@ description
.HP
.B XkbPropertyPtr XkbAddGeomProperty
.BI "(\^XkbGeometryPtr " "geom" "\^,"
.BI "char *" "name" "\^,"
.BI "char *" "value" "\^);"
.BI "_Xconst char *" "name" "\^,"
.BI "_Xconst char *" "value" "\^);"
.if n .ti +5n
.if t .ti +.5i
.SH ARGUMENTS

View file

@ -28,7 +28,7 @@ key that is part of an overlay
.B char * XkbFindOverlayForKey
.BI "(\^XkbGeometryPtr " "geom" "\^,"
.BI "XkbSectionPtr " "section" "\^,"
.BI "char *" "under" "\^);"
.BI "_Xconst char *" "under" "\^);"
.if n .ti +5n
.if t .ti +.5i
.SH ARGUMENTS

View file

@ -650,7 +650,7 @@ XkbAllocGeometry(XkbDescPtr xkb, XkbGeometrySizesPtr sizes)
/***====================================================================***/
XkbPropertyPtr
XkbAddGeomProperty(XkbGeometryPtr geom, char *name, char *value)
XkbAddGeomProperty(XkbGeometryPtr geom, _Xconst char *name, _Xconst char *value)
{
register int i;
register XkbPropertyPtr prop;
@ -683,7 +683,8 @@ XkbAddGeomProperty(XkbGeometryPtr geom, char *name, char *value)
}
XkbKeyAliasPtr
XkbAddGeomKeyAlias(XkbGeometryPtr geom, char *aliasStr, char *realStr)
XkbAddGeomKeyAlias(XkbGeometryPtr geom, _Xconst char *aliasStr,
_Xconst char *realStr)
{
register int i;
register XkbKeyAliasPtr alias;
@ -711,7 +712,7 @@ XkbAddGeomKeyAlias(XkbGeometryPtr geom, char *aliasStr, char *realStr)
}
XkbColorPtr
XkbAddGeomColor(XkbGeometryPtr geom, char *spec, unsigned int pixel)
XkbAddGeomColor(XkbGeometryPtr geom, _Xconst char *spec, unsigned int pixel)
{
register int i;
register XkbColorPtr color;
@ -898,8 +899,8 @@ XkbAddGeomDoodad(XkbGeometryPtr geom, XkbSectionPtr section, Atom name)
XkbOverlayKeyPtr
XkbAddGeomOverlayKey(XkbOverlayPtr overlay,
XkbOverlayRowPtr row,
char *over,
char *under)
_Xconst char *over,
_Xconst char *under)
{
register int i;
XkbOverlayKeyPtr key;

View file

@ -208,7 +208,8 @@ XkbComputeSectionBounds(XkbGeometryPtr geom, XkbSectionPtr section)
/***====================================================================***/
char *
XkbFindOverlayForKey(XkbGeometryPtr geom, XkbSectionPtr wanted, char *under)
XkbFindOverlayForKey(XkbGeometryPtr geom, XkbSectionPtr wanted,
_Xconst char *under)
{
int s;
XkbSectionPtr section;