diff options
Diffstat (limited to '')
-rw-r--r-- | portato/eix/eix_utils.pxd | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/portato/eix/eix_utils.pxd b/portato/eix/eix_utils.pxd index a85a65e..39f60a9 100644 --- a/portato/eix/eix_utils.pxd +++ b/portato/eix/eix_utils.pxd @@ -9,39 +9,9 @@ cdef extern from "string.h": size_t strlen (char* s) char* strcpy (char* dest, char* src) -cdef extern from "stdio.h": - - ctypedef struct FILE: - pass - - FILE* c_fopen "fopen" (char* path, char* mode) - int c_fclose "fclose" (FILE* f) - int c_feof "feof" (FILE* f) - int fread (void* buf, size_t size, size_t n, FILE* f) - - enum WHENCE: - SEEK_SET - SEEK_CUR - SEEK_END - - int fseek (FILE* stream, long offset, WHENCE whence) - cdef extern from "Python.h": - ctypedef struct PyObject: - pass - void* PyMem_Malloc (size_t n) void PyMem_Free (void* p) cdef: - struct File: - FILE* file - char* name - - File* fopen (char* path, char* mode) except NULL - void fclose (File* f) - - void ffree (void* p) - char* fget (File* f, size_t n) except NULL - char* strdup (char* other) except NULL |