diff options
author | Michele Calgaro <[email protected]> | 2020-01-30 20:17:34 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-01-30 23:52:42 +0900 |
commit | 41e0f335b5e2ab65cf47191a5b1c32adee2c24c3 (patch) | |
tree | 016b50163495e6d8607a1205b4e29179fbf56f8a /tdehtml/misc | |
parent | 9c1e136983b9361291646002b2c6c1f733ee13d4 (diff) | |
download | tdelibs-41e0f335b5e2ab65cf47191a5b1c32adee2c24c3.tar.gz tdelibs-41e0f335b5e2ab65cf47191a5b1c32adee2c24c3.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit aa98dbfe80580169f3df12489a77e8b904a1d9b9)
Diffstat (limited to 'tdehtml/misc')
-rw-r--r-- | tdehtml/misc/htmlattrs.c | 12 | ||||
-rw-r--r-- | tdehtml/misc/htmltags.c | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/tdehtml/misc/htmlattrs.c b/tdehtml/misc/htmlattrs.c index 5ceaf351d..9bee3309a 100644 --- a/tdehtml/misc/htmlattrs.c +++ b/tdehtml/misc/htmlattrs.c @@ -57,7 +57,7 @@ inline #endif #endif static unsigned int -hash_attr (register const char *str, register unsigned int len) +hash_attr (register const char *str, unsigned int len) { static const unsigned short asso_values[] = { @@ -88,7 +88,7 @@ hash_attr (register const char *str, register unsigned int len) 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577 }; - register int hval = len; + int hval = len; switch (hval) { @@ -831,19 +831,19 @@ inline #endif #endif const struct attrs * -findAttr (register const char *str, register unsigned int len) +findAttr (register const char *str, unsigned int len) { if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) { - register int key = hash_attr (str, len); + int key = hash_attr (str, len); if (key <= MAX_HASH_VALUE && key >= 0) { - register int index = lookup[key]; + int index = lookup[key]; if (index >= 0) { - register const char *s = wordlist_attr[index].name + spool_attr; + const char *s = wordlist_attr[index].name + spool_attr; if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0') return &wordlist_attr[index]; diff --git a/tdehtml/misc/htmltags.c b/tdehtml/misc/htmltags.c index 1342e62bf..be6fade5f 100644 --- a/tdehtml/misc/htmltags.c +++ b/tdehtml/misc/htmltags.c @@ -48,7 +48,7 @@ inline #endif #endif static unsigned int -hash_tag (register const char *str, register unsigned int len) +hash_tag (register const char *str, unsigned int len) { static const unsigned short asso_values[] = { @@ -79,7 +79,7 @@ hash_tag (register const char *str, register unsigned int len) 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346 }; - register int hval = len; + int hval = len; switch (hval) { @@ -338,7 +338,7 @@ static const struct spool_Tag_t spool_Tag_contents = __inline #endif const struct tags * -findTag (register const char *str, register unsigned int len) +findTag (register const char *str, unsigned int len) { enum { @@ -615,17 +615,17 @@ findTag (register const char *str, register unsigned int len) if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) { - register int key = hash_tag (str, len); + int key = hash_tag (str, len); if (key <= MAX_HASH_VALUE && key >= 0) { - register int index = lookup[key]; + int index = lookup[key]; if (index >= 0) { if (len == lengthtable[index]) { - register const char *s = wordlist_tag[index].name + spool_Tag; + const char *s = wordlist_tag[index].name + spool_Tag; if (*str == *s && !memcmp (str + 1, s + 1, len - 1)) return &wordlist_tag[index]; |