diff options
| author | 2013-03-19 14:19:51 +0100 | |
|---|---|---|
| committer | 2013-03-19 14:19:51 +0100 | |
| commit | 94fa6e220b587e646d072713daeabbf6760e54f9 (patch) | |
| tree | 627d41d9913b11e6d162fcea6b1a64dae2ba1f57 | |
| parent | 927c81a7d6cc0a42d6a3b6487f661626af193f34 (diff) | |
| download | libplist-94fa6e220b587e646d072713daeabbf6760e54f9.tar.gz libplist-94fa6e220b587e646d072713daeabbf6760e54f9.tar.bz2 | |
cython: get rid of ctypedefs and use libc.stdint instead
| -rw-r--r-- | cython/plist.pyx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx index 746db4f..d1ef91f 100644 --- a/cython/plist.pyx +++ b/cython/plist.pyx | |||
| @@ -1,16 +1,6 @@ | |||
| 1 | cdef extern from *: | ||
| 2 | ctypedef unsigned char uint8_t | ||
| 3 | ctypedef short int int16_t | ||
| 4 | ctypedef unsigned short int uint16_t | ||
| 5 | ctypedef unsigned int uint32_t | ||
| 6 | ctypedef int int32_t | ||
| 7 | IF UNAME_MACHINE == 'x86_64': | ||
| 8 | ctypedef unsigned long int uint64_t | ||
| 9 | ELSE: | ||
| 10 | ctypedef unsigned long long int uint64_t | ||
| 11 | |||
| 12 | cimport cpython | 1 | cimport cpython |
| 13 | cimport libc.stdlib | 2 | cimport libc.stdlib |
| 3 | from libc.stdint cimport * | ||
| 14 | 4 | ||
| 15 | cdef extern from *: | 5 | cdef extern from *: |
| 16 | ctypedef enum plist_type: | 6 | ctypedef enum plist_type: |
