comparison src/structs.h @ 5684:136f05449f29 v7.4.188

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.
author Bram Moolenaar <bram@vim.org>
date Sun, 23 Feb 2014 22:52:40 +0100
parents 4d12112c5efa
children 06e5f65c34d8
comparison
equal deleted inserted replaced
5683:ad27683db066 5684:136f05449f29
362 #define UH_EMPTYBUF 0x02 /* buffer was empty */ 362 #define UH_EMPTYBUF 0x02 /* buffer was empty */
363 363
364 /* 364 /*
365 * structures used in undo.c 365 * structures used in undo.c
366 */ 366 */
367 #if SIZEOF_INT > 2 367 #if VIM_SIZEOF_INT > 2
368 # define ALIGN_LONG /* longword alignment and use filler byte */ 368 # define ALIGN_LONG /* longword alignment and use filler byte */
369 # define ALIGN_SIZE (sizeof(long)) 369 # define ALIGN_SIZE (sizeof(long))
370 #else 370 #else
371 # define ALIGN_SIZE (sizeof(short)) 371 # define ALIGN_SIZE (sizeof(short))
372 #endif 372 #endif
1092 } hashtab_T; 1092 } hashtab_T;
1093 1093
1094 typedef long_u hash_T; /* Type for hi_hash */ 1094 typedef long_u hash_T; /* Type for hi_hash */
1095 1095
1096 1096
1097 #if SIZEOF_INT <= 3 /* use long if int is smaller than 32 bits */ 1097 #if VIM_SIZEOF_INT <= 3 /* use long if int is smaller than 32 bits */
1098 typedef long varnumber_T; 1098 typedef long varnumber_T;
1099 #else 1099 #else
1100 typedef int varnumber_T; 1100 typedef int varnumber_T;
1101 #endif 1101 #endif
1102 typedef double float_T; 1102 typedef double float_T;