| 432 | }; |
| 433 | |
| 434 | PyMODINIT_FUNC |
| 435 | PyInit_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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected