X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/blobdiff_plain/03ed9abbf0e1ccfc30a910f02c1d5e0cec4c7585..2a28a112d346a36bc2b5e4918d8ce26d8321a855:/algorithms.c?ds=sidebyside diff --git a/algorithms.c b/algorithms.c index 71b8e56..be953b0 100644 --- a/algorithms.c +++ b/algorithms.c @@ -1430,22 +1430,6 @@ void algorithms_pyinit(void) INITTYPE(gprp, root); } -#define GEN(func, base) \ - static PyObject *func(void) \ - { \ - PyObject *d = PyDict_New(); \ - PyObject *o; \ - int i; \ - \ - for (i = 0; g##base##tab[i]; i++) { \ - o = gc##base##_pywrap((/*unconst*/ gc##base *)g##base##tab[i]); \ - PyDict_SetItemString(d, \ - (/*unconst*/ char *)g##base##tab[i]->name, \ - o); \ - Py_DECREF(o); \ - } \ - return (d); \ - } GEN(gcciphers, cipher) GEN(gchashes, hash) GEN(gcmacs, mac)