contrib/fuzz/pyutil.h
author Pierre-Yves David <pierre-yves.david@octobus.net>
Sat, 11 Jan 2020 04:57:29 +0100
changeset 44055 7f67f53492f7
parent 43859 8766728dbce6
permissions -rw-r--r--
changelog: fix the diverted opener to accept more kwargs The current code prevent the use of `atomictemp` file with the changelog opener. I do not see a good reason for this limitation. Differential Revision: https://phab.mercurial-scm.org/D7831

#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 */