Mercurial > vim
comparison src/structs.h @ 2233:43cad213cb7f vim73
A bit of cleanup and simplification for undofile.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 30 May 2010 16:01:37 +0200 |
parents | f8222d1f9a73 |
children | 60da25e3aab7 |
comparison
equal
deleted
inserted
replaced
2232:2e6906bbc5f4 | 2233:43cad213cb7f |
---|---|
337 long_u m_size; /* size of the chunk (including m_info) */ | 337 long_u m_size; /* size of the chunk (including m_info) */ |
338 #else | 338 #else |
339 short_u m_size; /* size of the chunk (including m_info) */ | 339 short_u m_size; /* size of the chunk (including m_info) */ |
340 #endif | 340 #endif |
341 minfo_T *m_next; /* pointer to next free chunk in the list */ | 341 minfo_T *m_next; /* pointer to next free chunk in the list */ |
342 }; | |
343 | |
344 /* | |
345 * structure used to link blocks in the list of allocated blocks. | |
346 */ | |
347 typedef struct m_block mblock_T; | |
348 struct m_block | |
349 { | |
350 mblock_T *mb_next; /* pointer to next allocated block */ | |
351 size_t mb_size; /* total size of all chunks in this block */ | |
352 size_t mb_maxsize; /* size of largest fee chunk */ | |
353 minfo_T mb_info; /* head of free chunk list for this block */ | |
354 }; | 342 }; |
355 | 343 |
356 /* | 344 /* |
357 * things used in memfile.c | 345 * things used in memfile.c |
358 */ | 346 */ |
1284 */ | 1272 */ |
1285 char_u *b_u_line_ptr; /* saved line for "U" command */ | 1273 char_u *b_u_line_ptr; /* saved line for "U" command */ |
1286 linenr_T b_u_line_lnum; /* line number of line in u_line */ | 1274 linenr_T b_u_line_lnum; /* line number of line in u_line */ |
1287 colnr_T b_u_line_colnr; /* optional column number */ | 1275 colnr_T b_u_line_colnr; /* optional column number */ |
1288 | 1276 |
1289 /* | |
1290 * The following only used in undo.c | |
1291 */ | |
1292 mblock_T b_block_head; /* head of allocated memory block list */ | |
1293 minfo_T *b_m_search; /* pointer to chunk before previously | |
1294 allocated/freed chunk */ | |
1295 mblock_T *b_mb_current; /* block where m_search points in */ | |
1296 | |
1297 #ifdef FEAT_INS_EXPAND | 1277 #ifdef FEAT_INS_EXPAND |
1298 int b_scanned; /* ^N/^P have scanned this buffer */ | 1278 int b_scanned; /* ^N/^P have scanned this buffer */ |
1299 #endif | 1279 #endif |
1300 | 1280 |
1301 /* flags for use of ":lmap" and IM control */ | 1281 /* flags for use of ":lmap" and IM control */ |