Searched refs:total_v_size (Results 1 – 2 of 2) sorted by relevance
1258 size_t total_v_size; /* total # of slots in buffer */ in getline_via_fgets() local1265 total_v_size = INITBUFSIZE; /* start small and pray */ in getline_via_fgets()1269 pvend = buf + total_v_size; in getline_via_fgets()1320 total_v_size = MAXBUFSIZE; in getline_via_fgets()1329 total_v_size = MAXBUFSIZE << 1; in getline_via_fgets()1330 v = PyString_FromStringAndSize((char*)NULL, (int)total_v_size); in getline_via_fgets()1344 pvend = BUF(v) + total_v_size; in getline_via_fgets()1374 increment = total_v_size >> 2; /* mild exponential growth */ in getline_via_fgets()1375 prev_v_size = total_v_size; in getline_via_fgets()1376 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 …]