Hi,
2013/11/14 Thu 4:37:57 UTC+9 John Marriott wrote:
> Hi All,
>
> This patch fails to build on (HP-UP in my case) if FEAT_MBYTE is not
> definedlike so:
> cc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -o objects/spell.o spell.c
> cc: "spell.c", line 4237: error 1588: "b_cjk" undefined.
> cc: "spell.c", line 4237: error 1531: Invalid member of struct or union.
> cc: "spell.c", line 4249: error 1531: Invalid member of struct or union.
> *** Error exit code 1
>
> I haven't had time to make a patch sorry.
>
> Cheers
> John
Sorry for this. It's my mistake.
Please try this patch.
Regards,
Ken Takata
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
# HG changeset patch
# Parent 5d91d4dbbb46799342f635146641ad925f86e151
diff --git a/src/spell.c b/src/spell.c
--- a/src/spell.c
+++ b/src/spell.c
@@ -4234,7 +4234,9 @@
if (spl_copy == NULL)
goto theend;
+#ifdef FEAT_MBYTE
wp->w_s->b_cjk = 0;
+#endif
/* Loop over comma separated language names. */
for (splp = spl_copy; *splp != NUL; )
@@ -4244,11 +4246,13 @@
region = NULL;
len = (int)STRLEN(lang);
+#ifdef FEAT_MBYTE
if (STRCMP(lang, "cjk") == 0)
{
wp->w_s->b_cjk = 1;
continue;
}
+#endif
/* If the name ends in ".spl" use it as the name of the spell file.
* If there is a region name let "region" point to it and remove it