Mercurial > vim
comparison src/memline.c @ 2240:6b4879aea261 vim73
Add test for gettabvar() and settabvar().
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 31 May 2010 21:27:30 +0200 |
parents | fef4bd7afb26 |
children | 60da25e3aab7 |
comparison
equal
deleted
inserted
replaced
2239:732cb7b31956 | 2240:6b4879aea261 |
---|---|
85 * A pointer block contains a list of branches in the tree. | 85 * A pointer block contains a list of branches in the tree. |
86 */ | 86 */ |
87 struct pointer_block | 87 struct pointer_block |
88 { | 88 { |
89 short_u pb_id; /* ID for pointer block: PTR_ID */ | 89 short_u pb_id; /* ID for pointer block: PTR_ID */ |
90 short_u pb_count; /* number of pointer in this block */ | 90 short_u pb_count; /* number of pointers in this block */ |
91 short_u pb_count_max; /* maximum value for pb_count */ | 91 short_u pb_count_max; /* maximum value for pb_count */ |
92 PTR_EN pb_pointer[1]; /* list of pointers to blocks (actually longer) | 92 PTR_EN pb_pointer[1]; /* list of pointers to blocks (actually longer) |
93 * followed by empty space until end of page */ | 93 * followed by empty space until end of page */ |
94 }; | 94 }; |
95 | 95 |
3268 return NULL; | 3268 return NULL; |
3269 | 3269 |
3270 pp = (PTR_BL *)(hp->bh_data); | 3270 pp = (PTR_BL *)(hp->bh_data); |
3271 pp->pb_id = PTR_ID; | 3271 pp->pb_id = PTR_ID; |
3272 pp->pb_count = 0; | 3272 pp->pb_count = 0; |
3273 pp->pb_count_max = (short_u)((mfp->mf_page_size - sizeof(PTR_BL)) / sizeof(PTR_EN) + 1); | 3273 pp->pb_count_max = (short_u)((mfp->mf_page_size - sizeof(PTR_BL)) |
3274 / sizeof(PTR_EN) + 1); | |
3274 | 3275 |
3275 return hp; | 3276 return hp; |
3276 } | 3277 } |
3277 | 3278 |
3278 /* | 3279 /* |