From 089e745af64b660574424cae88011d0689d56c5c Mon Sep 17 00:00:00 2001 From: Oleksandr Shulgin Date: Tue, 20 Oct 2015 12:55:43 +0200 Subject: [PATCH] Fix cursor_init() declaration for use in replication_cursor_type.c --- psycopg/cursor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/psycopg/cursor.h b/psycopg/cursor.h index 18e31e5f..44d8a47a 100644 --- a/psycopg/cursor.h +++ b/psycopg/cursor.h @@ -92,12 +92,13 @@ struct cursorObject { /* C-callable functions in cursor_int.c and cursor_type.c */ +HIDDEN int cursor_init(PyObject *obj, PyObject *args, PyObject *kwargs); + BORROWED HIDDEN PyObject *curs_get_cast(cursorObject *self, PyObject *oid); HIDDEN void curs_reset(cursorObject *self); HIDDEN int psyco_curs_withhold_set(cursorObject *self, PyObject *pyvalue); HIDDEN int psyco_curs_scrollable_set(cursorObject *self, PyObject *pyvalue); -HIDDEN int psyco_curs_init(PyObject *obj, PyObject *args, PyObject *kwargs); /* exception-raising macros */ #define EXC_IF_CURS_CLOSED(self) \