diff options
Diffstat (limited to 'gdb/python/py-membuf.c')
-rw-r--r-- | gdb/python/py-membuf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/python/py-membuf.c b/gdb/python/py-membuf.c index 9390bcf..9ff0326 100644 --- a/gdb/python/py-membuf.c +++ b/gdb/python/py-membuf.c @@ -99,7 +99,7 @@ get_buffer (PyObject *self, Py_buffer *buf, int flags) /* General Python initialization callback. */ -int +static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION gdbpy_initialize_membuf (void) { membuf_object_type.tp_new = PyType_GenericNew; @@ -110,6 +110,10 @@ gdbpy_initialize_membuf (void) (PyObject *) &membuf_object_type); } +GDBPY_INITIALIZE_FILE (gdbpy_initialize_membuf); + + + static PyBufferProcs buffer_procs = { get_buffer |