X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/e6ed58c71b526c8dbb471484d95bb467cddf89d4..77535854d3f9ceb6d6f7948080e2daaad6d16852:/pyke/pyke.h?ds=inline diff --git a/pyke/pyke.h b/pyke/pyke.h index 654f751..cd13507 100644 --- a/pyke/pyke.h +++ b/pyke/pyke.h @@ -279,6 +279,11 @@ extern PyObject *getulong(unsigned long); /* any kind of unsigned integer */ extern PyObject *abstract_pynew(PyTypeObject *, PyObject *, PyObject *); /* A `tp_new' function which refuses to make the object. */ +extern PyObject *enrich_compare(int /*op*/, int /*cmp*/); + /* Use a traditional compare-against-zero comparison result CMP to answer a + * modern Python `tp_richcompare' operation OP. + */ + #ifndef CONVERT_CAREFULLY # define CONVERT_CAREFULLY(newty, expty, obj) \ (!sizeof(*(expty *)0 = (obj)) + (/*unconst*/ newty)(obj))