X-Git-Url: https://git.distorted.org.uk/~mdw/pyke/blobdiff_plain/87aa2e3c42d96790852436f8f108fc70bd87de9c..b0783435d0481f5034c46c65a0802ca25f646058:/catacomb-python.h diff --git a/catacomb-python.h b/catacomb-python.h index 517ec0b..ad27461 100644 --- a/catacomb-python.h +++ b/catacomb-python.h @@ -133,6 +133,7 @@ goto end; \ } while (0) #define VALERR(str) EXCERR(PyExc_ValueError, str) +#define OVFERR(str) EXCERR(PyExc_OverflowError, str) #define TYERR(str) EXCERR(PyExc_TypeError, str) #define ZDIVERR(str) EXCERR(PyExc_ZeroDivisionError, str) #define SYSERR(str) EXCERR(PyExc_SystemError, str) @@ -233,7 +234,8 @@ MODULES(DO) return (d); \ } -struct nameval { const char *name; unsigned long value; }; +struct nameval { const char *name; unsigned f; unsigned long value; }; +#define CF_SIGNED 1u extern void setconstants(PyObject *, const struct nameval *); extern PyObject *mexp_common(PyObject *, PyObject *, size_t, @@ -372,7 +374,6 @@ extern PyTypeObject *fe_pytype; #define FE_FOBJ(o) ((PyObject *)(o)->ob_type) #define FE_X(o) (((fe_pyobj *)(o))->x) extern PyObject *fe_pywrap(PyObject *, mp *); -extern mp *getfe(field *, PyObject *); typedef struct fe_pyobj { PyObject_HEAD