Home
last modified time | relevance | path

Searched refs:totalnew (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
Ddatetimemodule.c1176 size_t totalnew; /* number bytes total in output format buffer, in wrap_strftime() local
1219 totalnew = format_len + 1; /* realistic if no %z/%Z/%f */ in wrap_strftime()
1220 newfmt = PyString_FromStringAndSize(NULL, totalnew); in wrap_strftime()
1326 while (usednew + ntoappend > totalnew) { in wrap_strftime()
1327 size_t bigger = totalnew << 1; in wrap_strftime()
1328 if ((bigger >> 1) != totalnew) { /* overflow */ in wrap_strftime()
1334 totalnew = bigger; in wrap_strftime()
1340 assert(usednew <= totalnew); in wrap_strftime()
/external/python/cpython3/Modules/
D_datetimemodule.c1482 size_t totalnew; /* number bytes total in output format buffer, in wrap_strftime() local
1505 totalnew = flen + 1; /* realistic if no %z/%Z */ in wrap_strftime()
1506 newfmt = PyBytes_FromStringAndSize(NULL, totalnew); in wrap_strftime()
1593 while (usednew + ntoappend > totalnew) { in wrap_strftime()
1594 if (totalnew > (PY_SSIZE_T_MAX >> 1)) { /* overflow */ in wrap_strftime()
1598 totalnew <<= 1; in wrap_strftime()
1599 if (_PyBytes_Resize(&newfmt, totalnew) < 0) in wrap_strftime()
1606 assert(usednew <= totalnew); in wrap_strftime()