1 cdef extern from "string.h":
4 cdef extern from "stdlib.h":
6 void qsort(void *base, size_t nmemb, size_t size,
7 int (*compar)(void *,void *))
9 cdef extern from "cgraph.h":
10 ctypedef struct CDictEntry:
14 ctypedef struct CDict:
18 CDict *cdict_alloc(int n)
19 int cdict_free(CDict *d)
20 int cdict_qsort_cmp(void *void_a,void *void_b)
21 CDictEntry *cdict_getitem(CDict *d,int k)
23 ctypedef struct CGraphEntry:
27 ctypedef struct CGraph:
31 CGraph *cgraph_alloc(int n)
32 int cgraph_free(CGraph *d)
33 CGraphEntry *cgraph_getitem(CGraph *d,int k)
34 int *calloc_int(int n)
38 cdef class CIntDictionary:
40 cdef class CDictionary:
43 cdef class CDictionaryRef:
49 cdef class CGraphDict:
51 cdef public object key_index
53 cdef class CDictIterator:
62 cdef class CGraphIterator:
68 cdef class IntTupleArray:
76 cdef readonly int isDone