forked from aniani/vim
updated for version 7.4.188
Problem: SIZEOF_LONG clashes with similar defines in header files. Solution: Rename to a name starting with VIM_. Also for SIZEOF_INT.
This commit is contained in:
19
src/auto/configure
vendored
19
src/auto/configure
vendored
@@ -5199,9 +5199,19 @@ $as_echo "not found" >&6; }
|
|||||||
$as_echo_n "checking for mzscheme_base.c... " >&6; }
|
$as_echo_n "checking for mzscheme_base.c... " >&6; }
|
||||||
if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
|
if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
|
||||||
MZSCHEME_EXTRA="mzscheme_base.c"
|
MZSCHEME_EXTRA="mzscheme_base.c"
|
||||||
|
MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
|
||||||
|
MZSCHEME_MOD="++lib scheme/base"
|
||||||
else
|
else
|
||||||
if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
|
if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
|
||||||
MZSCHEME_EXTRA="mzscheme_base.c"
|
MZSCHEME_EXTRA="mzscheme_base.c"
|
||||||
|
MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
|
||||||
|
MZSCHEME_MOD="++lib scheme/base"
|
||||||
|
else
|
||||||
|
if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
|
||||||
|
MZSCHEME_EXTRA="mzscheme_base.c"
|
||||||
|
MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
|
||||||
|
MZSCHEME_MOD=""
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if test "X$MZSCHEME_EXTRA" != "X" ; then
|
if test "X$MZSCHEME_EXTRA" != "X" ; then
|
||||||
@@ -12323,6 +12333,15 @@ _ACEOF
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
#define VIM_SIZEOF_INT $ac_cv_sizeof_int
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
|
||||||
$as_echo_n "checking uint32_t is 32 bits... " >&6; }
|
$as_echo_n "checking uint32_t is 32 bits... " >&6; }
|
||||||
if test "$cross_compiling" = yes; then :
|
if test "$cross_compiling" = yes; then :
|
||||||
|
|||||||
@@ -37,10 +37,10 @@
|
|||||||
#undef UNIX
|
#undef UNIX
|
||||||
|
|
||||||
/* Defined to the size of an int */
|
/* Defined to the size of an int */
|
||||||
#undef SIZEOF_INT
|
#undef VIM_SIZEOF_INT
|
||||||
|
|
||||||
/* Defined to the size of a long */
|
/* Defined to the size of a long */
|
||||||
#undef SIZEOF_LONG
|
#undef VIM_SIZEOF_LONG
|
||||||
|
|
||||||
/* Defined to the size of off_t */
|
/* Defined to the size of off_t */
|
||||||
#undef SIZEOF_OFF_T
|
#undef SIZEOF_OFF_T
|
||||||
|
|||||||
@@ -3581,6 +3581,10 @@ AC_CHECK_SIZEOF([long])
|
|||||||
AC_CHECK_SIZEOF([time_t])
|
AC_CHECK_SIZEOF([time_t])
|
||||||
AC_CHECK_SIZEOF([off_t])
|
AC_CHECK_SIZEOF([off_t])
|
||||||
|
|
||||||
|
dnl Use different names to avoid clashing with other header files.
|
||||||
|
AC_DEFINE_UNQUOTED(VIM_SIZEOF_INT, [$ac_cv_sizeof_int])
|
||||||
|
AC_DEFINE_UNQUOTED(VIM_SIZEOF_LONG, [$ac_cv_sizeof_long])
|
||||||
|
|
||||||
dnl Make sure that uint32_t is really 32 bits unsigned.
|
dnl Make sure that uint32_t is really 32 bits unsigned.
|
||||||
AC_MSG_CHECKING([uint32_t is 32 bits])
|
AC_MSG_CHECKING([uint32_t is 32 bits])
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
|
|||||||
@@ -328,7 +328,7 @@
|
|||||||
*
|
*
|
||||||
* Disabled for EBCDIC as it requires multibyte.
|
* Disabled for EBCDIC as it requires multibyte.
|
||||||
*/
|
*/
|
||||||
#if defined(FEAT_BIG) && !defined(WIN16) && SIZEOF_INT >= 4 && !defined(EBCDIC)
|
#if defined(FEAT_BIG) && !defined(WIN16) && VIM_SIZEOF_INT >= 4 && !defined(EBCDIC)
|
||||||
# define FEAT_ARABIC
|
# define FEAT_ARABIC
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_ARABIC
|
#ifdef FEAT_ARABIC
|
||||||
@@ -640,7 +640,7 @@
|
|||||||
*/
|
*/
|
||||||
#if (defined(FEAT_NORMAL) || defined(FEAT_GUI_GTK) || defined(FEAT_ARABIC)) \
|
#if (defined(FEAT_NORMAL) || defined(FEAT_GUI_GTK) || defined(FEAT_ARABIC)) \
|
||||||
&& !defined(FEAT_MBYTE) && !defined(WIN16) \
|
&& !defined(FEAT_MBYTE) && !defined(WIN16) \
|
||||||
&& SIZEOF_INT >= 4 && !defined(EBCDIC)
|
&& VIM_SIZEOF_INT >= 4 && !defined(EBCDIC)
|
||||||
# define FEAT_MBYTE
|
# define FEAT_MBYTE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -661,7 +661,7 @@
|
|||||||
# define FEAT_MBYTE
|
# define FEAT_MBYTE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(FEAT_MBYTE) && SIZEOF_INT < 4 && !defined(PROTO)
|
#if defined(FEAT_MBYTE) && VIM_SIZEOF_INT < 4 && !defined(PROTO)
|
||||||
Error: Can only handle multi-byte feature with 32 bit int or larger
|
Error: Can only handle multi-byte feature with 32 bit int or larger
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1185,7 +1185,7 @@ retry:
|
|||||||
* The amount is limited by the fact that read() only can read
|
* The amount is limited by the fact that read() only can read
|
||||||
* upto max_unsigned characters (and other things).
|
* upto max_unsigned characters (and other things).
|
||||||
*/
|
*/
|
||||||
#if SIZEOF_INT <= 2
|
#if VIM_SIZEOF_INT <= 2
|
||||||
if (linerest >= 0x7ff0)
|
if (linerest >= 0x7ff0)
|
||||||
{
|
{
|
||||||
++split;
|
++split;
|
||||||
@@ -1197,7 +1197,7 @@ retry:
|
|||||||
{
|
{
|
||||||
if (!skip_read)
|
if (!skip_read)
|
||||||
{
|
{
|
||||||
#if SIZEOF_INT > 2
|
#if VIM_SIZEOF_INT > 2
|
||||||
# if defined(SSIZE_MAX) && (SSIZE_MAX < 0x10000L)
|
# if defined(SSIZE_MAX) && (SSIZE_MAX < 0x10000L)
|
||||||
size = SSIZE_MAX; /* use max I/O size, 52K */
|
size = SSIZE_MAX; /* use max I/O size, 52K */
|
||||||
# else
|
# else
|
||||||
|
|||||||
@@ -613,7 +613,7 @@ static struct
|
|||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02050000 \
|
# if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02050000 \
|
||||||
&& SIZEOF_SIZE_T != SIZEOF_INT
|
&& SIZEOF_SIZE_T != VIM_SIZEOF_INT
|
||||||
# ifdef Py_DEBUG
|
# ifdef Py_DEBUG
|
||||||
{"Py_InitModule4TraceRefs_64", (PYTHON_PROC*)&dll_Py_InitModule4},
|
{"Py_InitModule4TraceRefs_64", (PYTHON_PROC*)&dll_Py_InitModule4},
|
||||||
# else
|
# else
|
||||||
|
|||||||
@@ -89,9 +89,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20 \
|
#if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20 \
|
||||||
&& SIZEOF_INT < SIZEOF_LONG
|
&& VIM_SIZEOF_INT < VIM_SIZEOF_LONG
|
||||||
/* Ruby 2.0 defines a number of static functions which use rb_fix2int and
|
/* Ruby 2.0 defines a number of static functions which use rb_fix2int and
|
||||||
* rb_num2int if SIZEOF_INT < SIZEOF_LONG (64bit) */
|
* rb_num2int if VIM_SIZEOF_INT < VIM_SIZEOF_LONG (64bit) */
|
||||||
# define rb_fix2int rb_fix2int_stub
|
# define rb_fix2int rb_fix2int_stub
|
||||||
# define rb_num2int rb_num2int_stub
|
# define rb_num2int rb_num2int_stub
|
||||||
#endif
|
#endif
|
||||||
@@ -202,7 +202,7 @@ static void ruby_vim_init(void);
|
|||||||
# define rb_hash_new dll_rb_hash_new
|
# define rb_hash_new dll_rb_hash_new
|
||||||
# define rb_inspect dll_rb_inspect
|
# define rb_inspect dll_rb_inspect
|
||||||
# define rb_int2inum dll_rb_int2inum
|
# define rb_int2inum dll_rb_int2inum
|
||||||
# if SIZEOF_INT < SIZEOF_LONG /* 64 bits only */
|
# if VIM_SIZEOF_INT < VIM_SIZEOF_LONG /* 64 bits only */
|
||||||
# define rb_fix2int dll_rb_fix2int
|
# define rb_fix2int dll_rb_fix2int
|
||||||
# define rb_num2int dll_rb_num2int
|
# define rb_num2int dll_rb_num2int
|
||||||
# define rb_num2uint dll_rb_num2uint
|
# define rb_num2uint dll_rb_num2uint
|
||||||
@@ -310,7 +310,7 @@ static VALUE (*dll_rb_hash_aset) (VALUE, VALUE, VALUE);
|
|||||||
static VALUE (*dll_rb_hash_new) (void);
|
static VALUE (*dll_rb_hash_new) (void);
|
||||||
static VALUE (*dll_rb_inspect) (VALUE);
|
static VALUE (*dll_rb_inspect) (VALUE);
|
||||||
static VALUE (*dll_rb_int2inum) (long);
|
static VALUE (*dll_rb_int2inum) (long);
|
||||||
# if SIZEOF_INT < SIZEOF_LONG /* 64 bits only */
|
# if VIM_SIZEOF_INT < VIM_SIZEOF_LONG /* 64 bits only */
|
||||||
static long (*dll_rb_fix2int) (VALUE);
|
static long (*dll_rb_fix2int) (VALUE);
|
||||||
static long (*dll_rb_num2int) (VALUE);
|
static long (*dll_rb_num2int) (VALUE);
|
||||||
static unsigned long (*dll_rb_num2uint) (VALUE);
|
static unsigned long (*dll_rb_num2uint) (VALUE);
|
||||||
@@ -393,7 +393,7 @@ VALUE rb_int2big_stub(SIGNED_VALUE x)
|
|||||||
return dll_rb_int2big(x);
|
return dll_rb_int2big(x);
|
||||||
}
|
}
|
||||||
# if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20 \
|
# if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20 \
|
||||||
&& SIZEOF_INT < SIZEOF_LONG
|
&& VIM_SIZEOF_INT < VIM_SIZEOF_LONG
|
||||||
long rb_fix2int_stub(VALUE x)
|
long rb_fix2int_stub(VALUE x)
|
||||||
{
|
{
|
||||||
return dll_rb_fix2int(x);
|
return dll_rb_fix2int(x);
|
||||||
@@ -466,7 +466,7 @@ static struct
|
|||||||
{"rb_hash_new", (RUBY_PROC*)&dll_rb_hash_new},
|
{"rb_hash_new", (RUBY_PROC*)&dll_rb_hash_new},
|
||||||
{"rb_inspect", (RUBY_PROC*)&dll_rb_inspect},
|
{"rb_inspect", (RUBY_PROC*)&dll_rb_inspect},
|
||||||
{"rb_int2inum", (RUBY_PROC*)&dll_rb_int2inum},
|
{"rb_int2inum", (RUBY_PROC*)&dll_rb_int2inum},
|
||||||
# if SIZEOF_INT < SIZEOF_LONG /* 64 bits only */
|
# if VIM_SIZEOF_INT < VIM_SIZEOF_LONG /* 64 bits only */
|
||||||
{"rb_fix2int", (RUBY_PROC*)&dll_rb_fix2int},
|
{"rb_fix2int", (RUBY_PROC*)&dll_rb_fix2int},
|
||||||
{"rb_num2int", (RUBY_PROC*)&dll_rb_num2int},
|
{"rb_num2int", (RUBY_PROC*)&dll_rb_num2int},
|
||||||
{"rb_num2uint", (RUBY_PROC*)&dll_rb_num2uint},
|
{"rb_num2uint", (RUBY_PROC*)&dll_rb_num2uint},
|
||||||
|
|||||||
@@ -4376,7 +4376,7 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
|
|||||||
{
|
{
|
||||||
/* Don't put the #if inside memchr(), it can be a
|
/* Don't put the #if inside memchr(), it can be a
|
||||||
* macro. */
|
* macro. */
|
||||||
#if SIZEOF_INT <= 2
|
#if VIM_SIZEOF_INT <= 2
|
||||||
char *q = memchr(str_arg, '\0', precision);
|
char *q = memchr(str_arg, '\0', precision);
|
||||||
#else
|
#else
|
||||||
/* memchr on HP does not like n > 2^31 !!! */
|
/* memchr on HP does not like n > 2^31 !!! */
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
#undef UNIX /* define always by current configure script */
|
#undef UNIX /* define always by current configure script */
|
||||||
|
|
||||||
/* Defined to the size of an int */
|
/* Defined to the size of an int */
|
||||||
#define SIZEOF_INT 4
|
#define VIM_SIZEOF_INT 4
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we cannot trust one of the following from the libraries, we use our
|
* If we cannot trust one of the following from the libraries, we use our
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
#define HAVE_DATE_TIME
|
#define HAVE_DATE_TIME
|
||||||
|
|
||||||
/* Defined to the size of an int */
|
/* Defined to the size of an int */
|
||||||
#define SIZEOF_INT 4
|
#define VIM_SIZEOF_INT 4
|
||||||
|
|
||||||
/* #undef USEBCOPY */
|
/* #undef USEBCOPY */
|
||||||
#define USEMEMMOVE
|
#define USEMEMMOVE
|
||||||
|
|||||||
@@ -55,8 +55,8 @@
|
|||||||
|
|
||||||
#define FNAME_ILLEGAL "\"*?><|" /* illegal characters in a file name */
|
#define FNAME_ILLEGAL "\"*?><|" /* illegal characters in a file name */
|
||||||
|
|
||||||
#ifndef SIZEOF_INT
|
#ifndef VIM_SIZEOF_INT
|
||||||
# define SIZEOF_INT 2
|
# define VIM_SIZEOF_INT 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef long off_t;
|
typedef long off_t;
|
||||||
|
|||||||
@@ -317,7 +317,7 @@
|
|||||||
|
|
||||||
/* Type used for indexes in the word tree need to be at least 4 bytes. If int
|
/* Type used for indexes in the word tree need to be at least 4 bytes. If int
|
||||||
* is 8 bytes we could use something smaller, but what? */
|
* is 8 bytes we could use something smaller, but what? */
|
||||||
#if SIZEOF_INT > 3
|
#if VIM_SIZEOF_INT > 3
|
||||||
typedef int idx_T;
|
typedef int idx_T;
|
||||||
#else
|
#else
|
||||||
typedef long idx_T;
|
typedef long idx_T;
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ struct u_header
|
|||||||
/*
|
/*
|
||||||
* structures used in undo.c
|
* structures used in undo.c
|
||||||
*/
|
*/
|
||||||
#if SIZEOF_INT > 2
|
#if VIM_SIZEOF_INT > 2
|
||||||
# define ALIGN_LONG /* longword alignment and use filler byte */
|
# define ALIGN_LONG /* longword alignment and use filler byte */
|
||||||
# define ALIGN_SIZE (sizeof(long))
|
# define ALIGN_SIZE (sizeof(long))
|
||||||
#else
|
#else
|
||||||
@@ -1094,7 +1094,7 @@ typedef struct hashtable_S
|
|||||||
typedef long_u hash_T; /* Type for hi_hash */
|
typedef long_u hash_T; /* Type for hi_hash */
|
||||||
|
|
||||||
|
|
||||||
#if SIZEOF_INT <= 3 /* use long if int is smaller than 32 bits */
|
#if VIM_SIZEOF_INT <= 3 /* use long if int is smaller than 32 bits */
|
||||||
typedef long varnumber_T;
|
typedef long varnumber_T;
|
||||||
#else
|
#else
|
||||||
typedef int varnumber_T;
|
typedef int varnumber_T;
|
||||||
|
|||||||
@@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
188,
|
||||||
/**/
|
/**/
|
||||||
187,
|
187,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
28
src/vim.h
28
src/vim.h
@@ -43,7 +43,7 @@
|
|||||||
* it becomes zero. This is likely a problem of not being able to run the
|
* it becomes zero. This is likely a problem of not being able to run the
|
||||||
* test program. Other items from configure may also be wrong then!
|
* test program. Other items from configure may also be wrong then!
|
||||||
*/
|
*/
|
||||||
# if (SIZEOF_INT == 0)
|
# if (VIM_SIZEOF_INT == 0)
|
||||||
Error: configure did not run properly. Check auto/config.log.
|
Error: configure did not run properly. Check auto/config.log.
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
@@ -148,22 +148,22 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SIZEOF_INT is used in feature.h, and the system-specific included files
|
* VIM_SIZEOF_INT is used in feature.h, and the system-specific included files
|
||||||
* need items from feature.h. Therefore define SIZEOF_INT here.
|
* need items from feature.h. Therefore define VIM_SIZEOF_INT here.
|
||||||
*/
|
*/
|
||||||
#ifdef WIN3264
|
#ifdef WIN3264
|
||||||
# define SIZEOF_INT 4
|
# define VIM_SIZEOF_INT 4
|
||||||
#endif
|
#endif
|
||||||
#ifdef MSDOS
|
#ifdef MSDOS
|
||||||
# ifdef DJGPP
|
# ifdef DJGPP
|
||||||
# ifndef FEAT_GUI_GTK /* avoid problems when generating prototypes */
|
# ifndef FEAT_GUI_GTK /* avoid problems when generating prototypes */
|
||||||
# define SIZEOF_INT 4 /* 32 bit ints */
|
# define VIM_SIZEOF_INT 4 /* 32 bit ints */
|
||||||
# endif
|
# endif
|
||||||
# define DOS32
|
# define DOS32
|
||||||
# define FEAT_CLIPBOARD
|
# define FEAT_CLIPBOARD
|
||||||
# else
|
# else
|
||||||
# ifndef FEAT_GUI_GTK /* avoid problems when generating prototypes */
|
# ifndef FEAT_GUI_GTK /* avoid problems when generating prototypes */
|
||||||
# define SIZEOF_INT 2 /* 16 bit ints */
|
# define VIM_SIZEOF_INT 2 /* 16 bit ints */
|
||||||
# endif
|
# endif
|
||||||
# define SMALL_MALLOC /* 16 bit storage allocation */
|
# define SMALL_MALLOC /* 16 bit storage allocation */
|
||||||
# define DOS16
|
# define DOS16
|
||||||
@@ -174,18 +174,18 @@
|
|||||||
/* Be conservative about sizeof(int). It could be 4 too. */
|
/* Be conservative about sizeof(int). It could be 4 too. */
|
||||||
# ifndef FEAT_GUI_GTK /* avoid problems when generating prototypes */
|
# ifndef FEAT_GUI_GTK /* avoid problems when generating prototypes */
|
||||||
# ifdef __GNUC__
|
# ifdef __GNUC__
|
||||||
# define SIZEOF_INT 4
|
# define VIM_SIZEOF_INT 4
|
||||||
# else
|
# else
|
||||||
# define SIZEOF_INT 2
|
# define VIM_SIZEOF_INT 2
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef MACOS
|
#ifdef MACOS
|
||||||
# if defined(__POWERPC__) || defined(MACOS_X) || defined(__fourbyteints__) \
|
# if defined(__POWERPC__) || defined(MACOS_X) || defined(__fourbyteints__) \
|
||||||
|| defined(__MRC__) || defined(__SC__) || defined(__APPLE_CC__)/* MPW Compilers */
|
|| defined(__MRC__) || defined(__SC__) || defined(__APPLE_CC__)/* MPW Compilers */
|
||||||
# define SIZEOF_INT 4
|
# define VIM_SIZEOF_INT 4
|
||||||
# else
|
# else
|
||||||
# define SIZEOF_INT 2
|
# define VIM_SIZEOF_INT 2
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -417,12 +417,12 @@ typedef long __w64 long_i;
|
|||||||
#define PRINTF_DECIMAL_LONG_U SCANF_DECIMAL_LONG_U
|
#define PRINTF_DECIMAL_LONG_U SCANF_DECIMAL_LONG_U
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Only systems which use configure will have SIZEOF_OFF_T and SIZEOF_LONG
|
* Only systems which use configure will have SIZEOF_OFF_T and VIM_SIZEOF_LONG
|
||||||
* defined, which is ok since those are the same systems which can have
|
* defined, which is ok since those are the same systems which can have
|
||||||
* varying sizes for off_t. The other systems will continue to use "%ld" to
|
* varying sizes for off_t. The other systems will continue to use "%ld" to
|
||||||
* print off_t since off_t is simply a typedef to long for them.
|
* print off_t since off_t is simply a typedef to long for them.
|
||||||
*/
|
*/
|
||||||
#if defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T > SIZEOF_LONG)
|
#if defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T > VIM_SIZEOF_LONG)
|
||||||
# define LONG_LONG_OFF_T
|
# define LONG_LONG_OFF_T
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -448,7 +448,7 @@ typedef unsigned char sattr_T;
|
|||||||
# ifdef UNICODE16
|
# ifdef UNICODE16
|
||||||
typedef unsigned short u8char_T; /* short should be 16 bits */
|
typedef unsigned short u8char_T; /* short should be 16 bits */
|
||||||
# else
|
# else
|
||||||
# if SIZEOF_INT >= 4
|
# if VIM_SIZEOF_INT >= 4
|
||||||
typedef unsigned int u8char_T; /* int is 32 bits */
|
typedef unsigned int u8char_T; /* int is 32 bits */
|
||||||
# else
|
# else
|
||||||
typedef unsigned long u8char_T; /* long should be 32 bits or more */
|
typedef unsigned long u8char_T; /* long should be 32 bits or more */
|
||||||
@@ -1608,7 +1608,7 @@ typedef unsigned short disptick_T; /* display tick type */
|
|||||||
* With this we restrict the maximum line length to 1073741823. I guess this is
|
* With this we restrict the maximum line length to 1073741823. I guess this is
|
||||||
* not a real problem. BTW: Longer lines are split.
|
* not a real problem. BTW: Longer lines are split.
|
||||||
*/
|
*/
|
||||||
#if SIZEOF_INT >= 4
|
#if VIM_SIZEOF_INT >= 4
|
||||||
# ifdef __MVS__
|
# ifdef __MVS__
|
||||||
# define MAXCOL (0x3fffffffL) /* maximum column number, 30 bits */
|
# define MAXCOL (0x3fffffffL) /* maximum column number, 30 bits */
|
||||||
# else
|
# else
|
||||||
|
|||||||
Reference in New Issue
Block a user