Lines Matching defs:new_len
1106 apr_size_t new_len;
1113 new_len = vb->avail * 2;
1114 if (new_len > max_len)
1115 new_len = max_len;
1116 else if (new_len < 3)
1117 new_len = 3;
1118 ap_varbuf_grow(vb, new_len);
1129 new_len = vb->avail * 2;
1130 if (new_len > max_len)
1131 new_len = max_len;
1132 ap_varbuf_grow(vb, new_len);
2790 AP_DECLARE(void) ap_varbuf_grow(struct ap_varbuf *vb, apr_size_t new_len)
2799 if (new_len <= vb->avail)
2802 if (new_len < 2 * vb->avail && vb->avail < VARBUF_MAX_SIZE/2) {
2804 new_len = 2 * vb->avail;
2806 else if (new_len > VARBUF_MAX_SIZE) {
2813 new_len++; /* add space for trailing \0 */
2814 if (new_len <= VARBUF_SMALL_SIZE) {
2815 new_len = APR_ALIGN_DEFAULT(new_len);
2816 new = apr_palloc(vb->pool, new_len);
2824 vb->avail += new_len;
2836 vb->avail = new_len - 1;
2844 if (new_len <= VARBUF_MAX_SIZE)
2846 new_len + APR_ALIGN_DEFAULT(sizeof(*new_info)));
2858 AP_DEBUG_ASSERT(new_node->endp - new_node->first_avail >= new_len);
2859 new_len = new_node->endp - new_node->first_avail;
2872 vb->avail = new_len - 1;
2907 apr_size_t *new_len)
2930 return apr_pstrcatv(p, vec, i, new_len);
2932 if (new_len)
2933 *new_len = 0;