46 lines
1.1 KiB
Cython
46 lines
1.1 KiB
Cython
###################
|
|
### WARNING!!! ###
|
|
###################
|
|
# This file has been autogenerated
|
|
|
|
# Cython imports
|
|
from cython.operator cimport dereference as deref
|
|
from cython.operator cimport preincrement as inc
|
|
from libc.stdlib cimport malloc, free
|
|
from libc.string cimport memcpy
|
|
from libcpp.string cimport string as std_string
|
|
from libcpp.utility cimport pair
|
|
from libcpp.map cimport map as cpp_map
|
|
from libcpp.set cimport set as cpp_set
|
|
from libcpp cimport bool as cpp_bool
|
|
from libcpp.vector cimport vector as cpp_vector
|
|
from cpython.version cimport PY_MAJOR_VERSION
|
|
|
|
# Python Imports
|
|
import collections
|
|
|
|
cimport numpy as np
|
|
import numpy as np
|
|
|
|
np.import_array()
|
|
|
|
cimport xdress_extra_types
|
|
|
|
# Cython Imports For Types
|
|
|
|
|
|
# Imports For Types
|
|
|
|
|
|
if PY_MAJOR_VERSION >= 3:
|
|
basestring = str
|
|
|
|
# Dirty ifdef, else, else preprocessor hack
|
|
# see http://comments.gmane.org/gmane.comp.python.cython.user/4080
|
|
cdef extern from *:
|
|
cdef void emit_ifpy2k "#if PY_MAJOR_VERSION == 2 //" ()
|
|
cdef void emit_ifpy3k "#if PY_MAJOR_VERSION == 3 //" ()
|
|
cdef void emit_else "#else //" ()
|
|
cdef void emit_endif "#endif //" ()
|
|
|