X-Git-Url: https://git.distorted.org.uk/~mdw/pyke/blobdiff_plain/0156e4020eb3b13a1b9bcfa9887eb922ba5d9fa2..6f1a40f35fb71ef4c2dbb0e92b8aaff1620a2ad1:/catacomb-python.h diff --git a/catacomb-python.h b/catacomb-python.h index bb84a74..a379e1d 100644 --- a/catacomb-python.h +++ b/catacomb-python.h @@ -128,7 +128,6 @@ #define VALERR(str) EXCERR(PyExc_ValueError, str) #define TYERR(str) EXCERR(PyExc_TypeError, str) #define ZDIVERR(str) EXCERR(PyExc_ZeroDivisionError, str) -#define SYNERR(str) EXCERR(PyExc_SyntaxError, str) #define SYSERR(str) EXCERR(PyExc_SystemError, str) #define NIERR(str) EXCERR(PyExc_NotImplementedError, str) #define INDEXERR(idx) do { \ @@ -283,7 +282,7 @@ extern PyMethodDef *donemethods(void); GMAP_DOMETHODS(GMAP_METHDECL, GMAP_KWMETHDECL) #define GMAP_ROMETHODS GMAP_DOROMETHODS(GMAP_METH, GMAP_KWMETH) #define GMAP_METHODS GMAP_DOMETHODS(GMAP_METH, GMAP_KWMETH) -extern int gmap_pysize(PyObject *); +extern Py_ssize_t gmap_pysize(PyObject *); extern PySequenceMethods gmap_pysequence; extern PyMethodDef gmap_pymethods[];