MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / PyInit_bplustree_c

Function PyInit_bplustree_c

python/bplustree_c_src/bplustree_module.c:434–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432};
433
434PyMODINIT_FUNC
435PyInit_bplustree_c(void) {
436 PyObject *m;
437
438 if (PyType_Ready(&BPlusTreeType) < 0)
439 return NULL;
440
441 if (PyType_Ready(&BPlusTreeIteratorType) < 0)
442 return NULL;
443
444 m = PyModule_Create(&bplustree_module);
445 if (m == NULL)
446 return NULL;
447
448 Py_INCREF(&BPlusTreeType);
449 if (PyModule_AddObject(m, "BPlusTree", (PyObject *)&BPlusTreeType) < 0) {
450 Py_DECREF(&BPlusTreeType);
451 Py_DECREF(m);
452 return NULL;
453 }
454
455 return m;
456}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected