summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-24 17:59:39 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-24 17:59:39 +0100
commit30276f2beb248557c6b33cd5418bca8b7084b0a5 (patch)
tree56f7b88712a5ffffdd10681983e70501e2e1ba58 /src/structs.h
parent264b74fa545edfb92c0d7d08a02c26331cc5b168 (diff)
patch 8.1.0811: too many #ifdefsv8.1.0811
Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, the final chapter.
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/structs.h b/src/structs.h
index 3216c580cc..e25ae17386 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -416,12 +416,8 @@ struct u_header
/*
* structures used in undo.c
*/
-#if VIM_SIZEOF_INT > 2
-# define ALIGN_LONG /* longword alignment and use filler byte */
-# define ALIGN_SIZE (sizeof(long))
-#else
-# define ALIGN_SIZE (sizeof(short))
-#endif
+#define ALIGN_LONG /* longword alignment and use filler byte */
+#define ALIGN_SIZE (sizeof(long))
#define ALIGN_MASK (ALIGN_SIZE - 1)
@@ -1229,19 +1225,11 @@ typedef unsigned long uvarnumber_T;
# endif
#else
/* Use 32-bit Number. */
-# if VIM_SIZEOF_INT <= 3 /* use long if int is smaller than 32 bits */
-typedef long varnumber_T;
-typedef unsigned long uvarnumber_T;
-#define VARNUM_MIN LONG_MIN
-#define VARNUM_MAX LONG_MAX
-#define UVARNUM_MAX ULONG_MAX
-# else
typedef int varnumber_T;
typedef unsigned int uvarnumber_T;
#define VARNUM_MIN INT_MIN
#define VARNUM_MAX INT_MAX
#define UVARNUM_MAX UINT_MAX
-# endif
#endif
typedef double float_T;