Mercurial > vim
comparison src/structs.h @ 9347:25c562442f8c v7.4.1955
commit https://github.com/vim/vim/commit/f4fba6dcd508cb369ffa6916d9cb3fcf3d7ed548
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 26 16:44:24 2016 +0200
patch 7.4.1955
Problem: Using 32-bit Perl with 64-bit time_t causes memory corruption.
(Christian Brabandt)
Solution: Use time_T instead of time_t for global variables. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 26 Jun 2016 16:45:05 +0200 |
parents | 78712a2f687a |
children | f094d4085014 |
comparison
equal
deleted
inserted
replaced
9346:14bbb4a8b05d | 9347:25c562442f8c |
---|---|
111 typedef struct xfilemark | 111 typedef struct xfilemark |
112 { | 112 { |
113 fmark_T fmark; | 113 fmark_T fmark; |
114 char_u *fname; /* file name, used when fnum == 0 */ | 114 char_u *fname; /* file name, used when fnum == 0 */ |
115 #ifdef FEAT_VIMINFO | 115 #ifdef FEAT_VIMINFO |
116 time_t time_set; | 116 time_T time_set; |
117 #endif | 117 #endif |
118 } xfmark_T; | 118 } xfmark_T; |
119 | 119 |
120 /* | 120 /* |
121 * The taggy struct is used to store the information about a :tag command. | 121 * The taggy struct is used to store the information about a :tag command. |
356 long uh_cursor_vcol; | 356 long uh_cursor_vcol; |
357 #endif | 357 #endif |
358 int uh_flags; /* see below */ | 358 int uh_flags; /* see below */ |
359 pos_T uh_namedm[NMARKS]; /* marks before undo/after redo */ | 359 pos_T uh_namedm[NMARKS]; /* marks before undo/after redo */ |
360 visualinfo_T uh_visual; /* Visual areas before undo/after redo */ | 360 visualinfo_T uh_visual; /* Visual areas before undo/after redo */ |
361 time_t uh_time; /* timestamp when the change was made */ | 361 time_T uh_time; /* timestamp when the change was made */ |
362 long uh_save_nr; /* set when the file was saved after the | 362 long uh_save_nr; /* set when the file was saved after the |
363 changes in this block */ | 363 changes in this block */ |
364 #ifdef U_DEBUG | 364 #ifdef U_DEBUG |
365 int uh_magic; /* magic number to check allocation */ | 365 int uh_magic; /* magic number to check allocation */ |
366 #endif | 366 #endif |
1814 int b_u_numhead; /* current number of headers */ | 1814 int b_u_numhead; /* current number of headers */ |
1815 int b_u_synced; /* entry lists are synced */ | 1815 int b_u_synced; /* entry lists are synced */ |
1816 long b_u_seq_last; /* last used undo sequence number */ | 1816 long b_u_seq_last; /* last used undo sequence number */ |
1817 long b_u_save_nr_last; /* counter for last file write */ | 1817 long b_u_save_nr_last; /* counter for last file write */ |
1818 long b_u_seq_cur; /* hu_seq of header below which we are now */ | 1818 long b_u_seq_cur; /* hu_seq of header below which we are now */ |
1819 time_t b_u_time_cur; /* uh_time of header below which we are now */ | 1819 time_T b_u_time_cur; /* uh_time of header below which we are now */ |
1820 long b_u_save_nr_cur; /* file write nr after which we are now */ | 1820 long b_u_save_nr_cur; /* file write nr after which we are now */ |
1821 | 1821 |
1822 /* | 1822 /* |
1823 * variables for "U" command in undo.c | 1823 * variables for "U" command in undo.c |
1824 */ | 1824 */ |