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 /tdespell2/plugins/ispell/correct.cpp | |
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 'tdespell2/plugins/ispell/correct.cpp')
-rw-r--r-- | tdespell2/plugins/ispell/correct.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/tdespell2/plugins/ispell/correct.cpp b/tdespell2/plugins/ispell/correct.cpp index 65e98fa6d..a417ee777 100644 --- a/tdespell2/plugins/ispell/correct.cpp +++ b/tdespell2/plugins/ispell/correct.cpp @@ -244,8 +244,8 @@ int compoundflag = COMPOUND_CONTROLLED; int ISpellChecker::casecmp (char *a, char *b, int canonical) { - register ichar_t * ap; - register ichar_t * bp; + ichar_t * ap; + ichar_t * bp; ichar_t inta[INPUTWORDLEN + 4 * MAXAFFIXLEN + 4]; ichar_t intb[INPUTWORDLEN + 4 * MAXAFFIXLEN + 4]; @@ -290,7 +290,7 @@ ISpellChecker::casecmp (char *a, char *b, int canonical) void ISpellChecker::makepossibilities (ichar_t *word) { - register int i; + int i; for (i = 0; i < MAXPOSSIBLE; i++) m_possibilities[i][0] = 0; @@ -332,8 +332,8 @@ ISpellChecker::makepossibilities (ichar_t *word) int ISpellChecker::insert (ichar_t *word) { - register int i; - register char * realword; + int i; + char * realword; realword = ichartosstr (word, 0); for (i = 0; i < m_pcount; i++) @@ -381,9 +381,9 @@ ISpellChecker::wrongcapital (ichar_t *word) void ISpellChecker::wrongletter (ichar_t *word) { - register int i; - register int j; - register int n; + int i; + int j; + int n; ichar_t savechar; ichar_t newword[INPUTWORDLEN + MAXAFFIXLEN]; @@ -420,8 +420,8 @@ void ISpellChecker::extraletter (ichar_t *word) { ichar_t newword[INPUTWORDLEN + MAXAFFIXLEN]; - register ichar_t * p; - register ichar_t * r; + ichar_t * p; + ichar_t * r; if (icharlen (word) < 2) return; @@ -445,9 +445,9 @@ void ISpellChecker::missingletter (ichar_t *word) { ichar_t newword[INPUTWORDLEN + MAXAFFIXLEN + 1]; - register ichar_t * p; - register ichar_t * r; - register int i; + ichar_t * p; + ichar_t * r; + int i; icharcpy (newword + 1, word); for (p = word, r = newword; *p != 0; ) @@ -489,7 +489,7 @@ void ISpellChecker::missingspace (ichar_t *word) ichar_t newword[INPUTWORDLEN + MAXAFFIXLEN + 1]; int nfirsthalf; /* No. words saved in 1st half */ int nsecondhalf; /* No. words saved in 2nd half */ - register ichar_t * p; + ichar_t * p; ichar_t secondhalf[MAX_CAPS][INPUTWORDLEN + MAXAFFIXLEN]; int secondno; /* Index into second */ @@ -547,8 +547,8 @@ int ISpellChecker::compoundgood (ichar_t *word, int pfxopts) { ichar_t newword[INPUTWORDLEN + MAXAFFIXLEN]; - register ichar_t * p; - register ichar_t savech; + ichar_t * p; + ichar_t savech; long secondcap; /* Capitalization of 2nd half */ /* @@ -606,8 +606,8 @@ void ISpellChecker::transposedletter (ichar_t *word) { ichar_t newword[INPUTWORDLEN + MAXAFFIXLEN]; - register ichar_t * p; - register ichar_t temp; + ichar_t * p; + ichar_t temp; icharcpy (newword, word); for (p = newword; p[1] != 0; p++) @@ -752,12 +752,12 @@ ISpellChecker::save_root_cap (ichar_t *word, ichar_t *pattern, int * nsaved) { #ifndef NO_CAPITALIZATION_SUPPORT - register struct dent * dent; + struct dent * dent; #endif /* NO_CAPITALIZATION_SUPPORT */ int firstisupper; ichar_t newword[INPUTWORDLEN + 4 * MAXAFFIXLEN + 4]; #ifndef NO_CAPITALIZATION_SUPPORT - register ichar_t * p; + ichar_t * p; int len; int i; int limit; |