X-Git-Url: https://git.distorted.org.uk/~mdw/pyke/blobdiff_plain/87aa2e3c42d96790852436f8f108fc70bd87de9c..41efbcc08120755b34f8157cae1fe855314b5c9f:/catacomb-python.h diff --git a/catacomb-python.h b/catacomb-python.h index 517ec0b..b1120fa 100644 --- a/catacomb-python.h +++ b/catacomb-python.h @@ -233,7 +233,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 +373,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