Show More
@@ -1,78 +1,76 b'' | |||
|
1 | 1 | # bdiff.py - CFFI implementation of bdiff.c |
|
2 | 2 | # |
|
3 | 3 | # Copyright 2016 Maciej Fijalkowski <fijall@gmail.com> |
|
4 | 4 | # |
|
5 | 5 | # This software may be used and distributed according to the terms of the |
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | 8 | from __future__ import absolute_import |
|
9 | 9 | |
|
10 | 10 | import struct |
|
11 | 11 | |
|
12 | 12 | from ..pure.bdiff import * |
|
13 | 13 | from . import _bdiff |
|
14 | 14 | |
|
15 | 15 | ffi = _bdiff.ffi |
|
16 | 16 | lib = _bdiff.lib |
|
17 | 17 | |
|
18 | if True: | |
|
19 | if True: | |
|
20 | 18 |
|
|
21 | 19 |
|
|
22 | 20 |
|
|
23 | 21 |
|
|
24 | 22 |
|
|
25 | 23 |
|
|
26 | 24 |
|
|
27 | 25 |
|
|
28 | 26 |
|
|
29 | 27 |
|
|
30 | 28 |
|
|
31 | 29 |
|
|
32 | 30 |
|
|
33 | 31 |
|
|
34 | 32 |
|
|
35 | 33 |
|
|
36 | 34 |
|
|
37 | 35 |
|
|
38 | 36 |
|
|
39 | 37 |
|
|
40 | 38 |
|
|
41 | 39 |
|
|
42 | 40 |
|
|
43 | 41 |
|
|
44 | 42 |
|
|
45 | 43 |
|
|
46 | 44 | |
|
47 | 45 |
|
|
48 | 46 |
|
|
49 | 47 |
|
|
50 | 48 |
|
|
51 | 49 |
|
|
52 | 50 |
|
|
53 | 51 |
|
|
54 | 52 |
|
|
55 | 53 |
|
|
56 | 54 |
|
|
57 | 55 |
|
|
58 | 56 |
|
|
59 | 57 |
|
|
60 | 58 |
|
|
61 | 59 |
|
|
62 | 60 |
|
|
63 | 61 |
|
|
64 | 62 |
|
|
65 | 63 |
|
|
66 | 64 |
|
|
67 | 65 |
|
|
68 | 66 | (a[0] + h.a1).l - a[0].l, lgt)) |
|
69 | 67 |
|
|
70 | 68 |
|
|
71 | 69 |
|
|
72 | 70 |
|
|
73 | 71 | |
|
74 | 72 |
|
|
75 | 73 |
|
|
76 | 74 |
|
|
77 | 75 |
|
|
78 | 76 |
|
@@ -1,50 +1,48 b'' | |||
|
1 | 1 | # mpatch.py - CFFI implementation of mpatch.c |
|
2 | 2 | # |
|
3 | 3 | # Copyright 2016 Maciej Fijalkowski <fijall@gmail.com> |
|
4 | 4 | # |
|
5 | 5 | # This software may be used and distributed according to the terms of the |
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | 8 | from __future__ import absolute_import |
|
9 | 9 | |
|
10 | 10 | from ..pure.mpatch import * |
|
11 | 11 | from ..pure.mpatch import mpatchError # silence pyflakes |
|
12 | 12 | from . import _mpatch |
|
13 | 13 | |
|
14 | 14 | ffi = _mpatch.ffi |
|
15 | 15 | lib = _mpatch.lib |
|
16 | 16 | |
|
17 | if True: | |
|
18 | if True: | |
|
19 | 17 |
|
|
20 | 18 |
|
|
21 | 19 |
|
|
22 | 20 |
|
|
23 | 21 |
|
|
24 | 22 |
|
|
25 | 23 |
|
|
26 | 24 |
|
|
27 | 25 |
|
|
28 | 26 |
|
|
29 | 27 | |
|
30 | 28 |
|
|
31 | 29 |
|
|
32 | 30 |
|
|
33 | 31 |
|
|
34 | 32 |
|
|
35 | 33 |
|
|
36 | 34 |
|
|
37 | 35 |
|
|
38 | 36 |
|
|
39 | 37 |
|
|
40 | 38 |
|
|
41 | 39 |
|
|
42 | 40 |
|
|
43 | 41 |
|
|
44 | 42 |
|
|
45 | 43 |
|
|
46 | 44 |
|
|
47 | 45 |
|
|
48 | 46 |
|
|
49 | 47 |
|
|
50 | 48 |
|
General Comments 0
You need to be logged in to leave comments.
Login now