summaryrefslogtreecommitdiffstats
path: root/src/spell.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-10 14:12:43 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-10 14:12:43 +0100
commit2993ac5fce5450428322ce43aaa5e643e6994443 (patch)
tree6128c7a3b1a76db62e8e7c89fa1cdf470c78f463 /src/spell.h
parent7254067ee970686cc3ff4a1effc3e49e9192a5c1 (diff)
patch 8.0.1490: number of spell regions is spread out through the codev8.0.1490
Problem: Number of spell regions is spread out through the code. Solution: Define MAXREGIONS.
Diffstat (limited to 'src/spell.h')
-rw-r--r--src/spell.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/spell.h b/src/spell.h
index 4c44b546a8..49ec0601e9 100644
--- a/src/spell.h
+++ b/src/spell.h
@@ -34,6 +34,8 @@
byte, thus it can't be above 255.
Must be >= PFD_NOTSPECIAL. */
+#define MAXREGIONS 8 /* Number of regions supported. */
+
/* Type used for indexes in the word tree need to be at least 4 bytes. If int
* is 8 bytes we could use something smaller, but what? */
#if VIM_SIZEOF_INT > 3
@@ -80,7 +82,8 @@ struct slang_S
char_u *sl_info; /* infotext string or NULL */
- char_u sl_regions[17]; /* table with up to 8 region names plus NUL */
+ char_u sl_regions[MAXREGIONS * 2 + 1];
+ /* table with up to 8 region names plus NUL */
char_u *sl_midword; /* MIDWORD string or NULL */