Mercurial > hg
view contrib/fuzz/pyutil.h @ 48811:92c430e7e37a
cext: drop preprocessor PyInt aliases
Now that we dropped support for Python 2 we can use the Python 3 native
functions.
Differential Revision: https://phab.mercurial-scm.org/D12222
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 20 Feb 2022 15:42:47 -0700 |
parents | 8766728dbce6 |
children |
line wrap: on
line source
#include <Python.h> #if PY_MAJOR_VERSION >= 3 #define PYCODETYPE PyObject #else #define PYCODETYPE PyCodeObject #endif namespace contrib { void initpy(const char *cselfpath); PyObject *pyglobals(); } /* namespace contrib */