X-Git-Url: https://git.distorted.org.uk/~mdw/pyke/blobdiff_plain/b75462e8d463580b325794ecf2369c4ae801b5bd..ca473903465c8a6e83acee23d7e6bba6b6cb23b9:/catacomb-python.h diff --git a/catacomb-python.h b/catacomb-python.h index 65f2ed1..364a3c9 100644 --- a/catacomb-python.h +++ b/catacomb-python.h @@ -92,6 +92,7 @@ #include #include #include +#include #include #include @@ -133,6 +134,7 @@ } while (0) #define VALERR(str) EXCERR(PyExc_ValueError, str) #define TYERR(str) EXCERR(PyExc_TypeError, str) +#define IXERR(str) EXCERR(PyExc_IndexError, str) #define ZDIVERR(str) EXCERR(PyExc_ZeroDivisionError, str) #define SYSERR(str) EXCERR(PyExc_SystemError, str) #define NIERR(str) EXCERR(PyExc_NotImplementedError, str) @@ -230,6 +232,8 @@ MODULES(DO) return (d); \ } +#define KWLIST (/*unconst*/ char **)kwlist + struct nameval { const char *name; unsigned long value; }; extern void setconstants(PyObject *, const struct nameval *); @@ -502,7 +506,6 @@ extern PyTypeObject *gccipher_pytype; #define GCCIPHER_F(o) (((gccipher_pyobj *)(o))->f) extern PyObject *gccipher_pywrap(gccipher *); extern int convgccipher(PyObject *, void *); -extern int convgcipher(PyObject *, void *); typedef struct gcipher_pyobj { PyObject_HEAD