##// END OF EJS Templates
cffi: fix build on Python 3...
Manuel Jacob -
r44085:53607fd3 stable
parent child Browse files
Show More
@@ -5,10 +5,10 b' import os'
5
5
6 ffi = cffi.FFI()
6 ffi = cffi.FFI()
7 with open(
7 with open(
8 os.path.join(os.path.join(os.path.dirname(__file__), b'..'), b'bdiff.c')
8 os.path.join(os.path.join(os.path.dirname(__file__), '..'), 'bdiff.c')
9 ) as f:
9 ) as f:
10 ffi.set_source(
10 ffi.set_source(
11 b"mercurial.cffi._bdiff", f.read(), include_dirs=[b'mercurial']
11 "mercurial.cffi._bdiff", f.read(), include_dirs=['mercurial']
12 )
12 )
13 ffi.cdef(
13 ffi.cdef(
14 """
14 """
@@ -5,11 +5,11 b' import os'
5
5
6 ffi = cffi.FFI()
6 ffi = cffi.FFI()
7 mpatch_c = os.path.join(
7 mpatch_c = os.path.join(
8 os.path.join(os.path.dirname(__file__), b'..', b'mpatch.c')
8 os.path.join(os.path.dirname(__file__), '..', 'mpatch.c')
9 )
9 )
10 with open(mpatch_c) as f:
10 with open(mpatch_c) as f:
11 ffi.set_source(
11 ffi.set_source(
12 b"mercurial.cffi._mpatch", f.read(), include_dirs=[b"mercurial"]
12 "mercurial.cffi._mpatch", f.read(), include_dirs=["mercurial"]
13 )
13 )
14 ffi.cdef(
14 ffi.cdef(
15 """
15 """
@@ -4,7 +4,7 b' import cffi'
4
4
5 ffi = cffi.FFI()
5 ffi = cffi.FFI()
6 ffi.set_source(
6 ffi.set_source(
7 b"mercurial.cffi._osutil",
7 "mercurial.cffi._osutil",
8 """
8 """
9 #include <sys/attr.h>
9 #include <sys/attr.h>
10 #include <sys/vnode.h>
10 #include <sys/vnode.h>
@@ -22,7 +22,7 b' typedef struct val_attrs {'
22 off_t datalength;
22 off_t datalength;
23 } __attribute__((aligned(4), packed)) val_attrs_t;
23 } __attribute__((aligned(4), packed)) val_attrs_t;
24 """,
24 """,
25 include_dirs=[b'mercurial'],
25 include_dirs=['mercurial'],
26 )
26 )
27 ffi.cdef(
27 ffi.cdef(
28 '''
28 '''
General Comments 0
You need to be logged in to leave comments. Login now