X-Git-Url: https://git.distorted.org.uk/~mdw/pyke/blobdiff_plain/2ad160b18bafeedcf82a229846326224638edd67..917dbf4b50d8fb81d7f899b3397ced4537699255:/catacomb-python.h diff --git a/catacomb-python.h b/catacomb-python.h index 0949562..490862b 100644 --- a/catacomb-python.h +++ b/catacomb-python.h @@ -33,6 +33,8 @@ /*----- Header files ------------------------------------------------------*/ +#define PY_SSIZE_T_CLEAN + #include #include #include @@ -44,6 +46,7 @@ #include #include +#include #include #include @@ -66,6 +69,8 @@ #include #include #include +#include +#include #include #include @@ -84,6 +89,10 @@ #include #include #include +#include +#include +#include +#include #include #include @@ -315,10 +324,11 @@ extern mp *getgf(PyObject *); extern int convgf(PyObject *, void *); extern PyObject *mp_pywrap(mp *); extern PyObject *gf_pywrap(mp *); +extern long mphash(mp *); extern mp *mp_frompyobject(PyObject *, int); extern PyObject *mp_topystring(mp *, int, const char *, const char *, const char *); -extern int mp_tolong_checked(mp *, long *); +extern int mp_tolong_checked(mp *, long *, int); /*----- Abstract fields ---------------------------------------------------*/