diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:34 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 23:14:04 +0900 |
commit | aa98dbfe80580169f3df12489a77e8b904a1d9b9 (patch) | |
tree | 483608a6346be3fa4d8f95d35a05952c81221b91 /tdehtml/css/cssproperties.c | |
parent | f29aa92d38e9e1f353ed48f7952150437db8c890 (diff) | |
download | tdelibs-aa98dbfe80580169f3df12489a77e8b904a1d9b9.tar.gz tdelibs-aa98dbfe80580169f3df12489a77e8b904a1d9b9.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdehtml/css/cssproperties.c')
-rw-r--r-- | tdehtml/css/cssproperties.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tdehtml/css/cssproperties.c b/tdehtml/css/cssproperties.c index bbaeb0d02..1f4ba882b 100644 --- a/tdehtml/css/cssproperties.c +++ b/tdehtml/css/cssproperties.c @@ -39,7 +39,7 @@ struct props { int id; }; -static const struct props * findProp (register const char *str, register unsigned int len); +static const struct props * findProp (register const char *str, unsigned int len); /* maximum key range = 469, duplicates = 0 */ #ifdef __GNUC__ @@ -50,7 +50,7 @@ inline #endif #endif static unsigned int -hash_prop (register const char *str, register unsigned int len) +hash_prop (register const char *str, unsigned int len) { static const unsigned short asso_values[] = { @@ -81,7 +81,7 @@ hash_prop (register const char *str, register unsigned int len) 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472 }; - register int hval = len; + int hval = len; switch (hval) { @@ -189,7 +189,7 @@ hash_prop (register const char *str, register unsigned int len) __inline #endif const struct props * -findProp (register const char *str, register unsigned int len) +findProp (register const char *str, unsigned int len) { enum { @@ -516,15 +516,15 @@ findProp (register const char *str, register unsigned int len) if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) { - register int key = hash_prop (str, len); + int key = hash_prop (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_prop[index].name; + const char *s = wordlist_prop[index].name; if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0') return &wordlist_prop[index]; |