Comments
Patch
@@ -17,6 +17,7 @@
#include "bitmanipulation.h"
#include "charencode.h"
+#include "revlog.h"
#include "util.h"
#ifdef IS_PY3K
@@ -1511,8 +1512,6 @@ static int nt_init(nodetree *self, index
return 0;
}
-static PyTypeObject indexType;
-
static int ntobj_init(nodetreeObject *self, PyObject *args)
{
PyObject *index;
@@ -2582,7 +2581,7 @@ static PyGetSetDef index_getset[] = {
{NULL} /* Sentinel */
};
-static PyTypeObject indexType = {
+PyTypeObject indexType = {
PyVarObject_HEAD_INIT(NULL, 0) /* header */
"parsers.index", /* tp_name */
sizeof(indexObject), /* tp_basicsize */
new file mode 100644
@@ -0,0 +1,15 @@
+/*
+ revlog.h - efficient revlog parsing
+
+ This software may be used and distributed according to the terms of
+ the GNU General Public License, incorporated herein by reference.
+*/
+
+#ifndef _HG_REVLOG_H_
+#define _HG_REVLOG_H_
+
+#include <Python.h>
+
+extern PyTypeObject indexType;
+
+#endif /* _HG_REVLOG_H_ */
@@ -968,6 +968,7 @@ extmodules = [
'hg-direct-ffi',
include_dirs=common_include_dirs,
depends=common_depends + ['mercurial/cext/charencode.h',
+ 'mercurial/cext/revlog.h',
'rust/hg-core/src/ancestors.rs',
'rust/hg-core/src/lib.rs']),
Extension('mercurial.cext.osutil', ['mercurial/cext/osutil.c'],