diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-07-26 02:54:41 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-07-26 02:54:41 +0200 |
commit | 5a5c7536d307aa12c040f89b4d5048fcd8b1a1f6 (patch) | |
tree | 087127de84fe991c3c92942ac03e4ed1549622e6 /portato/eix/eix_utils.pxd | |
parent | b8f45f026ace3df864efac5d49a62be4a0fc9eae (diff) | |
download | portato-5a5c7536d307aa12c040f89b4d5048fcd8b1a1f6.tar.gz portato-5a5c7536d307aa12c040f89b4d5048fcd8b1a1f6.tar.bz2 portato-5a5c7536d307aa12c040f89b4d5048fcd8b1a1f6.zip |
Get rid of the self-implemented file-stuff. Use the normal python-API instead
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 |