svn update revision 844 fails to build when FEAT_MBYTE is undefined.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

svn update revision 844 fails to build when FEAT_MBYTE is undefined.

Anand Hariharan

Here is the relevant build log:

gui.c: In function 'gui_screenstr':
gui.c:1913: error: 'enc_utf8' undeclared (first use in this function)
gui.c:1913: error: (Each undeclared identifier is reported only once
gui.c:1913: error: for each function it appears in.)
gui.c:1915: error: 'MB_MAXBYTES' undeclared (first use in this
function)
gui.c:1924: error: 'ScreenLinesUC' undeclared (first use in this
function)
gui.c:1936: error: 'enc_dbcs' undeclared (first use in this function)
gui.c:1948: error: 'ScreenLines2' undeclared (first use in this
function)
gui.c: In function 'gui_redraw_block':
gui.c:2520: error: 'enc_utf8' undeclared (first use in this function)
make: *** [objects/gui.o] Error 1


And the changes I made to feature.h:

Index: feature.h
===================================================================
--- feature.h   (revision 844)
+++ feature.h   (working copy)
@@ -606,7 +606,7 @@
  *                     (only when "lang" archive unpacked)
  */
 #ifdef FEAT_NORMAL
-# define FEAT_MULTI_LANG
+# undef FEAT_MULTI_LANG
 #endif
 #if defined(HAVE_GETTEXT) && defined(FEAT_MULTI_LANG) \
        && (defined(HAVE_LOCALE_H) || defined(X_LOCALE))
@@ -623,7 +623,7 @@
 #if (defined(FEAT_BIG) || defined(HAVE_GTK2) || defined(FEAT_ARABIC))
\
        && !defined(FEAT_MBYTE) && !defined(WIN16) \
        && SIZEOF_INT >= 4 && !defined(EBCDIC)
-# define FEAT_MBYTE
+# undef FEAT_MBYTE
 #endif

 /* Define this if you want to use 16 bit Unicode only, reduces memory
used for
@@ -650,7 +650,7 @@
 /* Use iconv() when it's available. */
 #if defined(FEAT_MBYTE) && ((defined(HAVE_ICONV_H) &&
defined(HAVE_ICONV)) \
                || defined(DYNAMIC_ICONV))
-# define USE_ICONV
+# undef USE_ICONV
 #endif

 /*


Would appreciate if folks could let me know if undefining FEAT_MBYTE
is supported.

thanks,
- Anand
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_multibyte" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: svn update revision 844 fails to build when FEAT_MBYTE is undefined.

Bram Moolenaar


Anand Hariharan wrote:

> Here is the relevant build log:
>
> gui.c: In function 'gui_screenstr':
> gui.c:1913: error: 'enc_utf8' undeclared (first use in this function)
> gui.c:1913: error: (Each undeclared identifier is reported only once
> gui.c:1913: error: for each function it appears in.)
> gui.c:1915: error: 'MB_MAXBYTES' undeclared (first use in this
> function)
> gui.c:1924: error: 'ScreenLinesUC' undeclared (first use in this
> function)
> gui.c:1936: error: 'enc_dbcs' undeclared (first use in this function)
> gui.c:1948: error: 'ScreenLines2' undeclared (first use in this
> function)
> gui.c: In function 'gui_redraw_block':
> gui.c:2520: error: 'enc_utf8' undeclared (first use in this function)
> make: *** [objects/gui.o] Error 1
>
>
> And the changes I made to feature.h:
>
> Index: feature.h
> ===================================================================
> --- feature.h   (revision 844)
> +++ feature.h   (working copy)
> @@ -606,7 +606,7 @@
>   *                     (only when "lang" archive unpacked)
>   */
>  #ifdef FEAT_NORMAL
> -# define FEAT_MULTI_LANG
> +# undef FEAT_MULTI_LANG
>  #endif
>  #if defined(HAVE_GETTEXT) && defined(FEAT_MULTI_LANG) \
>         && (defined(HAVE_LOCALE_H) || defined(X_LOCALE))
> @@ -623,7 +623,7 @@
>  #if (defined(FEAT_BIG) || defined(HAVE_GTK2) || defined(FEAT_ARABIC))
> \
>         && !defined(FEAT_MBYTE) && !defined(WIN16) \
>         && SIZEOF_INT >= 4 && !defined(EBCDIC)
> -# define FEAT_MBYTE
> +# undef FEAT_MBYTE
>  #endif
>
>  /* Define this if you want to use 16 bit Unicode only, reduces memory
> used for
> @@ -650,7 +650,7 @@
>  /* Use iconv() when it's available. */
>  #if defined(FEAT_MBYTE) && ((defined(HAVE_ICONV_H) &&
> defined(HAVE_ICONV)) \
>                 || defined(DYNAMIC_ICONV))
> -# define USE_ICONV
> +# undef USE_ICONV
>  #endif
>
>  /*
>
>
> Would appreciate if folks could let me know if undefining FEAT_MBYTE
> is supported.

GTK 2 is utf-8 based.  Thus if you build with GTK 2 you must build with
FEAT_MBYTE.

--
SOLDIER: Where did you get the coconuts?
ARTHUR:  Through ... We found them.
SOLDIER: Found them?  In Mercea.  The coconut's tropical!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_multibyte" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: svn update revision 844 fails to build when FEAT_MBYTE is undefined.

Anand Hariharan



On Jan 22, 4:09 pm, Bram Moolenaar <[hidden email]> wrote:
> Anand Hariharan wrote:
(...)
> > Would appreciate if folks could let me know if undefining FEAT_MBYTE
> > is supported.
>
> GTK 2 is utf-8 based.  Thus if you build with GTK 2 you must build with
> FEAT_MBYTE.
>

Thank you for the prompt reply, Bram.  God bless you for your ICCF
efforts.

sincerely,
- Anand
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_multibyte" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---