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 /tdespell2/plugins/ispell/lookup.cpp | |
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 'tdespell2/plugins/ispell/lookup.cpp')
-rw-r--r-- | tdespell2/plugins/ispell/lookup.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tdespell2/plugins/ispell/lookup.cpp b/tdespell2/plugins/ispell/lookup.cpp index b815ebd98..773cd88cb 100644 --- a/tdespell2/plugins/ispell/lookup.cpp +++ b/tdespell2/plugins/ispell/lookup.cpp @@ -266,13 +266,13 @@ int ISpellChecker::linit (char *hashname) { FILE* fpHash; - register int i; - register struct dent * dp; + int i; + struct dent * dp; struct flagent * entry; struct flagptr * ind; int nextchar, x; int viazero; - register ichar_t * cp; + ichar_t * cp; if ((fpHash = fopen (hashname, "rb")) == NULL) { @@ -571,7 +571,7 @@ int ISpellChecker::linit (char *hashname) */ void ISpellChecker::initckch (char *wchars) { - register ichar_t c; + ichar_t c; char num[4]; for (c = 0; c < static_cast<ichar_t>(SET_SIZE+ m_hashheader.nstrchars); ++c) @@ -656,7 +656,7 @@ void ISpellChecker::initckch (char *wchars) */ void ISpellChecker::clearindex (struct flagptr *indexp) { - register int i; + int i; for (i = 0; i < SET_SIZE + m_hashheader.nstrchars; i++, indexp++) { if (indexp->numents == 0 && indexp->pu.fp != NULL) @@ -669,10 +669,10 @@ void ISpellChecker::clearindex (struct flagptr *indexp) #ifdef INDEXDUMP static void dumpindex (indexp, depth) - register struct flagptr * indexp; - register int depth; + struct flagptr * indexp; + int depth; { - register int i; + int i; int j; int k; char stripbuf[INPUTWORDLEN + 4 * MAXAFFIXLEN + 4]; @@ -733,8 +733,8 @@ static void dumpindex (indexp, depth) */ struct dent * ISpellChecker::ispell_lookup (ichar_t *s, int dotree) { - register struct dent * dp; - register char * s1; + struct dent * dp; + char * s1; char schar[INPUTWORDLEN + MAXAFFIXLEN]; dp = &m_hashtbl[hash (s, m_hashsize)]; |