Searched refs:newsize (Results 1 – 5 of 5) sorted by relevance
330 long_u oldsize, newsize; in hash_may_resize() local377 newsize = HT_INIT_SIZE; in hash_may_resize()378 while (newsize < minsize) in hash_may_resize()380 newsize <<= 1; // make sure it's always a power of 2 in hash_may_resize()381 if (newsize == 0) in hash_may_resize()385 if (newsize == HT_INIT_SIZE) in hash_may_resize()404 newarray = ALLOC_CLEAR_MULT(hashitem_T, newsize); in hash_may_resize()423 newmask = newsize - 1; in hash_may_resize()
1909 int newsize = 0; in cs_print_tags_priv() local1932 newsize = (int)(strlen(cstag_msg) + strlen(ptag)); in cs_print_tags_priv()1933 buf = alloc(newsize); in cs_print_tags_priv()1936 bufsize = newsize; in cs_print_tags_priv()1971 newsize = (int)(strlen(csfmt_str) + 16 + strlen(lno)); in cs_print_tags_priv()1972 if (bufsize < newsize) in cs_print_tags_priv()1975 buf = vim_realloc(buf, newsize); in cs_print_tags_priv()1982 bufsize = newsize; in cs_print_tags_priv()2000 if (bufsize < newsize) in cs_print_tags_priv()2003 buf = vim_realloc(buf, newsize); in cs_print_tags_priv()[all …]
2671 linenr_T newsize; in u_undoredo() local2744 for (i = 0; i < newsize && i < oldsize; ++i) in u_undoredo()2758 else if (i < newsize) in u_undoredo()2809 if (newsize) in u_undoredo()2827 if (oldsize != newsize) in u_undoredo()2830 (long)newsize - (long)oldsize); in u_undoredo()2832 curbuf->b_op_start.lnum += newsize - oldsize; in u_undoredo()2834 curbuf->b_op_end.lnum += newsize - oldsize; in u_undoredo()2845 curbuf->b_op_end.lnum = top + newsize; in u_undoredo()2847 u_newcount += newsize; in u_undoredo()[all …]
4658 size_t newsize = newlen * sizeof(nfa_thread_T); in addstate() local4661 if ((long)(newsize >> 10) >= p_mmp) in addstate()4679 newt = vim_realloc(l->t, newsize); in addstate()5000 size_t newsize = newlen * sizeof(nfa_thread_T); in addstate_here() local5003 if ((long)(newsize >> 10) >= p_mmp) in addstate_here()5008 newl = alloc(newsize); in addstate_here()
8342 SMALL_RECT newsize; in resize_console_buf() local8350 newsize.Left = 0; in resize_console_buf()8351 newsize.Top = 0; in resize_console_buf()8352 newsize.Right = coord.X - 1; in resize_console_buf()8353 newsize.Bottom = coord.Y - 1; in resize_console_buf()8354 SetConsoleWindowInfo(g_hConOut, TRUE, &newsize); in resize_console_buf()