rename falsly named files *.pyx in *.pxd ;-)

This commit is contained in:
2015-05-27 15:05:14 +02:00
parent d1324618b8
commit 32fd7b5a6b
5 changed files with 23 additions and 38 deletions

1
doc/.gitignore vendored
View File

@ -1,2 +1,3 @@
/build/
/doxygen/
/build_dir.txt

View File

@ -0,0 +1,19 @@
cdef extern from *:
ctypedef char* const_char_p "const char*"
cdef extern from "obidms.h" nogil:
struct OBIDMS_t:
pass
ctypedef OBIDMS_t* OBIDMS_p
OBIDMS_p obi_create_dms(const_char_p name)
OBIDMS_p obi_open_dms(const_char_p name)
OBIDMS_p obi_dms(const_char_p name)
int obi_close_dms(OBIDMS_p dms)
cdef class OBIDMS:
cdef OBIDMS_p pointer

View File

@ -1,19 +0,0 @@
cdef extern from *:
ctypedef char* const_char_p "const char*"
cdef extern from "obidms.h":
struct OBIDMS_t:
pass
ctypedef OBIDMS_t* OBIDMS_p
OBIDMS_p obi_create_dms(const_char_p name)
OBIDMS_p obi_open_dms(const_char_p name)
int obi_close_dms(OBIDMS_p dms)
cdef class OBIDMS:
cdef OBIDMS_p pointer

View File

@ -1,27 +1,11 @@
#from .capidms cimport *
cdef extern from *:
ctypedef char* const_char_p "const char*"
cdef extern from "obidms.h":
struct OBIDMS_t:
pass
ctypedef OBIDMS_t* OBIDMS_p
OBIDMS_p obi_create_dms(const_char_p name)
OBIDMS_p obi_open_dms(const_char_p name)
int obi_close_dms(OBIDMS_p dms)
#cython: language_level=3
from .capidms cimport *
cdef class OBIDMS:
cdef OBIDMS_p pointer
def __init__(self,name):
self.pointer = obi_create_dms(name)
self.pointer = obi_dms(name)
def __del__(self):
obi_close_dms(self.pointer)