| 123 | PyMODINIT_FUNC _CFFI_PYTHON_STARTUP_FUNC(void); /* forward */ |
| 124 | |
| 125 | static void _cffi_py_initialize(void) |
| 126 | { |
| 127 | /* XXX use initsigs=0, which "skips initialization registration of |
| 128 | signal handlers, which might be useful when Python is |
| 129 | embedded" according to the Python docs. But review and think |
| 130 | if it should be a user-controllable setting. |
| 131 | |
| 132 | XXX we should also give a way to write errors to a buffer |
| 133 | instead of to stderr. |
| 134 | |
| 135 | XXX if importing 'site' fails, CPython (any version) calls |
| 136 | exit(). Should we try to work around this behavior here? |
| 137 | */ |
| 138 | Py_InitializeEx(0); |
| 139 | } |
| 140 | |
| 141 | static int _cffi_initialize_python(void) |
| 142 | { |
no outgoing calls
no test coverage detected