From 40344af86dbe9c7ad2f38b18f31f0f8a4917bda9 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Mon, 27 Jul 2009 00:38:41 +0200 Subject: Moved from Cython to normal Python --- portato/eix/eix_utils.pyx | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 portato/eix/eix_utils.pyx (limited to 'portato/eix/eix_utils.pyx') diff --git a/portato/eix/eix_utils.pyx b/portato/eix/eix_utils.pyx deleted file mode 100644 index 0ea9603..0000000 --- a/portato/eix/eix_utils.pyx +++ /dev/null @@ -1,15 +0,0 @@ -cdef char* strdup (char * other) except NULL: - cdef size_t len - cdef char* new - - if other is NULL: - return NULL - - len = strlen(other) - new = PyMem_Malloc(len+1) - - if new is NULL: - raise MemoryError, "Malloc of new string copy" - return NULL - - return strcpy(new, other) -- cgit v1.2.3-54-g00ecf