Imported Upstream version 0.5
[pysam.git] / pysam / cvcf.pxd
diff --git a/pysam/cvcf.pxd b/pysam/cvcf.pxd
new file mode 100644 (file)
index 0000000..477e0fa
--- /dev/null
@@ -0,0 +1,41 @@
+cdef extern from "stdlib.h":
+    void free(void *)
+    void *malloc(size_t)       
+    void *calloc(size_t,size_t)
+    void *realloc(void *,size_t)
+    int c_abs "abs" (int)  
+    int c_abs "abs" (int)
+    int atoi( char *nptr)
+    long atol( char *nptr)
+    double atof( char *nptr)
+
+cdef extern from "Python.h":
+    ctypedef struct FILE
+    FILE* PyFile_AsFile(object)
+    char *fgets(char *str, int size, FILE *ifile)
+    int feof(FILE *stream)
+    size_t strlen(char *s)
+    size_t getline(char **lineptr, size_t *n, FILE *stream)
+    char *strstr(char *, char *)
+    char *strchr(char *string, int c)
+    int fileno(FILE *stream)
+
+cdef extern from "string.h":
+  int strcmp(char *s1, char *s2)
+  int strncmp(char *s1,char *s2,size_t len)
+  char *strcpy(char *dest,char *src)
+  char *strncpy(char *dest,char *src, size_t len)
+  char *strdup(char *)
+  char *strcat(char *,char *)
+  size_t strlen(char *s)
+  int memcmp( void * s1, void *s2, size_t len )
+  void *memcpy(void *dest, void *src, size_t n)
+  void *memchr(void *s, int c, size_t n)
+
+cdef extern from "stdint.h":
+  ctypedef int int64_t
+  ctypedef int int32_t
+  ctypedef int uint32_t
+  ctypedef int uint8_t
+  ctypedef int uint64_t
+