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