Home
last modified time | relevance | path

Searched refs:_inittab (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Include/cpython/
Dimport.h27 struct _inittab { struct
31 PyAPI_DATA(struct _inittab *) PyImport_Inittab; argument
32 PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);
/third_party/python/Python/
Dimport.c36 extern struct _inittab _PyImport_Inittab[];
38 struct _inittab *PyImport_Inittab = _PyImport_Inittab;
39 static struct _inittab *inittab_copy = NULL;
1005 for (struct _inittab *p = PyImport_Inittab; p->name != NULL; p++) { in create_builtin()
2239 PyImport_ExtendInittab(struct _inittab *newtab) in PyImport_ExtendInittab()
2241 struct _inittab *p; in PyImport_ExtendInittab()
2260 if (i + n <= SIZE_MAX / sizeof(struct _inittab) - 1) { in PyImport_ExtendInittab()
2261 size_t size = sizeof(struct _inittab) * (i + n + 1); in PyImport_ExtendInittab()
2272 memcpy(p, PyImport_Inittab, (i+1) * sizeof(struct _inittab)); in PyImport_ExtendInittab()
2274 memcpy(p + i, newtab, (n + 1) * sizeof(struct _inittab)); in PyImport_ExtendInittab()
[all …]
/third_party/python/Modules/
Dconfig.c.in34 struct _inittab _PyImport_Inittab[] = {
/third_party/python/PC/
Dconfig.c84 struct _inittab _PyImport_Inittab[] = {
/third_party/python/Doc/c-api/
Dimport.rst280 .. c:type:: struct _inittab
289 struct _inittab {
295 .. c:function:: int PyImport_ExtendInittab(struct _inittab *newtab)