Lines Matching refs:ptr
175 if (uhp->uh_next.ptr != exp_uh_next) in u_check_tree()
179 exp_uh_next, uhp->uh_next.ptr); in u_check_tree()
181 if (uhp->uh_alt_prev.ptr != exp_uh_alt_prev) in u_check_tree()
185 exp_uh_alt_prev, uhp->uh_alt_prev.ptr); in u_check_tree()
199 u_check_tree(uhp->uh_alt_next.ptr, uhp->uh_next.ptr, uhp); in u_check_tree()
202 u_check_tree(uhp->uh_prev.ptr, uhp, NULL); in u_check_tree()
528 curbuf->b_u_newhead = old_curhead->uh_next.ptr; in u_savecommon()
543 else if (uhfree->uh_alt_next.ptr == NULL) in u_savecommon()
549 while (uhfree->uh_alt_next.ptr != NULL) in u_savecommon()
550 uhfree = uhfree->uh_alt_next.ptr; in u_savecommon()
566 uhp->uh_prev.ptr = NULL; in u_savecommon()
567 uhp->uh_next.ptr = curbuf->b_u_newhead; in u_savecommon()
568 uhp->uh_alt_next.ptr = old_curhead; in u_savecommon()
571 uhp->uh_alt_prev.ptr = old_curhead->uh_alt_prev.ptr; in u_savecommon()
572 if (uhp->uh_alt_prev.ptr != NULL) in u_savecommon()
573 uhp->uh_alt_prev.ptr->uh_alt_next.ptr = uhp; in u_savecommon()
574 old_curhead->uh_alt_prev.ptr = uhp; in u_savecommon()
579 uhp->uh_alt_prev.ptr = NULL; in u_savecommon()
581 curbuf->b_u_newhead->uh_prev.ptr = uhp; in u_savecommon()
928 undo_write(bufinfo_T *bi, char_u *ptr, size_t len) in undo_write() argument
934 char_u *p = ptr; in undo_write()
955 if (fwrite(ptr, len, (size_t)1, bi->bi_fp) != 1) in undo_write()
982 fwrite_crypt(bufinfo_T *bi, char_u *ptr, size_t len) in fwrite_crypt() argument
1002 crypt_encode(bi->bi_state, ptr, len, copy, TRUE); in fwrite_crypt()
1009 return undo_write(bi, ptr, len); in fwrite_crypt()
1169 char_u *ptr = alloc(len + 1); in read_string_decrypt() local
1171 if (ptr != NULL) in read_string_decrypt()
1173 if (len > 0 && undo_read(bi, ptr, len) == FAIL) in read_string_decrypt()
1175 vim_free(ptr); in read_string_decrypt()
1180 ptr[len] = NUL; in read_string_decrypt()
1183 crypt_decode_inplace(bi->bi_state, ptr, len, FALSE); in read_string_decrypt()
1186 return ptr; in read_string_decrypt()
1290 put_header_ptr(bi, uhp->uh_next.ptr); in serialize_uhp()
1291 put_header_ptr(bi, uhp->uh_prev.ptr); in serialize_uhp()
1292 put_header_ptr(bi, uhp->uh_alt_next.ptr); in serialize_uhp()
1293 put_header_ptr(bi, uhp->uh_alt_prev.ptr); in serialize_uhp()
1760 if (uhp->uh_prev.ptr != NULL && uhp->uh_prev.ptr->uh_walk != mark) in u_write_undo()
1761 uhp = uhp->uh_prev.ptr; in u_write_undo()
1762 else if (uhp->uh_alt_next.ptr != NULL in u_write_undo()
1763 && uhp->uh_alt_next.ptr->uh_walk != mark) in u_write_undo()
1764 uhp = uhp->uh_alt_next.ptr; in u_write_undo()
1765 else if (uhp->uh_next.ptr != NULL && uhp->uh_alt_prev.ptr == NULL in u_write_undo()
1766 && uhp->uh_next.ptr->uh_walk != mark) in u_write_undo()
1767 uhp = uhp->uh_next.ptr; in u_write_undo()
1768 else if (uhp->uh_alt_prev.ptr != NULL) in u_write_undo()
1769 uhp = uhp->uh_alt_prev.ptr; in u_write_undo()
1771 uhp = uhp->uh_next.ptr; in u_write_undo()
2094 uhp->uh_next.ptr = uhp_table[j]; in u_read_undo()
2102 uhp->uh_prev.ptr = uhp_table[j]; in u_read_undo()
2110 uhp->uh_alt_next.ptr = uhp_table[j]; in u_read_undo()
2118 uhp->uh_alt_prev.ptr = uhp_table[j]; in u_read_undo()
2262 curbuf->b_u_curhead = curbuf->b_u_curhead->uh_next.ptr; in u_doit()
2296 if (curbuf->b_u_curhead->uh_prev.ptr == NULL) in u_doit()
2298 curbuf->b_u_curhead = curbuf->b_u_curhead->uh_prev.ptr; in u_doit()
2364 uhp = uhp->uh_next.ptr; in undo_time()
2489 if (uhp->uh_prev.ptr != NULL && uhp->uh_prev.ptr->uh_walk != nomark in undo_time()
2490 && uhp->uh_prev.ptr->uh_walk != mark) in undo_time()
2491 uhp = uhp->uh_prev.ptr; in undo_time()
2494 else if (uhp->uh_alt_next.ptr != NULL in undo_time()
2495 && uhp->uh_alt_next.ptr->uh_walk != nomark in undo_time()
2496 && uhp->uh_alt_next.ptr->uh_walk != mark) in undo_time()
2497 uhp = uhp->uh_alt_next.ptr; in undo_time()
2501 else if (uhp->uh_next.ptr != NULL && uhp->uh_alt_prev.ptr == NULL in undo_time()
2502 && uhp->uh_next.ptr->uh_walk != nomark in undo_time()
2503 && uhp->uh_next.ptr->uh_walk != mark) in undo_time()
2508 uhp = uhp->uh_next.ptr; in undo_time()
2515 if (uhp->uh_alt_prev.ptr != NULL) in undo_time()
2516 uhp = uhp->uh_alt_prev.ptr; in undo_time()
2518 uhp = uhp->uh_next.ptr; in undo_time()
2563 uhp = uhp->uh_next.ptr; in undo_time()
2589 while (uhp->uh_alt_prev.ptr != NULL in undo_time()
2590 && uhp->uh_alt_prev.ptr->uh_walk == mark) in undo_time()
2591 uhp = uhp->uh_alt_prev.ptr; in undo_time()
2595 while (last->uh_alt_next.ptr != NULL in undo_time()
2596 && last->uh_alt_next.ptr->uh_walk == mark) in undo_time()
2597 last = last->uh_alt_next.ptr; in undo_time()
2602 while (uhp->uh_alt_prev.ptr != NULL) in undo_time()
2603 uhp = uhp->uh_alt_prev.ptr; in undo_time()
2604 if (last->uh_alt_next.ptr != NULL) in undo_time()
2605 last->uh_alt_next.ptr->uh_alt_prev.ptr = in undo_time()
2606 last->uh_alt_prev.ptr; in undo_time()
2607 last->uh_alt_prev.ptr->uh_alt_next.ptr = in undo_time()
2608 last->uh_alt_next.ptr; in undo_time()
2609 last->uh_alt_prev.ptr = NULL; in undo_time()
2610 last->uh_alt_next.ptr = uhp; in undo_time()
2611 uhp->uh_alt_prev.ptr = last; in undo_time()
2616 if (uhp->uh_next.ptr != NULL) in undo_time()
2617 uhp->uh_next.ptr->uh_prev.ptr = uhp; in undo_time()
2636 if (uhp->uh_prev.ptr == NULL) in undo_time()
2638 curbuf->b_u_curhead = uhp->uh_prev.ptr; in undo_time()
2644 uhp = uhp->uh_prev.ptr; in undo_time()
2936 if (curhead->uh_next.ptr != NULL) in u_undoredo()
2937 curbuf->b_u_seq_cur = curhead->uh_next.ptr->uh_seq; in u_undoredo()
3008 if (absolute && curbuf->b_u_curhead->uh_next.ptr != NULL) in u_undo_end()
3010 uhp = curbuf->b_u_curhead->uh_next.ptr; in u_undo_end()
3016 uhp = curbuf->b_u_curhead->uh_next.ptr; in u_undo_end()
3094 if (uhp->uh_prev.ptr == NULL && uhp->uh_walk != nomark in ex_undolist()
3116 if (uhp->uh_prev.ptr != NULL && uhp->uh_prev.ptr->uh_walk != nomark in ex_undolist()
3117 && uhp->uh_prev.ptr->uh_walk != mark) in ex_undolist()
3119 uhp = uhp->uh_prev.ptr; in ex_undolist()
3124 else if (uhp->uh_alt_next.ptr != NULL in ex_undolist()
3125 && uhp->uh_alt_next.ptr->uh_walk != nomark in ex_undolist()
3126 && uhp->uh_alt_next.ptr->uh_walk != mark) in ex_undolist()
3127 uhp = uhp->uh_alt_next.ptr; in ex_undolist()
3131 else if (uhp->uh_next.ptr != NULL && uhp->uh_alt_prev.ptr == NULL in ex_undolist()
3132 && uhp->uh_next.ptr->uh_walk != nomark in ex_undolist()
3133 && uhp->uh_next.ptr->uh_walk != mark) in ex_undolist()
3135 uhp = uhp->uh_next.ptr; in ex_undolist()
3143 if (uhp->uh_alt_prev.ptr != NULL) in ex_undolist()
3144 uhp = uhp->uh_alt_prev.ptr; in ex_undolist()
3147 uhp = uhp->uh_next.ptr; in ex_undolist()
3261 uhp = uhp->uh_next.ptr; in u_update_save_nr()
3273 for (uh = uhp; uh != NULL; uh = uh->uh_prev.ptr) in u_unch_branch()
3276 if (uh->uh_alt_next.ptr != NULL) in u_unch_branch()
3277 u_unch_branch(uh->uh_alt_next.ptr); // recursive in u_unch_branch()
3348 if (uhp->uh_alt_next.ptr != NULL) in u_freeheader()
3349 u_freebranch(buf, uhp->uh_alt_next.ptr, uhpp); in u_freeheader()
3351 if (uhp->uh_alt_prev.ptr != NULL) in u_freeheader()
3352 uhp->uh_alt_prev.ptr->uh_alt_next.ptr = NULL; in u_freeheader()
3355 if (uhp->uh_next.ptr == NULL) in u_freeheader()
3356 buf->b_u_oldhead = uhp->uh_prev.ptr; in u_freeheader()
3358 uhp->uh_next.ptr->uh_prev.ptr = uhp->uh_prev.ptr; in u_freeheader()
3360 if (uhp->uh_prev.ptr == NULL) in u_freeheader()
3361 buf->b_u_newhead = uhp->uh_next.ptr; in u_freeheader()
3363 for (uhap = uhp->uh_prev.ptr; uhap != NULL; in u_freeheader()
3364 uhap = uhap->uh_alt_next.ptr) in u_freeheader()
3365 uhap->uh_next.ptr = uhp->uh_next.ptr; in u_freeheader()
3390 if (uhp->uh_alt_prev.ptr != NULL) in u_freebranch()
3391 uhp->uh_alt_prev.ptr->uh_alt_next.ptr = NULL; in u_freebranch()
3397 if (tofree->uh_alt_next.ptr != NULL) in u_freebranch()
3398 u_freebranch(buf, tofree->uh_alt_next.ptr, uhpp); // recursive in u_freebranch()
3399 next = tofree->uh_prev.ptr; in u_freebranch()
3631 if (uhp->uh_alt_next.ptr != NULL) in u_eval_tree()
3638 u_eval_tree(uhp->uh_alt_next.ptr, alt_list); in u_eval_tree()
3644 uhp = uhp->uh_prev.ptr; in u_eval_tree()