• Home
  • Raw
  • Download

Lines Matching refs:freelist

221 addcleanup(void *ptr, freelist_t *freelist, destr_t destructor)  in addcleanup()  argument
225 index = freelist->first_available; in addcleanup()
226 freelist->first_available += 1; in addcleanup()
228 freelist->entries[index].item = ptr; in addcleanup()
229 freelist->entries[index].destructor = destructor; in addcleanup()
235 cleanreturn(int retval, freelist_t *freelist) in cleanreturn() argument
243 for (index = 0; index < freelist->first_available; ++index) { in cleanreturn()
244 freelist->entries[index].destructor(NULL, in cleanreturn()
245 freelist->entries[index].item); in cleanreturn()
248 if (freelist->entries_malloced) in cleanreturn()
249 PyMem_Free(freelist->entries); in cleanreturn()
271 freelist_t freelist; in vgetargs1_impl() local
275 freelist.entries = static_entries; in vgetargs1_impl()
276 freelist.first_available = 0; in vgetargs1_impl()
277 freelist.entries_malloced = 0; in vgetargs1_impl()
332 freelist.entries = PyMem_NEW(freelistentry_t, max); in vgetargs1_impl()
333 if (freelist.entries == NULL) { in vgetargs1_impl()
337 freelist.entries_malloced = 1; in vgetargs1_impl()
348 return cleanreturn(0, &freelist); in vgetargs1_impl()
356 return cleanreturn(0, &freelist); in vgetargs1_impl()
359 msgbuf, sizeof(msgbuf), &freelist); in vgetargs1_impl()
361 return cleanreturn(1, &freelist); in vgetargs1_impl()
363 return cleanreturn(0, &freelist); in vgetargs1_impl()
368 return cleanreturn(0, &freelist); in vgetargs1_impl()
385 return cleanreturn(0, &freelist); in vgetargs1_impl()
393 sizeof(msgbuf), &freelist); in vgetargs1_impl()
396 return cleanreturn(0, &freelist); in vgetargs1_impl()
405 return cleanreturn(0, &freelist); in vgetargs1_impl()
408 return cleanreturn(1, &freelist); in vgetargs1_impl()
502 freelist_t *freelist) in converttuple() argument
569 msgbuf, bufsize, freelist); in converttuple()
587 int *levels, char *msgbuf, size_t bufsize, freelist_t *freelist) in convertitem() argument
595 bufsize, 0, freelist); in convertitem()
601 msgbuf, bufsize, freelist); in convertitem()
656 char *msgbuf, size_t bufsize, freelist_t *freelist) in convertsimple() argument
908 if (addcleanup(p, freelist, cleanup_buffer)) { in convertsimple()
954 if (addcleanup(p, freelist, cleanup_buffer)) { in convertsimple()
1171 if (addcleanup(*buffer, freelist, cleanup_ptr)) { in convertsimple()
1217 if (addcleanup(*buffer, freelist, cleanup_ptr)) { in convertsimple()
1281 addcleanup(addr, freelist, convert) == -1) in convertsimple()
1313 if (addcleanup(p, freelist, cleanup_buffer)) { in convertsimple()
1587 freelist_t freelist; in vgetargskeywords() local
1589 freelist.entries = static_entries; in vgetargskeywords()
1590 freelist.first_available = 0; in vgetargskeywords()
1591 freelist.entries_malloced = 0; in vgetargskeywords()
1619 return cleanreturn(0, &freelist); in vgetargskeywords()
1624 freelist.entries = PyMem_NEW(freelistentry_t, len); in vgetargskeywords()
1625 if (freelist.entries == NULL) { in vgetargskeywords()
1629 freelist.entries_malloced = 1; in vgetargskeywords()
1645 return cleanreturn(0, &freelist); in vgetargskeywords()
1654 return cleanreturn(0, &freelist); in vgetargskeywords()
1663 return cleanreturn(0, &freelist); in vgetargskeywords()
1670 return cleanreturn(0, &freelist); in vgetargskeywords()
1679 return cleanreturn(0, &freelist); in vgetargskeywords()
1705 return cleanreturn(0, &freelist); in vgetargskeywords()
1712 return cleanreturn(0, &freelist); in vgetargskeywords()
1724 return cleanreturn(0, &freelist); in vgetargskeywords()
1733 levels, msgbuf, sizeof(msgbuf), &freelist); in vgetargskeywords()
1736 return cleanreturn(0, &freelist); in vgetargskeywords()
1757 return cleanreturn(0, &freelist); in vgetargskeywords()
1765 return cleanreturn(1, &freelist); in vgetargskeywords()
1775 return cleanreturn(0, &freelist); in vgetargskeywords()
1789 return cleanreturn(0, &freelist); in vgetargskeywords()
1796 return cleanreturn(0, &freelist); in vgetargskeywords()
1813 return cleanreturn(0, &freelist); in vgetargskeywords()
1816 return cleanreturn(0, &freelist); in vgetargskeywords()
1826 return cleanreturn(0, &freelist); in vgetargskeywords()
1841 return cleanreturn(0, &freelist); in vgetargskeywords()
1846 return cleanreturn(1, &freelist); in vgetargskeywords()
2021 freelist_t freelist; in vgetargskeywordsfast_impl() local
2024 freelist.entries = static_entries; in vgetargskeywordsfast_impl()
2025 freelist.first_available = 0; in vgetargskeywordsfast_impl()
2026 freelist.entries_malloced = 0; in vgetargskeywordsfast_impl()
2051 freelist.entries = PyMem_NEW(freelistentry_t, len); in vgetargskeywordsfast_impl()
2052 if (freelist.entries == NULL) { in vgetargskeywordsfast_impl()
2056 freelist.entries_malloced = 1; in vgetargskeywordsfast_impl()
2080 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2099 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2121 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2137 levels, msgbuf, sizeof(msgbuf), &freelist); in vgetargskeywordsfast_impl()
2140 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2167 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2174 return cleanreturn(1, &freelist); in vgetargskeywordsfast_impl()
2193 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2207 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2235 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2240 return cleanreturn(1, &freelist); in vgetargskeywordsfast_impl()