Constify a global table and function arguments
Signed-off-by: Ran Benita <ran234@gmail.com>master
parent
d116aaef9f
commit
913e0740cb
|
@ -119,7 +119,7 @@ ExprCreateBinary(unsigned op, ExprDef * left, ExprDef * right)
|
|||
}
|
||||
|
||||
KeycodeDef *
|
||||
KeycodeCreate(char *name, unsigned long value)
|
||||
KeycodeCreate(const char *name, unsigned long value)
|
||||
{
|
||||
KeycodeDef *def;
|
||||
|
||||
|
@ -141,7 +141,7 @@ KeycodeCreate(char *name, unsigned long value)
|
|||
}
|
||||
|
||||
KeyAliasDef *
|
||||
KeyAliasCreate(char *alias, char *real)
|
||||
KeyAliasCreate(const char *alias, const char *real)
|
||||
{
|
||||
KeyAliasDef *def;
|
||||
|
||||
|
@ -259,7 +259,7 @@ KeyTypeCreate(xkb_atom_t name, VarDef * body)
|
|||
}
|
||||
|
||||
SymbolsDef *
|
||||
SymbolsCreate(char *keyName, ExprDef * symbols)
|
||||
SymbolsCreate(const char *keyName, ExprDef *symbols)
|
||||
{
|
||||
SymbolsDef *def;
|
||||
|
||||
|
@ -533,7 +533,7 @@ AppendMultiKeysymList(ExprDef * list, ExprDef * append)
|
|||
}
|
||||
|
||||
int
|
||||
LookupKeysym(char *str, xkb_keysym_t * sym_rtrn)
|
||||
LookupKeysym(const char *str, xkb_keysym_t *sym_rtrn)
|
||||
{
|
||||
xkb_keysym_t sym;
|
||||
|
||||
|
|
|
@ -59,12 +59,12 @@ extern ExprDef *ExprCreateBinary(unsigned /* op */ ,
|
|||
ExprDef * /* right */
|
||||
);
|
||||
|
||||
extern KeycodeDef *KeycodeCreate(char * /* name */ ,
|
||||
extern KeycodeDef *KeycodeCreate(const char * /* name */ ,
|
||||
unsigned long /* value */
|
||||
);
|
||||
|
||||
extern KeyAliasDef *KeyAliasCreate(char * /* alias */ ,
|
||||
char * /* real */
|
||||
extern KeyAliasDef *KeyAliasCreate(const char * /* alias */ ,
|
||||
const char * /* real */
|
||||
);
|
||||
|
||||
extern VModDef *VModCreate(xkb_atom_t /* name */ ,
|
||||
|
@ -87,7 +87,7 @@ extern KeyTypeDef *KeyTypeCreate(xkb_atom_t /* name */ ,
|
|||
VarDef * /* body */
|
||||
);
|
||||
|
||||
extern SymbolsDef *SymbolsCreate(char * /* keyName */ ,
|
||||
extern SymbolsDef *SymbolsCreate(const char * /* keyName */ ,
|
||||
ExprDef * /* symbols */
|
||||
);
|
||||
|
||||
|
@ -126,7 +126,7 @@ extern ExprDef *AppendKeysymList(ExprDef * /* list */ ,
|
|||
char * /* sym */
|
||||
);
|
||||
|
||||
extern int LookupKeysym(char * /* str */ ,
|
||||
extern int LookupKeysym(const char * /* str */ ,
|
||||
xkb_keysym_t * /* sym_rtrn */
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue