* invalid index is passed.
*/
const char *
-xkb_context_include_path_get(struct xkb_context *context, unsigned int index)
+xkb_context_include_path_get(struct xkb_context *context, unsigned int idx)
{
- if (index >= xkb_context_num_include_paths(context))
+ if (idx >= xkb_context_num_include_paths(context))
return NULL;
- return context->include_paths[index];
+ return context->include_paths[idx];
}
/**
* As a last ditch effort, try without. */
if (strncmp(s, "XF86_", 5) == 0) {
xkb_keysym_t ret;
- char *tmp = strdup(s);
+ tmp = strdup(s);
if (!tmp)
return XKB_KEYSYM_NO_SYMBOL;
memmove(&tmp[4], &tmp[5], strlen(s) - 5 + 1);
int
XkbcAllocClientMap(struct xkb_desc * xkb, unsigned which, unsigned nTotalTypes)
{
- int i;
struct xkb_client_map * map;
if (!xkb || ((nTotalTypes > 0) && (nTotalTypes < XkbNumRequiredTypes)))
ResizeKeyGroup(KeyInfo * key, unsigned int group, unsigned int numLevels,
unsigned sizeSyms, Bool forceActions)
{
- Bool tooSmall;
- unsigned newWidth;
int i;
if (key->syms[group] == NULL || key->sizeSyms[group] < sizeSyms)
MergeKeyGroups(SymbolsInfo * info,
KeyInfo * into, KeyInfo * from, unsigned group)
{
- xkb_keysym_t *resultSyms;
+ xkb_keysym_t *resultSyms = NULL;
union xkb_action *resultActs;
unsigned int resultWidth;
unsigned int resultSize = 0;
int cur_idx = 0;
- int i, j;
+ int i;
Bool report, clobber;
clobber = (from->defs.merge != MergeAugment);
unsigned width, tmp, nGroups;
struct xkb_key_type * type;
Bool haveActions, autoType, useAlias;
- xkb_keysym_t *outSyms;
+ xkb_atom_t types[XkbNumKbdGroups];
union xkb_action *outActs;
- unsigned types[XkbNumKbdGroups];
+
unsigned int symIndex = 0;
useAlias = (start_from == 0);