diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2019-01-22 13:54:06 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2019-01-23 09:46:18 +0000 |
commit | 65a2a18a1baee52da372c931230163fed407f81a (patch) | |
tree | 6ef511ffe62457643831fc5b934b6de884211eeb /psycopg/microprotocols.h | |
parent | 66d5c6da0728640b2312c5e55a642a5ebb4e72e2 (diff) | |
download | psycopg2-module-init-cleanup.tar.gz |
General cleanup of module init shenanigansmodule-init-cleanup
Pass around the module instead of its dict (getting the latter is fast
if needed), mark function raising with negative results, check all errors,
consistent names...
Diffstat (limited to 'psycopg/microprotocols.h')
-rw-r--r-- | psycopg/microprotocols.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/microprotocols.h b/psycopg/microprotocols.h index df084c5..1c2340f 100644 --- a/psycopg/microprotocols.h +++ b/psycopg/microprotocols.h @@ -46,8 +46,8 @@ extern HIDDEN PyObject *psyco_adapters; /** exported functions **/ /* used by module.c to init the microprotocols system */ -HIDDEN int microprotocols_init(PyObject *dict); -HIDDEN int microprotocols_add( +HIDDEN RAISES_NEG int microprotocols_init(PyObject *dict); +HIDDEN RAISES_NEG int microprotocols_add( PyTypeObject *type, PyObject *proto, PyObject *cast); HIDDEN PyObject *microprotocols_adapt( |