aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spell_defs.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-03-04 21:09:50 +0800
committerGitHub <noreply@github.com>2023-03-04 21:09:50 +0800
commitdde5ce46b2e3e77efc27394b946ef49ce565cd95 (patch)
treea007fcfb9ef5f0516df4f03210c62fa180bd8180 /src/nvim/spell_defs.h
parentaa16590999a66798eca7d2ba09e971aacdeb54b4 (diff)
downloadrneovim-dde5ce46b2e3e77efc27394b946ef49ce565cd95.tar.gz
rneovim-dde5ce46b2e3e77efc27394b946ef49ce565cd95.tar.bz2
rneovim-dde5ce46b2e3e77efc27394b946ef49ce565cd95.zip
refactor(spell): use uint8_t for "byts" variables (#22519)
Avoid casting back and forth.
Diffstat (limited to 'src/nvim/spell_defs.h')
-rw-r--r--src/nvim/spell_defs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/spell_defs.h b/src/nvim/spell_defs.h
index bda43a94d1..1c163071c5 100644
--- a/src/nvim/spell_defs.h
+++ b/src/nvim/spell_defs.h
@@ -119,12 +119,12 @@ struct slang_S {
char *sl_fname; // name of .spl file
bool sl_add; // true if it's a .add file.
- char *sl_fbyts; // case-folded word bytes
+ uint8_t *sl_fbyts; // case-folded word bytes
long sl_fbyts_len; // length of sl_fbyts
idx_T *sl_fidxs; // case-folded word indexes
- char *sl_kbyts; // keep-case word bytes
+ uint8_t *sl_kbyts; // keep-case word bytes
idx_T *sl_kidxs; // keep-case word indexes
- char *sl_pbyts; // prefix tree word bytes
+ uint8_t *sl_pbyts; // prefix tree word bytes
idx_T *sl_pidxs; // prefix tree word indexes
char *sl_info; // infotext string or NULL
@@ -172,7 +172,7 @@ struct slang_S {
// Info from the .sug file. Loaded on demand.
time_t sl_sugtime; // timestamp for .sug file
- char *sl_sbyts; // soundfolded word bytes
+ uint8_t *sl_sbyts; // soundfolded word bytes
idx_T *sl_sidxs; // soundfolded word indexes
buf_T *sl_sugbuf; // buffer with word number table
bool sl_sugloaded; // true when .sug file was loaded or failed to