Blame SOURCES/7.4.188

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.188
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.188
22c937
Problem:    SIZEOF_LONG clashes with similar defines in header files.
22c937
Solution:   Rename to a name starting with VIM_.  Also for SIZEOF_INT.
22c937
Files:      src/if_ruby.c, src/vim.h, src/configure.in, src/auto/configure,
22c937
            src/config.h.in, src/fileio.c, src/if_python.c, src/message.c,
22c937
            src/spell.c, src/feature.h, src/os_os2_cfg.h, src/os_vms_conf.h,
22c937
            src/os_win16.h, src/structs.h
22c937
22c937
22c937
*** ../vim-7.4.187/src/if_ruby.c	2014-02-05 22:41:11.430582669 +0100
22c937
--- src/if_ruby.c	2014-02-23 21:55:03.516770208 +0100
22c937
***************
22c937
*** 89,97 ****
22c937
  #endif
22c937
  
22c937
  #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20 \
22c937
! 	&& SIZEOF_INT < SIZEOF_LONG
22c937
  /* Ruby 2.0 defines a number of static functions which use rb_fix2int and
22c937
!  * rb_num2int if SIZEOF_INT < SIZEOF_LONG (64bit) */
22c937
  # define rb_fix2int rb_fix2int_stub
22c937
  # define rb_num2int rb_num2int_stub
22c937
  #endif
22c937
--- 89,97 ----
22c937
  #endif
22c937
  
22c937
  #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20 \
22c937
! 	&& VIM_SIZEOF_INT < VIM_SIZEOF_LONG
22c937
  /* Ruby 2.0 defines a number of static functions which use rb_fix2int and
22c937
!  * rb_num2int if VIM_SIZEOF_INT < VIM_SIZEOF_LONG (64bit) */
22c937
  # define rb_fix2int rb_fix2int_stub
22c937
  # define rb_num2int rb_num2int_stub
22c937
  #endif
22c937
***************
22c937
*** 202,208 ****
22c937
  # define rb_hash_new			dll_rb_hash_new
22c937
  # define rb_inspect			dll_rb_inspect
22c937
  # define rb_int2inum			dll_rb_int2inum
22c937
! # if SIZEOF_INT < SIZEOF_LONG /* 64 bits only */
22c937
  #  define rb_fix2int			dll_rb_fix2int
22c937
  #  define rb_num2int			dll_rb_num2int
22c937
  #  define rb_num2uint			dll_rb_num2uint
22c937
--- 202,208 ----
22c937
  # define rb_hash_new			dll_rb_hash_new
22c937
  # define rb_inspect			dll_rb_inspect
22c937
  # define rb_int2inum			dll_rb_int2inum
22c937
! # if VIM_SIZEOF_INT < VIM_SIZEOF_LONG /* 64 bits only */
22c937
  #  define rb_fix2int			dll_rb_fix2int
22c937
  #  define rb_num2int			dll_rb_num2int
22c937
  #  define rb_num2uint			dll_rb_num2uint
22c937
***************
22c937
*** 310,316 ****
22c937
  static VALUE (*dll_rb_hash_new) (void);
22c937
  static VALUE (*dll_rb_inspect) (VALUE);
22c937
  static VALUE (*dll_rb_int2inum) (long);
22c937
! # if SIZEOF_INT < SIZEOF_LONG /* 64 bits only */
22c937
  static long (*dll_rb_fix2int) (VALUE);
22c937
  static long (*dll_rb_num2int) (VALUE);
22c937
  static unsigned long (*dll_rb_num2uint) (VALUE);
22c937
--- 310,316 ----
22c937
  static VALUE (*dll_rb_hash_new) (void);
22c937
  static VALUE (*dll_rb_inspect) (VALUE);
22c937
  static VALUE (*dll_rb_int2inum) (long);
22c937
! # if VIM_SIZEOF_INT < VIM_SIZEOF_LONG /* 64 bits only */
22c937
  static long (*dll_rb_fix2int) (VALUE);
22c937
  static long (*dll_rb_num2int) (VALUE);
22c937
  static unsigned long (*dll_rb_num2uint) (VALUE);
22c937
***************
22c937
*** 393,399 ****
22c937
      return dll_rb_int2big(x);
22c937
  }
22c937
  #  if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20 \
22c937
! 	&& SIZEOF_INT < SIZEOF_LONG
22c937
  long rb_fix2int_stub(VALUE x)
22c937
  {
22c937
      return dll_rb_fix2int(x);
22c937
--- 393,399 ----
22c937
      return dll_rb_int2big(x);
22c937
  }
22c937
  #  if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20 \
22c937
! 	&& VIM_SIZEOF_INT < VIM_SIZEOF_LONG
22c937
  long rb_fix2int_stub(VALUE x)
22c937
  {
22c937
      return dll_rb_fix2int(x);
22c937
***************
22c937
*** 466,472 ****
22c937
      {"rb_hash_new", (RUBY_PROC*)&dll_rb_hash_new},
22c937
      {"rb_inspect", (RUBY_PROC*)&dll_rb_inspect},
22c937
      {"rb_int2inum", (RUBY_PROC*)&dll_rb_int2inum},
22c937
! # if SIZEOF_INT < SIZEOF_LONG /* 64 bits only */
22c937
      {"rb_fix2int", (RUBY_PROC*)&dll_rb_fix2int},
22c937
      {"rb_num2int", (RUBY_PROC*)&dll_rb_num2int},
22c937
      {"rb_num2uint", (RUBY_PROC*)&dll_rb_num2uint},
22c937
--- 466,472 ----
22c937
      {"rb_hash_new", (RUBY_PROC*)&dll_rb_hash_new},
22c937
      {"rb_inspect", (RUBY_PROC*)&dll_rb_inspect},
22c937
      {"rb_int2inum", (RUBY_PROC*)&dll_rb_int2inum},
22c937
! # if VIM_SIZEOF_INT < VIM_SIZEOF_LONG /* 64 bits only */
22c937
      {"rb_fix2int", (RUBY_PROC*)&dll_rb_fix2int},
22c937
      {"rb_num2int", (RUBY_PROC*)&dll_rb_num2int},
22c937
      {"rb_num2uint", (RUBY_PROC*)&dll_rb_num2uint},
22c937
*** ../vim-7.4.187/src/vim.h	2014-01-14 16:54:53.000000000 +0100
22c937
--- src/vim.h	2014-02-23 21:58:23.764769890 +0100
22c937
***************
22c937
*** 43,49 ****
22c937
   * it becomes zero.  This is likely a problem of not being able to run the
22c937
   * test program.  Other items from configure may also be wrong then!
22c937
   */
22c937
! # if (SIZEOF_INT == 0)
22c937
      Error: configure did not run properly.  Check auto/config.log.
22c937
  # endif
22c937
  
22c937
--- 43,49 ----
22c937
   * it becomes zero.  This is likely a problem of not being able to run the
22c937
   * test program.  Other items from configure may also be wrong then!
22c937
   */
22c937
! # if (VIM_SIZEOF_INT == 0)
22c937
      Error: configure did not run properly.  Check auto/config.log.
22c937
  # endif
22c937
  
22c937
***************
22c937
*** 148,169 ****
22c937
  #endif
22c937
  
22c937
  /*
22c937
!  * SIZEOF_INT is used in feature.h, and the system-specific included files
22c937
!  * need items from feature.h.  Therefore define SIZEOF_INT here.
22c937
   */
22c937
  #ifdef WIN3264
22c937
! # define SIZEOF_INT 4
22c937
  #endif
22c937
  #ifdef MSDOS
22c937
  # ifdef DJGPP
22c937
  #  ifndef FEAT_GUI_GTK		/* avoid problems when generating prototypes */
22c937
! #   define SIZEOF_INT 4		/* 32 bit ints */
22c937
  #  endif
22c937
  #  define DOS32
22c937
  #  define FEAT_CLIPBOARD
22c937
  # else
22c937
  #  ifndef FEAT_GUI_GTK		/* avoid problems when generating prototypes */
22c937
! #   define SIZEOF_INT 2		/* 16 bit ints */
22c937
  #  endif
22c937
  #  define SMALL_MALLOC		/* 16 bit storage allocation */
22c937
  #  define DOS16
22c937
--- 148,169 ----
22c937
  #endif
22c937
  
22c937
  /*
22c937
!  * VIM_SIZEOF_INT is used in feature.h, and the system-specific included files
22c937
!  * need items from feature.h.  Therefore define VIM_SIZEOF_INT here.
22c937
   */
22c937
  #ifdef WIN3264
22c937
! # define VIM_SIZEOF_INT 4
22c937
  #endif
22c937
  #ifdef MSDOS
22c937
  # ifdef DJGPP
22c937
  #  ifndef FEAT_GUI_GTK		/* avoid problems when generating prototypes */
22c937
! #   define VIM_SIZEOF_INT 4	/* 32 bit ints */
22c937
  #  endif
22c937
  #  define DOS32
22c937
  #  define FEAT_CLIPBOARD
22c937
  # else
22c937
  #  ifndef FEAT_GUI_GTK		/* avoid problems when generating prototypes */
22c937
! #   define VIM_SIZEOF_INT 2	/* 16 bit ints */
22c937
  #  endif
22c937
  #  define SMALL_MALLOC		/* 16 bit storage allocation */
22c937
  #  define DOS16
22c937
***************
22c937
*** 174,191 ****
22c937
    /* Be conservative about sizeof(int). It could be 4 too. */
22c937
  # ifndef FEAT_GUI_GTK	/* avoid problems when generating prototypes */
22c937
  #  ifdef __GNUC__
22c937
! #   define SIZEOF_INT	4
22c937
  #  else
22c937
! #   define SIZEOF_INT	2
22c937
  #  endif
22c937
  # endif
22c937
  #endif
22c937
  #ifdef MACOS
22c937
  # if defined(__POWERPC__) || defined(MACOS_X) || defined(__fourbyteints__) \
22c937
    || defined(__MRC__) || defined(__SC__) || defined(__APPLE_CC__)/* MPW Compilers */
22c937
! #  define SIZEOF_INT 4
22c937
  # else
22c937
! #  define SIZEOF_INT 2
22c937
  # endif
22c937
  #endif
22c937
  
22c937
--- 174,191 ----
22c937
    /* Be conservative about sizeof(int). It could be 4 too. */
22c937
  # ifndef FEAT_GUI_GTK	/* avoid problems when generating prototypes */
22c937
  #  ifdef __GNUC__
22c937
! #   define VIM_SIZEOF_INT	4
22c937
  #  else
22c937
! #   define VIM_SIZEOF_INT	2
22c937
  #  endif
22c937
  # endif
22c937
  #endif
22c937
  #ifdef MACOS
22c937
  # if defined(__POWERPC__) || defined(MACOS_X) || defined(__fourbyteints__) \
22c937
    || defined(__MRC__) || defined(__SC__) || defined(__APPLE_CC__)/* MPW Compilers */
22c937
! #  define VIM_SIZEOF_INT 4
22c937
  # else
22c937
! #  define VIM_SIZEOF_INT 2
22c937
  # endif
22c937
  #endif
22c937
  
22c937
***************
22c937
*** 417,428 ****
22c937
  #define PRINTF_DECIMAL_LONG_U SCANF_DECIMAL_LONG_U
22c937
  
22c937
  /*
22c937
!  * Only systems which use configure will have SIZEOF_OFF_T and SIZEOF_LONG
22c937
   * defined, which is ok since those are the same systems which can have
22c937
   * varying sizes for off_t.  The other systems will continue to use "%ld" to
22c937
   * print off_t since off_t is simply a typedef to long for them.
22c937
   */
22c937
! #if defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T > SIZEOF_LONG)
22c937
  # define LONG_LONG_OFF_T
22c937
  #endif
22c937
  
22c937
--- 417,428 ----
22c937
  #define PRINTF_DECIMAL_LONG_U SCANF_DECIMAL_LONG_U
22c937
  
22c937
  /*
22c937
!  * Only systems which use configure will have SIZEOF_OFF_T and VIM_SIZEOF_LONG
22c937
   * defined, which is ok since those are the same systems which can have
22c937
   * varying sizes for off_t.  The other systems will continue to use "%ld" to
22c937
   * print off_t since off_t is simply a typedef to long for them.
22c937
   */
22c937
! #if defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T > VIM_SIZEOF_LONG)
22c937
  # define LONG_LONG_OFF_T
22c937
  #endif
22c937
  
22c937
***************
22c937
*** 448,454 ****
22c937
  # ifdef UNICODE16
22c937
  typedef unsigned short u8char_T;    /* short should be 16 bits */
22c937
  # else
22c937
! #  if SIZEOF_INT >= 4
22c937
  typedef unsigned int u8char_T;	    /* int is 32 bits */
22c937
  #  else
22c937
  typedef unsigned long u8char_T;	    /* long should be 32 bits or more */
22c937
--- 448,454 ----
22c937
  # ifdef UNICODE16
22c937
  typedef unsigned short u8char_T;    /* short should be 16 bits */
22c937
  # else
22c937
! #  if VIM_SIZEOF_INT >= 4
22c937
  typedef unsigned int u8char_T;	    /* int is 32 bits */
22c937
  #  else
22c937
  typedef unsigned long u8char_T;	    /* long should be 32 bits or more */
22c937
***************
22c937
*** 1608,1614 ****
22c937
   * With this we restrict the maximum line length to 1073741823. I guess this is
22c937
   * not a real problem. BTW:  Longer lines are split.
22c937
   */
22c937
! #if SIZEOF_INT >= 4
22c937
  # ifdef __MVS__
22c937
  #  define MAXCOL (0x3fffffffL)		/* maximum column number, 30 bits */
22c937
  # else
22c937
--- 1608,1614 ----
22c937
   * With this we restrict the maximum line length to 1073741823. I guess this is
22c937
   * not a real problem. BTW:  Longer lines are split.
22c937
   */
22c937
! #if VIM_SIZEOF_INT >= 4
22c937
  # ifdef __MVS__
22c937
  #  define MAXCOL (0x3fffffffL)		/* maximum column number, 30 bits */
22c937
  # else
22c937
*** ../vim-7.4.187/src/configure.in	2014-02-15 17:18:56.953897128 +0100
22c937
--- src/configure.in	2014-02-23 22:37:40.080766138 +0100
22c937
***************
22c937
*** 3581,3586 ****
22c937
--- 3581,3590 ----
22c937
  AC_CHECK_SIZEOF([time_t])
22c937
  AC_CHECK_SIZEOF([off_t])
22c937
  
22c937
+ dnl Use different names to avoid clashing with other header files.
22c937
+ AC_DEFINE_UNQUOTED(VIM_SIZEOF_INT, [$ac_cv_sizeof_int])
22c937
+ AC_DEFINE_UNQUOTED(VIM_SIZEOF_LONG, [$ac_cv_sizeof_long])
22c937
+ 
22c937
  dnl Make sure that uint32_t is really 32 bits unsigned.
22c937
  AC_MSG_CHECKING([uint32_t is 32 bits])
22c937
  AC_TRY_RUN([
22c937
*** ../vim-7.4.187/src/auto/configure	2013-11-21 12:17:46.000000000 +0100
22c937
--- src/auto/configure	2014-02-23 22:37:43.692766132 +0100
22c937
***************
22c937
*** 5199,5207 ****
22c937
--- 5199,5217 ----
22c937
  $as_echo_n "checking for mzscheme_base.c... " >&6; }
22c937
      if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
22c937
        MZSCHEME_EXTRA="mzscheme_base.c"
22c937
+       MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
22c937
+       MZSCHEME_MOD="++lib scheme/base"
22c937
      else
22c937
        if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
22c937
  	MZSCHEME_EXTRA="mzscheme_base.c"
22c937
+ 	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
22c937
+ 	MZSCHEME_MOD="++lib scheme/base"
22c937
+       else
22c937
+ 	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
22c937
+ 	  MZSCHEME_EXTRA="mzscheme_base.c"
22c937
+ 	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
22c937
+ 	  MZSCHEME_MOD=""
22c937
+ 	fi
22c937
        fi
22c937
      fi
22c937
      if test "X$MZSCHEME_EXTRA" != "X" ; then
22c937
***************
22c937
*** 12323,12328 ****
22c937
--- 12333,12347 ----
22c937
  
22c937
  
22c937
  
22c937
+ cat >>confdefs.h <<_ACEOF
22c937
+ #define VIM_SIZEOF_INT $ac_cv_sizeof_int
22c937
+ _ACEOF
22c937
+ 
22c937
+ cat >>confdefs.h <<_ACEOF
22c937
+ #define VIM_SIZEOF_LONG $ac_cv_sizeof_long
22c937
+ _ACEOF
22c937
+ 
22c937
+ 
22c937
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
22c937
  $as_echo_n "checking uint32_t is 32 bits... " >&6; }
22c937
  if test "$cross_compiling" = yes; then :
22c937
*** ../vim-7.4.187/src/config.h.in	2013-11-02 21:04:32.000000000 +0100
22c937
--- src/config.h.in	2014-02-23 21:45:36.784771111 +0100
22c937
***************
22c937
*** 37,46 ****
22c937
  #undef UNIX
22c937
  
22c937
  /* Defined to the size of an int */
22c937
! #undef SIZEOF_INT
22c937
  
22c937
  /* Defined to the size of a long */
22c937
! #undef SIZEOF_LONG
22c937
  
22c937
  /* Defined to the size of off_t */
22c937
  #undef SIZEOF_OFF_T
22c937
--- 37,46 ----
22c937
  #undef UNIX
22c937
  
22c937
  /* Defined to the size of an int */
22c937
! #undef VIM_SIZEOF_INT
22c937
  
22c937
  /* Defined to the size of a long */
22c937
! #undef VIM_SIZEOF_LONG
22c937
  
22c937
  /* Defined to the size of off_t */
22c937
  #undef SIZEOF_OFF_T
22c937
*** ../vim-7.4.187/src/fileio.c	2014-02-11 15:23:27.938123631 +0100
22c937
--- src/fileio.c	2014-02-23 22:31:00.824766773 +0100
22c937
***************
22c937
*** 1185,1191 ****
22c937
  	 * The amount is limited by the fact that read() only can read
22c937
  	 * upto max_unsigned characters (and other things).
22c937
  	 */
22c937
! #if SIZEOF_INT <= 2
22c937
  	if (linerest >= 0x7ff0)
22c937
  	{
22c937
  	    ++split;
22c937
--- 1185,1191 ----
22c937
  	 * The amount is limited by the fact that read() only can read
22c937
  	 * upto max_unsigned characters (and other things).
22c937
  	 */
22c937
! #if VIM_SIZEOF_INT <= 2
22c937
  	if (linerest >= 0x7ff0)
22c937
  	{
22c937
  	    ++split;
22c937
***************
22c937
*** 1197,1203 ****
22c937
  	{
22c937
  	    if (!skip_read)
22c937
  	    {
22c937
! #if SIZEOF_INT > 2
22c937
  # if defined(SSIZE_MAX) && (SSIZE_MAX < 0x10000L)
22c937
  		size = SSIZE_MAX;		    /* use max I/O size, 52K */
22c937
  # else
22c937
--- 1197,1203 ----
22c937
  	{
22c937
  	    if (!skip_read)
22c937
  	    {
22c937
! #if VIM_SIZEOF_INT > 2
22c937
  # if defined(SSIZE_MAX) && (SSIZE_MAX < 0x10000L)
22c937
  		size = SSIZE_MAX;		    /* use max I/O size, 52K */
22c937
  # else
22c937
*** ../vim-7.4.187/src/if_python.c	2014-01-14 19:35:49.000000000 +0100
22c937
--- src/if_python.c	2014-02-23 21:54:39.212770247 +0100
22c937
***************
22c937
*** 613,619 ****
22c937
  #  endif
22c937
  # endif
22c937
  # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02050000 \
22c937
! 	&& SIZEOF_SIZE_T != SIZEOF_INT
22c937
  #  ifdef Py_DEBUG
22c937
      {"Py_InitModule4TraceRefs_64", (PYTHON_PROC*)&dll_Py_InitModule4},
22c937
  #  else
22c937
--- 613,619 ----
22c937
  #  endif
22c937
  # endif
22c937
  # if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02050000 \
22c937
! 	&& SIZEOF_SIZE_T != VIM_SIZEOF_INT
22c937
  #  ifdef Py_DEBUG
22c937
      {"Py_InitModule4TraceRefs_64", (PYTHON_PROC*)&dll_Py_InitModule4},
22c937
  #  else
22c937
*** ../vim-7.4.187/src/message.c	2013-11-04 02:00:55.000000000 +0100
22c937
--- src/message.c	2014-02-23 21:55:16.984770187 +0100
22c937
***************
22c937
*** 4376,4382 ****
22c937
  		    {
22c937
  			/* Don't put the #if inside memchr(), it can be a
22c937
  			 * macro. */
22c937
! #if SIZEOF_INT <= 2
22c937
  			char *q = memchr(str_arg, '\0', precision);
22c937
  #else
22c937
  			/* memchr on HP does not like n > 2^31  !!! */
22c937
--- 4376,4382 ----
22c937
  		    {
22c937
  			/* Don't put the #if inside memchr(), it can be a
22c937
  			 * macro. */
22c937
! #if VIM_SIZEOF_INT <= 2
22c937
  			char *q = memchr(str_arg, '\0', precision);
22c937
  #else
22c937
  			/* memchr on HP does not like n > 2^31  !!! */
22c937
*** ../vim-7.4.187/src/spell.c	2013-11-28 17:41:41.000000000 +0100
22c937
--- src/spell.c	2014-02-23 21:55:24.600770175 +0100
22c937
***************
22c937
*** 317,323 ****
22c937
  
22c937
  /* Type used for indexes in the word tree need to be at least 4 bytes.  If int
22c937
   * is 8 bytes we could use something smaller, but what? */
22c937
! #if SIZEOF_INT > 3
22c937
  typedef int idx_T;
22c937
  #else
22c937
  typedef long idx_T;
22c937
--- 317,323 ----
22c937
  
22c937
  /* Type used for indexes in the word tree need to be at least 4 bytes.  If int
22c937
   * is 8 bytes we could use something smaller, but what? */
22c937
! #if VIM_SIZEOF_INT > 3
22c937
  typedef int idx_T;
22c937
  #else
22c937
  typedef long idx_T;
22c937
*** ../vim-7.4.187/src/feature.h	2013-05-18 20:18:20.000000000 +0200
22c937
--- src/feature.h	2014-02-23 21:55:54.868770127 +0100
22c937
***************
22c937
*** 328,334 ****
22c937
   *
22c937
   * Disabled for EBCDIC as it requires multibyte.
22c937
   */
22c937
! #if defined(FEAT_BIG) && !defined(WIN16) && SIZEOF_INT >= 4 && !defined(EBCDIC)
22c937
  # define FEAT_ARABIC
22c937
  #endif
22c937
  #ifdef FEAT_ARABIC
22c937
--- 328,334 ----
22c937
   *
22c937
   * Disabled for EBCDIC as it requires multibyte.
22c937
   */
22c937
! #if defined(FEAT_BIG) && !defined(WIN16) && VIM_SIZEOF_INT >= 4 && !defined(EBCDIC)
22c937
  # define FEAT_ARABIC
22c937
  #endif
22c937
  #ifdef FEAT_ARABIC
22c937
***************
22c937
*** 640,646 ****
22c937
   */
22c937
  #if (defined(FEAT_NORMAL) || defined(FEAT_GUI_GTK) || defined(FEAT_ARABIC)) \
22c937
  	&& !defined(FEAT_MBYTE) && !defined(WIN16) \
22c937
! 	&& SIZEOF_INT >= 4 && !defined(EBCDIC)
22c937
  # define FEAT_MBYTE
22c937
  #endif
22c937
  
22c937
--- 640,646 ----
22c937
   */
22c937
  #if (defined(FEAT_NORMAL) || defined(FEAT_GUI_GTK) || defined(FEAT_ARABIC)) \
22c937
  	&& !defined(FEAT_MBYTE) && !defined(WIN16) \
22c937
! 	&& VIM_SIZEOF_INT >= 4 && !defined(EBCDIC)
22c937
  # define FEAT_MBYTE
22c937
  #endif
22c937
  
22c937
***************
22c937
*** 661,667 ****
22c937
  # define FEAT_MBYTE
22c937
  #endif
22c937
  
22c937
! #if defined(FEAT_MBYTE) && SIZEOF_INT < 4 && !defined(PROTO)
22c937
  	Error: Can only handle multi-byte feature with 32 bit int or larger
22c937
  #endif
22c937
  
22c937
--- 661,667 ----
22c937
  # define FEAT_MBYTE
22c937
  #endif
22c937
  
22c937
! #if defined(FEAT_MBYTE) && VIM_SIZEOF_INT < 4 && !defined(PROTO)
22c937
  	Error: Can only handle multi-byte feature with 32 bit int or larger
22c937
  #endif
22c937
  
22c937
*** ../vim-7.4.187/src/os_os2_cfg.h	2010-05-15 13:04:11.000000000 +0200
22c937
--- src/os_os2_cfg.h	2014-02-23 21:56:03.540770113 +0100
22c937
***************
22c937
*** 47,53 ****
22c937
  #undef UNIX	/* define always by current configure script */
22c937
  
22c937
  /* Defined to the size of an int */
22c937
! #define SIZEOF_INT 4
22c937
  
22c937
  /*
22c937
   * If we cannot trust one of the following from the libraries, we use our
22c937
--- 47,53 ----
22c937
  #undef UNIX	/* define always by current configure script */
22c937
  
22c937
  /* Defined to the size of an int */
22c937
! #define VIM_SIZEOF_INT 4
22c937
  
22c937
  /*
22c937
   * If we cannot trust one of the following from the libraries, we use our
22c937
*** ../vim-7.4.187/src/os_vms_conf.h	2010-07-28 19:07:48.000000000 +0200
22c937
--- src/os_vms_conf.h	2014-02-23 21:56:20.700770086 +0100
22c937
***************
22c937
*** 23,29 ****
22c937
  #define HAVE_DATE_TIME
22c937
  
22c937
  /* Defined to the size of an int */
22c937
! #define SIZEOF_INT 4
22c937
  
22c937
  /* #undef USEBCOPY */
22c937
  #define USEMEMMOVE
22c937
--- 23,29 ----
22c937
  #define HAVE_DATE_TIME
22c937
  
22c937
  /* Defined to the size of an int */
22c937
! #define VIM_SIZEOF_INT 4
22c937
  
22c937
  /* #undef USEBCOPY */
22c937
  #define USEMEMMOVE
22c937
*** ../vim-7.4.187/src/os_win16.h	2013-05-06 04:06:04.000000000 +0200
22c937
--- src/os_win16.h	2014-02-23 21:56:39.292770056 +0100
22c937
***************
22c937
*** 55,62 ****
22c937
  
22c937
  #define FNAME_ILLEGAL "\"*?><|" /* illegal characters in a file name */
22c937
  
22c937
! #ifndef SIZEOF_INT
22c937
! # define SIZEOF_INT 2
22c937
  #endif
22c937
  
22c937
  typedef long off_t;
22c937
--- 55,62 ----
22c937
  
22c937
  #define FNAME_ILLEGAL "\"*?><|" /* illegal characters in a file name */
22c937
  
22c937
! #ifndef VIM_SIZEOF_INT
22c937
! # define VIM_SIZEOF_INT 2
22c937
  #endif
22c937
  
22c937
  typedef long off_t;
22c937
*** ../vim-7.4.187/src/structs.h	2014-02-22 23:03:48.716901208 +0100
22c937
--- src/structs.h	2014-02-23 21:57:17.680769995 +0100
22c937
***************
22c937
*** 364,370 ****
22c937
  /*
22c937
   * structures used in undo.c
22c937
   */
22c937
! #if SIZEOF_INT > 2
22c937
  # define ALIGN_LONG	/* longword alignment and use filler byte */
22c937
  # define ALIGN_SIZE (sizeof(long))
22c937
  #else
22c937
--- 364,370 ----
22c937
  /*
22c937
   * structures used in undo.c
22c937
   */
22c937
! #if VIM_SIZEOF_INT > 2
22c937
  # define ALIGN_LONG	/* longword alignment and use filler byte */
22c937
  # define ALIGN_SIZE (sizeof(long))
22c937
  #else
22c937
***************
22c937
*** 1094,1100 ****
22c937
  typedef long_u hash_T;		/* Type for hi_hash */
22c937
  
22c937
  
22c937
! #if SIZEOF_INT <= 3		/* use long if int is smaller than 32 bits */
22c937
  typedef long	varnumber_T;
22c937
  #else
22c937
  typedef int	varnumber_T;
22c937
--- 1094,1100 ----
22c937
  typedef long_u hash_T;		/* Type for hi_hash */
22c937
  
22c937
  
22c937
! #if VIM_SIZEOF_INT <= 3		/* use long if int is smaller than 32 bits */
22c937
  typedef long	varnumber_T;
22c937
  #else
22c937
  typedef int	varnumber_T;
22c937
*** ../vim-7.4.187/src/version.c	2014-02-22 23:49:30.268896843 +0100
22c937
--- src/version.c	2014-02-23 22:40:55.708765826 +0100
22c937
***************
22c937
*** 740,741 ****
22c937
--- 740,743 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     188,
22c937
  /**/
22c937
22c937
-- 
22c937
I'm sure that I asked CBuilder to do a "full" install.  Looks like I got
22c937
a "fool" install, instead.		Charles E Campbell, Jr, PhD
22c937
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///