contrib/fuzz/pyutil.h
author Raphaël Gomès <rgomes@octobus.net>
Wed, 23 Mar 2022 15:18:12 +0100
changeset 49097 791430b0b2d2
parent 43859 8766728dbce6
permissions -rw-r--r--
rust-dirstatemap: add `set_tracked` method This is the new dirstate API that has already been moved to in Python. It will be used in place of the old `addfile`/`removefile` one. Differential Revision: https://phab.mercurial-scm.org/D12495

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