targets/typemapping.py
changeset 1783 3311eea28d56
parent 1774 ac0fe8aabb5e
child 1835 7533061a6d82
equal deleted inserted replaced
1782:5b6ad7a7fd9d 1783:3311eea28d56
    21 # You should have received a copy of the GNU Lesser General Public
    21 # You should have received a copy of the GNU Lesser General Public
    22 # License along with this library; if not, write to the Free Software
    22 # License along with this library; if not, write to the Free Software
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    24 
    24 
    25 import ctypes
    25 import ctypes
       
    26 from ctypes import *
       
    27 from datetime import timedelta as td
       
    28 
    26 ctypes.pythonapi.PyString_AsString.argtypes = (ctypes.c_void_p,)
    29 ctypes.pythonapi.PyString_AsString.argtypes = (ctypes.c_void_p,)
    27 ctypes.pythonapi.PyString_AsString.restype = ctypes.POINTER(ctypes.c_char)
    30 ctypes.pythonapi.PyString_AsString.restype = ctypes.POINTER(ctypes.c_char)
    28 
       
    29 
       
    30 from ctypes import *
       
    31 from datetime import timedelta as td
       
    32 
    31 
    33 
    32 
    34 class IEC_STRING(Structure):
    33 class IEC_STRING(Structure):
    35     """
    34     """
    36     Must be changed according to changes in iec_types.h
    35     Must be changed according to changes in iec_types.h