struct DataBlock dba = convertStringToDataBlock(STR2CSTR(stra)); struct DataBlock dbb = convertStringToDataBlock(STR2CSTR(strb));
struct DataBlock *dba = convertRubyStringToDataBlock(stra); struct DataBlock *dbb = convertRubyStringToDataBlock(strb);
static VALUE rbcompa_ncd(VALUE self, VALUE stra, VALUE strb){  struct CompAdaptor *ca;  double result;  struct DataBlock dba = convertStringToDataBlock(STR2CSTR(stra));  struct DataBlock dbb = convertStringToDataBlock(STR2CSTR(strb));  Data_Get_Struct(self, struct CompAdaptor, ca);  result = ncdCA(ca, dba, dbb);  freeDataBlock(dba);  freeDataBlock(dbb);  return rb_float_new(result);}