comparison src/spell.c @ 5485:1b4cb2c6b285 v7.4.092

updated for version 7.4.092 Problem: Can't build small version. Solution: Add #ifdef where the b_cjk flag is used. (Ken Takata)
author Bram Moolenaar <bram@vim.org>
date Thu, 14 Nov 2013 03:54:07 +0100
parents 853a76c7fded
children 9417f4de27a2
comparison
equal deleted inserted replaced
5484:34a3b852ec05 5485:1b4cb2c6b285
4232 * it under our fingers. */ 4232 * it under our fingers. */
4233 spl_copy = vim_strsave(wp->w_s->b_p_spl); 4233 spl_copy = vim_strsave(wp->w_s->b_p_spl);
4234 if (spl_copy == NULL) 4234 if (spl_copy == NULL)
4235 goto theend; 4235 goto theend;
4236 4236
4237 #ifdef FEAT_MBYTE
4237 wp->w_s->b_cjk = 0; 4238 wp->w_s->b_cjk = 0;
4239 #endif
4238 4240
4239 /* Loop over comma separated language names. */ 4241 /* Loop over comma separated language names. */
4240 for (splp = spl_copy; *splp != NUL; ) 4242 for (splp = spl_copy; *splp != NUL; )
4241 { 4243 {
4242 /* Get one language name. */ 4244 /* Get one language name. */
4244 region = NULL; 4246 region = NULL;
4245 len = (int)STRLEN(lang); 4247 len = (int)STRLEN(lang);
4246 4248
4247 if (STRCMP(lang, "cjk") == 0) 4249 if (STRCMP(lang, "cjk") == 0)
4248 { 4250 {
4251 #ifdef FEAT_MBYTE
4249 wp->w_s->b_cjk = 1; 4252 wp->w_s->b_cjk = 1;
4253 #endif
4250 continue; 4254 continue;
4251 } 4255 }
4252 4256
4253 /* If the name ends in ".spl" use it as the name of the spell file. 4257 /* If the name ends in ".spl" use it as the name of the spell file.
4254 * If there is a region name let "region" point to it and remove it 4258 * If there is a region name let "region" point to it and remove it