dtype.pxd 408 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

cdef extern from 'dtype.h':

  ctypedef struct C_param:
    int itype
    double val
    char field[30]

  ctypedef struct C_datatype:
    char nickname[30]
    double rsingle
    int isingle
    int itab[2] #contain sizes of rtab and weird in that order
    double * rtab
    C_param * weird

  void getOne(int id, C_datatype * d)
  void display(int id)
  void change(int id, char * nn, double rv, int iv)