Searched refs:total_v_size (Results 1 – 2 of 2) sorted by relevance
1279 size_t total_v_size; /* total # of slots in buffer */ in getline_via_fgets() local1286 total_v_size = INITBUFSIZE; /* start small and pray */ in getline_via_fgets()1290 pvend = buf + total_v_size; in getline_via_fgets()1341 total_v_size = MAXBUFSIZE; in getline_via_fgets()1350 total_v_size = MAXBUFSIZE << 1; in getline_via_fgets()1351 v = PyString_FromStringAndSize((char*)NULL, (int)total_v_size); in getline_via_fgets()1365 pvend = BUF(v) + total_v_size; in getline_via_fgets()1395 increment = total_v_size >> 2; /* mild exponential growth */ in getline_via_fgets()1396 prev_v_size = total_v_size; in getline_via_fgets()1397 total_v_size += increment; in getline_via_fgets()[all …]
242 size_t total_v_size; /* total # of slots in buffer */ in Util_GetLine() local252 total_v_size = n > 0 ? n : 100; in Util_GetLine()253 v = PyString_FromStringAndSize((char *)NULL, total_v_size); in Util_GetLine()258 end = buf + total_v_size; in Util_GetLine()310 used_v_size = total_v_size; in Util_GetLine()311 increment = total_v_size >> 2; /* mild exponential growth */ in Util_GetLine()312 total_v_size += increment; in Util_GetLine()313 if (total_v_size > INT_MAX) { in Util_GetLine()319 if (_PyString_Resize(&v, total_v_size) < 0) in Util_GetLine()322 end = BUF(v) + total_v_size; in Util_GetLine()[all …]