Show More
@@ -0,0 +1,15 b'' | |||||
|
1 | /* | |||
|
2 | revlog.h - efficient revlog parsing | |||
|
3 | ||||
|
4 | This software may be used and distributed according to the terms of | |||
|
5 | the GNU General Public License, incorporated herein by reference. | |||
|
6 | */ | |||
|
7 | ||||
|
8 | #ifndef _HG_REVLOG_H_ | |||
|
9 | #define _HG_REVLOG_H_ | |||
|
10 | ||||
|
11 | #include <Python.h> | |||
|
12 | ||||
|
13 | extern PyTypeObject indexType; | |||
|
14 | ||||
|
15 | #endif /* _HG_REVLOG_H_ */ |
@@ -17,6 +17,7 b'' | |||||
17 |
|
17 | |||
18 | #include "bitmanipulation.h" |
|
18 | #include "bitmanipulation.h" | |
19 | #include "charencode.h" |
|
19 | #include "charencode.h" | |
|
20 | #include "revlog.h" | |||
20 | #include "util.h" |
|
21 | #include "util.h" | |
21 |
|
22 | |||
22 | #ifdef IS_PY3K |
|
23 | #ifdef IS_PY3K | |
@@ -1511,8 +1512,6 b' static int nt_init(nodetree *self, index' | |||||
1511 | return 0; |
|
1512 | return 0; | |
1512 | } |
|
1513 | } | |
1513 |
|
1514 | |||
1514 | static PyTypeObject indexType; |
|
|||
1515 |
|
||||
1516 | static int ntobj_init(nodetreeObject *self, PyObject *args) |
|
1515 | static int ntobj_init(nodetreeObject *self, PyObject *args) | |
1517 | { |
|
1516 | { | |
1518 | PyObject *index; |
|
1517 | PyObject *index; | |
@@ -2582,7 +2581,7 b' static PyGetSetDef index_getset[] = {' | |||||
2582 | {NULL} /* Sentinel */ |
|
2581 | {NULL} /* Sentinel */ | |
2583 | }; |
|
2582 | }; | |
2584 |
|
2583 | |||
2585 |
|
|
2584 | PyTypeObject indexType = { | |
2586 | PyVarObject_HEAD_INIT(NULL, 0) /* header */ |
|
2585 | PyVarObject_HEAD_INIT(NULL, 0) /* header */ | |
2587 | "parsers.index", /* tp_name */ |
|
2586 | "parsers.index", /* tp_name */ | |
2588 | sizeof(indexObject), /* tp_basicsize */ |
|
2587 | sizeof(indexObject), /* tp_basicsize */ |
@@ -968,6 +968,7 b' extmodules = [' | |||||
968 | 'hg-direct-ffi', |
|
968 | 'hg-direct-ffi', | |
969 | include_dirs=common_include_dirs, |
|
969 | include_dirs=common_include_dirs, | |
970 | depends=common_depends + ['mercurial/cext/charencode.h', |
|
970 | depends=common_depends + ['mercurial/cext/charencode.h', | |
|
971 | 'mercurial/cext/revlog.h', | |||
971 | 'rust/hg-core/src/ancestors.rs', |
|
972 | 'rust/hg-core/src/ancestors.rs', | |
972 | 'rust/hg-core/src/lib.rs']), |
|
973 | 'rust/hg-core/src/lib.rs']), | |
973 | Extension('mercurial.cext.osutil', ['mercurial/cext/osutil.c'], |
|
974 | Extension('mercurial.cext.osutil', ['mercurial/cext/osutil.c'], |
General Comments 0
You need to be logged in to leave comments.
Login now