summaryrefslogtreecommitdiff
path: root/portato/eix/eix_utils.pxd
blob: 39f60a9b0c58ac9cd47d98016d895c8d8fa5eae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cdef extern from *:
    ctypedef int size_t

cdef extern from "errno.h":
    int errno

cdef extern from "string.h":
    char* strerror (int errno)
    size_t strlen (char* s)
    char* strcpy (char* dest, char* src)

cdef extern from "Python.h":
    void* PyMem_Malloc (size_t n)
    void PyMem_Free (void* p)

cdef:
    char* strdup (char* other) except NULL