• 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
570 msgbuf, bufsize, freelist); in converttuple()
588 int *levels, char *msgbuf, size_t bufsize, freelist_t *freelist) in convertitem() argument
596 bufsize, 0, freelist); in convertitem()
602 msgbuf, bufsize, freelist); in convertitem()
673 char *msgbuf, size_t bufsize, freelist_t *freelist) in convertsimple() argument
966 if (addcleanup(p, freelist, cleanup_buffer)) { in convertsimple()
1011 if (addcleanup(p, freelist, cleanup_buffer)) { in convertsimple()
1234 if (addcleanup(*buffer, freelist, cleanup_ptr)) { in convertsimple()
1290 if (addcleanup(*buffer, freelist, cleanup_ptr)) { in convertsimple()
1354 addcleanup(addr, freelist, convert) == -1) in convertsimple()
1386 if (addcleanup(p, freelist, cleanup_buffer)) { in convertsimple()
1662 freelist_t freelist; in vgetargskeywords() local
1664 freelist.entries = static_entries; in vgetargskeywords()
1665 freelist.first_available = 0; in vgetargskeywords()
1666 freelist.entries_malloced = 0; in vgetargskeywords()
1694 return cleanreturn(0, &freelist); in vgetargskeywords()
1699 freelist.entries = PyMem_NEW(freelistentry_t, len); in vgetargskeywords()
1700 if (freelist.entries == NULL) { in vgetargskeywords()
1704 freelist.entries_malloced = 1; in vgetargskeywords()
1720 return cleanreturn(0, &freelist); in vgetargskeywords()
1729 return cleanreturn(0, &freelist); in vgetargskeywords()
1738 return cleanreturn(0, &freelist); in vgetargskeywords()
1745 return cleanreturn(0, &freelist); in vgetargskeywords()
1754 return cleanreturn(0, &freelist); in vgetargskeywords()
1780 return cleanreturn(0, &freelist); in vgetargskeywords()
1787 return cleanreturn(0, &freelist); in vgetargskeywords()
1799 return cleanreturn(0, &freelist); in vgetargskeywords()
1808 levels, msgbuf, sizeof(msgbuf), &freelist); in vgetargskeywords()
1811 return cleanreturn(0, &freelist); in vgetargskeywords()
1832 return cleanreturn(0, &freelist); in vgetargskeywords()
1840 return cleanreturn(1, &freelist); in vgetargskeywords()
1850 return cleanreturn(0, &freelist); in vgetargskeywords()
1864 return cleanreturn(0, &freelist); in vgetargskeywords()
1871 return cleanreturn(0, &freelist); in vgetargskeywords()
1888 return cleanreturn(0, &freelist); in vgetargskeywords()
1891 return cleanreturn(0, &freelist); in vgetargskeywords()
1901 return cleanreturn(0, &freelist); in vgetargskeywords()
1916 return cleanreturn(0, &freelist); in vgetargskeywords()
1921 return cleanreturn(1, &freelist); in vgetargskeywords()
2096 freelist_t freelist; in vgetargskeywordsfast_impl() local
2099 freelist.entries = static_entries; in vgetargskeywordsfast_impl()
2100 freelist.first_available = 0; in vgetargskeywordsfast_impl()
2101 freelist.entries_malloced = 0; in vgetargskeywordsfast_impl()
2126 freelist.entries = PyMem_NEW(freelistentry_t, len); in vgetargskeywordsfast_impl()
2127 if (freelist.entries == NULL) { in vgetargskeywordsfast_impl()
2131 freelist.entries_malloced = 1; in vgetargskeywordsfast_impl()
2155 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2174 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2196 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2212 levels, msgbuf, sizeof(msgbuf), &freelist); in vgetargskeywordsfast_impl()
2215 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2242 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2249 return cleanreturn(1, &freelist); in vgetargskeywordsfast_impl()
2268 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2282 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2310 return cleanreturn(0, &freelist); in vgetargskeywordsfast_impl()
2315 return cleanreturn(1, &freelist); in vgetargskeywordsfast_impl()