diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-10 11:03:40 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-10 11:03:40 -0800 |
commit | 9737af15196380a1687d18a17d297ee17b45a83f (patch) | |
tree | 555445d8fbb5e814a8e9afb4b9bba78886455aed | |
parent | b67c058e2ccc27472b238a6b5dc5e4cd20f6d2bd (diff) |
Remove register keyword from variable declarations
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | action.c | 4 | ||||
-rw-r--r-- | alias.c | 2 | ||||
-rw-r--r-- | compat.c | 6 | ||||
-rw-r--r-- | expr.c | 10 | ||||
-rw-r--r-- | geometry.c | 6 | ||||
-rw-r--r-- | indicators.c | 6 | ||||
-rw-r--r-- | keycodes.c | 8 | ||||
-rw-r--r-- | keymap.c | 2 | ||||
-rw-r--r-- | keytypes.c | 18 | ||||
-rw-r--r-- | listing.c | 2 | ||||
-rw-r--r-- | misc.c | 6 | ||||
-rw-r--r-- | symbols.c | 32 | ||||
-rw-r--r-- | utils.c | 2 | ||||
-rw-r--r-- | vmod.c | 16 | ||||
-rw-r--r-- | xkbcomp.c | 2 | ||||
-rw-r--r-- | xkbpath.c | 4 |
16 files changed, 63 insertions, 63 deletions
@@ -372,7 +372,7 @@ CheckModifierField(XkbDescPtr xkb, if (value->op == ExprIdent) { - register char *valStr; + char *valStr; valStr = XkbAtomGetString(NULL, value->value.str); if (valStr && ((uStrCaseCmp(valStr, "usemodmapmods") == 0) || (uStrCaseCmp(valStr, "modmapmods") == 0))) @@ -1324,7 +1324,7 @@ HandleActionDef(ExprDef * def, XkbAnyAction * action, unsigned mergeMode, ActionInfo * info) { ExprDef *arg; - register char *str; + char *str; unsigned tmp, hndlrType; if (!actionsInitialized) @@ -158,7 +158,7 @@ MergeAliases(AliasInfo ** into, AliasInfo ** merge, unsigned how_merge) int ApplyAliases(XkbDescPtr xkb, Bool toGeom, AliasInfo ** info_in) { - register int i; + int i; XkbKeyAliasPtr old, a; AliasInfo *info; int nNew, nOld; @@ -102,7 +102,7 @@ siText(SymInterpInfo * si, CompatInfo * info) static void InitCompatInfo(CompatInfo * info, XkbDescPtr xkb) { - register int i; + int i; info->xkb = xkb; info->name = NULL; @@ -135,7 +135,7 @@ InitCompatInfo(CompatInfo * info, XkbDescPtr xkb) static void ClearCompatInfo(CompatInfo * info, XkbDescPtr xkb) { - register int i; + int i; if (info->name != NULL) uFree(info->name); @@ -352,7 +352,7 @@ MergeIncludedCompatMaps(CompatInfo * into, CompatInfo * from, unsigned merge) SymInterpInfo *si; LEDInfo *led, *rtrn, *next; GroupCompatInfo *gcm; - register int i; + int i; if (from->errorCount > 0) { @@ -158,7 +158,7 @@ SimpleLookup(XPointer priv, Atom elem, Atom field, unsigned type, ExprResult * val_rtrn) { LookupEntry *entry; - register char *str; + char *str; if ((priv == NULL) || (field == None) || (elem != None) || @@ -185,7 +185,7 @@ Bool RadioLookup(XPointer priv, Atom elem, Atom field, unsigned type, ExprResult * val_rtrn) { - register char *str; + char *str; int rg; if ((field == None) || (elem != None) || (type != TypeInt)) @@ -214,7 +214,7 @@ TableLookup(XPointer priv, Atom elem, Atom field, unsigned type, ExprResult * val_rtrn) { LookupTable *tbl = (LookupTable *) priv; - register char *str; + char *str; if ((priv == NULL) || (field == None) || (type != TypeInt)) return False; @@ -487,7 +487,7 @@ ExprResolveFloat(ExprDef * expr, case ExprValue: if (expr->type == TypeString) { - register char *str; + char *str; str = XkbAtomGetString(NULL, expr->value.str); if ((str != NULL) && (strlen(str) == 1)) { @@ -600,7 +600,7 @@ ExprResolveInteger(ExprDef * expr, case ExprValue: if (expr->type == TypeString) { - register char *str; + char *str; str = XkbAtomGetString(NULL, expr->value.str); if (str != NULL) switch (strlen(str)) @@ -637,7 +637,7 @@ FreeShapes(ShapeInfo * si, GeometryInfo * info) { if (tmp->outlines) { - register int i; + int i; for (i = 0; i < tmp->nOutlines; i++) { if (tmp->outlines[i].points != NULL) @@ -2923,7 +2923,7 @@ HandleGeometryFile(XkbFile * file, static Bool CopyShapeDef(Display * dpy, XkbGeometryPtr geom, ShapeInfo * si) { - register int i, n; + int i, n; XkbShapePtr shape; XkbOutlinePtr old_outline, outline; Atom name; @@ -3405,7 +3405,7 @@ VerifyOverlayInfo(XkbGeometryPtr geom, OverlayInfo * oi, GeometryInfo * info, short rowMap[256], short rowSize[256]) { - register OverlayKeyInfo *ki, *next; + OverlayKeyInfo *ki, *next; unsigned long oKey, uKey, sKey; XkbRowPtr row; XkbKeyPtr key; diff --git a/indicators.c b/indicators.c index b3e7d18..3ed0bee 100644 --- a/indicators.c +++ b/indicators.c @@ -418,7 +418,7 @@ CopyIndicatorMapDefs(XkbFileInfo * result, LEDInfo * leds, } else { - register XkbIndicatorMapPtr im; + XkbIndicatorMapPtr im; im = &xkb->indicators->maps[led->indicator - 1]; im->flags = led->flags; im->which_groups = led->which_groups; @@ -445,8 +445,8 @@ BindIndicators(XkbFileInfo * result, Bool force, LEDInfo * unbound, LEDInfo ** unboundRtrn) { XkbDescPtr xkb; - register int i; - register LEDInfo *led, *next, *last; + int i; + LEDInfo *led, *next, *last; xkb = result->xkb; if (xkb->names != NULL) @@ -307,7 +307,7 @@ InitKeyNamesInfo(KeyNamesInfo * info) static int FindKeyByLong(KeyNamesInfo * info, unsigned long name) { - register int i; + int i; for (i = info->effectiveMin; i <= info->effectiveMax; i++) { @@ -435,7 +435,7 @@ static void MergeIncludedKeycodes(KeyNamesInfo * into, KeyNamesInfo * from, unsigned merge) { - register int i; + int i; char buf[5]; if (from->errorCount > 0) @@ -860,7 +860,7 @@ CompileKeycodes(XkbFile * file, XkbFileInfo * result, unsigned merge) if (XkbAllocNames(xkb, XkbKeyNamesMask | XkbIndicatorNamesMask, 0, 0) == Success) { - register int i; + int i; xkb->names->keycodes = XkbInternAtom(xkb->dpy, info.name, False); uDEBUG2(1, "key range: %d..%d\n", xkb->min_key_code, xkb->max_key_code); @@ -892,7 +892,7 @@ CompileKeycodes(XkbFile * file, XkbFileInfo * result, unsigned merge) XkbAtomGetString(NULL, ii->name), False); if (xkb->indicators != NULL) { - register unsigned bit; + unsigned bit; bit = 1 << (ii->ndx - 1); if (ii->virtual) xkb->indicators->phys_indicators &= ~bit; @@ -161,7 +161,7 @@ CompileKeymap(XkbFile * file, XkbFileInfo * result, unsigned merge) result->defined = have; if (required & (~have)) { - register int i, bit; + int i, bit; unsigned missing; missing = required & (~have); for (i = 0, bit = 1; missing != 0; i++, bit <<= 1) @@ -172,7 +172,7 @@ InitKeyTypesInfo(KeyTypesInfo * info, XkbDescPtr xkb, KeyTypesInfo * from) info->dflt.lvlNames = uTypedCalloc(from->dflt.szNames, Atom); if (info->dflt.lvlNames) { - register unsigned sz = from->dflt.szNames * sizeof(Atom); + unsigned sz = from->dflt.szNames * sizeof(Atom); memcpy(info->dflt.lvlNames, from->dflt.lvlNames, sz); } } @@ -229,7 +229,7 @@ FreeKeyTypesInfo(KeyTypesInfo * info) info->name = NULL; if (info->types) { - register KeyTypeInfo *type; + KeyTypeInfo *type; for (type = info->types; type; type = (KeyTypeInfo *) type->defs.next) { FreeKeyTypeInfo(type); @@ -478,7 +478,7 @@ HandleIncludeKeyTypes(IncludeStmt * stmt, static XkbKTMapEntryPtr FindMatchingMapEntry(KeyTypeInfo * type, unsigned mask, unsigned vmask) { - register int i; + int i; XkbKTMapEntryPtr entry; for (i = 0, entry = type->entries; i < type->nEntries; i++, entry++) @@ -492,7 +492,7 @@ FindMatchingMapEntry(KeyTypeInfo * type, unsigned mask, unsigned vmask) static void DeleteLevel1MapEntries(KeyTypeInfo * type) { - register int i, n; + int i, n; for (i = 0; i < type->nEntries; i++) { @@ -992,7 +992,7 @@ static int HandleKeyTypeDef(KeyTypeDef * def, XkbDescPtr xkb, unsigned merge, KeyTypesInfo * info) { - register int i; + int i; KeyTypeInfo type; if (def->merge != MergeDefault) @@ -1134,7 +1134,7 @@ HandleKeyTypesFile(XkbFile * file, static Bool CopyDefToKeyType(XkbDescPtr xkb, XkbKeyTypePtr type, KeyTypeInfo * def) { - register int i; + int i; PreserveInfo *pre; for (pre = def->preserve; pre != NULL; @@ -1217,9 +1217,9 @@ CompileKeyTypes(XkbFile * file, XkbFileInfo * result, unsigned merge) if (info.errorCount == 0) { - register int i; - register KeyTypeInfo *def; - register XkbKeyTypePtr type, next; + int i; + KeyTypeInfo *def; + XkbKeyTypePtr type, next; if (info.name != NULL) { @@ -197,7 +197,7 @@ AddListing(char *file, char *map) static void ListFile(FILE * outFile, char *fileName, XkbFile * map) { - register unsigned flags; + unsigned flags; char *mapName; flags = map->flags; @@ -401,7 +401,7 @@ Status ComputeKbdDefaults(XkbDescPtr xkb) { Status rtrn; - register int i, tmp, nUnknown; + int i, tmp, nUnknown; KeyNameDesc *name; KeySym *syms; char tmpname[XkbKeyNameLength + 1]; @@ -494,7 +494,7 @@ FindNamedKey(XkbDescPtr xkb, unsigned int *kc_rtrn, Bool use_aliases, Bool create, int start_from) { - register unsigned n; + unsigned n; if (start_from < xkb->min_key_code) { @@ -565,7 +565,7 @@ Bool FindKeyNameForAlias(XkbDescPtr xkb, unsigned long lname, unsigned long *real_name) { - register int i; + int i; char name[XkbKeyNameLength + 1]; if (xkb && xkb->geom && xkb->geom->key_aliases) @@ -81,7 +81,7 @@ typedef struct _KeyInfo static void InitKeyInfo(KeyInfo * info) { - register int i; + int i; static char dflt[4] = "*"; info->defs.defined = 0; @@ -114,7 +114,7 @@ InitKeyInfo(KeyInfo * info) static void FreeKeyInfo(KeyInfo * info) { - register int i; + int i; info->defs.defined = 0; info->defs.fileID = 0; @@ -151,7 +151,7 @@ FreeKeyInfo(KeyInfo * info) static Bool CopyKeyInfo(KeyInfo * old, KeyInfo * new, Bool clearOld) { - register int i; + int i; *new = *old; new->defs.next = NULL; @@ -237,7 +237,7 @@ typedef struct _SymbolsInfo static void InitSymbolsInfo(SymbolsInfo * info, XkbDescPtr xkb) { - register int i; + int i; tok_ONE_LEVEL = XkbInternAtom(NULL, "ONE_LEVEL", False); tok_TWO_LEVEL = XkbInternAtom(NULL, "TWO_LEVEL", False); @@ -264,7 +264,7 @@ InitSymbolsInfo(SymbolsInfo * info, XkbDescPtr xkb) static void FreeSymbolsInfo(SymbolsInfo * info) { - register int i; + int i; if (info->name) uFree(info->name); @@ -333,7 +333,7 @@ MergeKeyGroups(SymbolsInfo * info, KeySym *resultSyms; XkbAction *resultActs; int resultWidth; - register int i; + int i; Bool report, clobber; clobber = (from->defs.merge != MergeAugment); @@ -477,7 +477,7 @@ MergeKeyGroups(SymbolsInfo * info, static Bool MergeKeys(SymbolsInfo * info, KeyInfo * into, KeyInfo * from) { - register int i; + int i; unsigned collide = 0; Bool report; @@ -601,7 +601,7 @@ MergeKeys(SymbolsInfo * info, KeyInfo * into, KeyInfo * from) static Bool AddKeySymbols(SymbolsInfo * info, KeyInfo * key, XkbDescPtr xkb) { - register int i; + int i; unsigned long real_name; for (i = 0; i < info->nKeys; i++) @@ -713,7 +713,7 @@ static void MergeIncludedSymbols(SymbolsInfo * into, SymbolsInfo * from, unsigned merge, XkbDescPtr xkb) { - register int i; + int i; KeyInfo *key; if (from->errorCount > 0) @@ -887,7 +887,7 @@ GetGroupIndex(KeyInfo * key, if (arrayNdx == NULL) { - register int i; + int i; unsigned defined; if (what == SYMBOLS) defined = key->symsDefined; @@ -990,7 +990,7 @@ AddActionsToKey(KeyInfo * key, const char *field, ExprDef * arrayNdx, ExprDef * value, SymbolsInfo * info) { - register int i; + int i; unsigned ndx, nActs; ExprDef *act; XkbAnyAction *toAct; @@ -1706,8 +1706,8 @@ HandleSymbolsFile(XkbFile * file, static Bool FindKeyForSymbol(XkbDescPtr xkb, KeySym sym, unsigned int *kc_rtrn) { - register int i, j; - register Bool gotOne; + int i, j; + Bool gotOne; j = 0; do @@ -1742,7 +1742,7 @@ FindKeyForSymbol(XkbDescPtr xkb, KeySym sym, unsigned int *kc_rtrn) static Bool FindNamedType(XkbDescPtr xkb, Atom name, unsigned *type_rtrn) { - register unsigned n; + unsigned n; if (xkb && xkb->map && xkb->map->types) { @@ -1960,7 +1960,7 @@ PrepareKeyDef(KeyInfo * key) static Bool CopySymbolsDef(XkbFileInfo * result, KeyInfo * key, int start_from) { - register int i; + int i; unsigned okc, kc, width, tmp, nGroups; XkbKeyTypePtr type; Bool haveActions, autoType, useAlias; @@ -2213,7 +2213,7 @@ CopyModMapDef(XkbFileInfo * result, ModMapEntry * entry) Bool CompileSymbols(XkbFile * file, XkbFileInfo * result, unsigned merge) { - register int i; + int i; SymbolsInfo info; XkbDescPtr xkb; @@ -328,7 +328,7 @@ uStrCaseCmp(const char *str1, const char *str2) { char buf1[512], buf2[512]; char c, *s; - register int n; + int n; for (n = 0, s = buf1; (c = *str1++); n++) { @@ -47,7 +47,7 @@ InitVModInfo(VModInfo * info, XkbDescPtr xkb) void ClearVModInfo(VModInfo * info, XkbDescPtr xkb) { - register int i; + int i; if (XkbAllocNames(xkb, XkbVirtualModNamesMask, 0, 0) != Success) return; @@ -57,7 +57,7 @@ ClearVModInfo(VModInfo * info, XkbDescPtr xkb) info->newlyDefined = info->defined = info->available = 0; if (xkb && xkb->names) { - register int bit; + int bit; for (i = 0, bit = 1; i < XkbNumVirtualMods; i++, bit <<= 1) { if (xkb->names->vmods[i] != None) @@ -80,7 +80,7 @@ ClearVModInfo(VModInfo * info, XkbDescPtr xkb) Bool HandleVModDef(VModDef * stmt, unsigned mergeMode, VModInfo * info) { - register int i, bit, nextFree; + int i, bit, nextFree; ExprResult mod; XkbServerMapPtr srv; XkbNamesPtr names; @@ -170,9 +170,9 @@ int LookupVModIndex(XPointer priv, Atom elem, Atom field, unsigned type, ExprResult * val_rtrn) { - register int i; - register char *fieldStr; - register char *modStr; + int i; + char *fieldStr; + char *modStr; XkbDescPtr xkb; xkb = (XkbDescPtr) priv; @@ -218,7 +218,7 @@ LookupVModMask(XPointer priv, { if (LookupVModIndex(priv, elem, field, type, val_rtrn)) { - register unsigned ndx = val_rtrn->uval; + unsigned ndx = val_rtrn->uval; val_rtrn->uval = (1 << (XkbNumModifiers + ndx)); return True; } @@ -247,7 +247,7 @@ ResolveVirtualModifier(ExprDef * def, ExprResult * val_rtrn, VModInfo * info) names = info->xkb->names; if (def->op == ExprIdent) { - register int i, bit; + int i, bit; for (i = 0, bit = 1; i < XkbNumVirtualMods; i++, bit <<= 1) { char *str1, *str2; @@ -214,7 +214,7 @@ setVerboseFlags(char *str) static Bool parseArgs(int argc, char *argv[]) { - register int i, tmp; + int i, tmp; i = strlen(argv[0]); tmp = strlen("xkblist"); @@ -178,7 +178,7 @@ XkbAddDefaultDirectoriesToPath(void) void XkbClearIncludePath(void) { - register int i; + int i; if (szPath > 0) { @@ -376,7 +376,7 @@ XkbFindFileInCache(char *name, unsigned type, char **pathRtrn) FILE * XkbFindFileInPath(char *name, unsigned type, char **pathRtrn) { - register int i; + int i; FILE *file = NULL; int nameLen, typeLen, pathLen; char buf[PATH_MAX], *typeDir; |