Mercurial > vim
comparison src/vim.h @ 2241:60da25e3aab7 vim73
Correct use of long instead of off_t for file size. (James Vega)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 31 May 2010 21:59:46 +0200 |
parents | 120502692d82 |
children | 1bac28a53fae |
comparison
equal
deleted
inserted
replaced
2240:6b4879aea261 | 2241:60da25e3aab7 |
---|---|
407 # define SCANF_HEX_LONG_U "%lx" | 407 # define SCANF_HEX_LONG_U "%lx" |
408 # define SCANF_DECIMAL_LONG_U "%lu" | 408 # define SCANF_DECIMAL_LONG_U "%lu" |
409 # define PRINTF_HEX_LONG_U "0x%lx" | 409 # define PRINTF_HEX_LONG_U "0x%lx" |
410 #endif | 410 #endif |
411 #define PRINTF_DECIMAL_LONG_U SCANF_DECIMAL_LONG_U | 411 #define PRINTF_DECIMAL_LONG_U SCANF_DECIMAL_LONG_U |
412 | |
413 /* | |
414 * Only systems which use configure will have SIZEOF_OFF_T and SIZEOF_LONG | |
415 * defined, which is ok since those are the same systems which can have | |
416 * varying sizes for off_t. The other systems will continue to use "%ld" to | |
417 * print off_t since off_t is simply a typedef to long for them. | |
418 */ | |
419 #if defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T > SIZEOF_LONG) | |
420 # define LONG_LONG_OFF_T | |
421 #endif | |
412 | 422 |
413 /* | 423 /* |
414 * The characters and attributes cached for the screen. | 424 * The characters and attributes cached for the screen. |
415 */ | 425 */ |
416 typedef char_u schar_T; | 426 typedef char_u schar_T; |