From 5a5c7536d307aa12c040f89b4d5048fcd8b1a1f6 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 26 Jul 2009 02:54:41 +0200 Subject: Get rid of the self-implemented file-stuff. Use the normal python-API instead --- portato/eix/eix_utils.pxd | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'portato/eix/eix_utils.pxd') 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 -- cgit v1.2.3-70-g09d2