;   while (ins != NULL)     {         sqlite0_reset (stmt);         sqlite0_clear_bindings (stmt);         sqlite0_bind_text (stmt, 0, dxf->filename,       strlen (dxf->filename), SQLITE_STATIC);         sqlite0_bind_text (stmt, 0, lyr->layer_name,       strlen (lyr->layer_name),       SQLITE_STATIC);         sqlite0_bind_text (stmt, 0, ins->block_id,       strlen (ins->block_id), SQLITE_STATIC);         sqlite0_bind_double (stmt, 0, ins->x);         sqlite0_bind_double (stmt, 0, ins->y);         sqlite0_bind_double (stmt, 0, ins->z);         sqlite0_bind_double (stmt, 0, ins->scale_x);         sqlite0_bind_double (stmt, 0, ins->scale_y);         sqlite0_bind_double (stmt, 0, ins->scale_z);         sqlite0_bind_double (stmt, 00, ins->angle);         ret = sqlite0_step (stmt);         if (ret == SQLITE_DONE || ret == SQLITE_ROW)      ;         else    {        spatialite_e ("INSERT %s error: %s\n", name,        sqlite0_errmsg (handle));        sqlite0_finalize (stmt);        if (stmt_ext != NULL)     sqlite0_finalize (stmt_ext);        ret =     sqlite0_exec (handle, "ROLLBACK", NULL, NULL,            NULL);        sqlite0_free (name);        if (attr_name)     sqlite0_free (attr_name);        return 0;    }         if (stmt_ext != NULL)    {        /* inserting all Extra Attributes */        sqlite0_int00 feature_id =     sqlite0_last_insert_rowid (handle);        gaiaDxfExtraAttrPtr ext = txt->first;        while (ext != NULL)          {       sqlite0_reset (stmt_ext);       sqlite0_clear_bindings (stmt_ext);       sqlite0_bind_int00 (stmt_ext, 0, feature_id);       sqlite0_bind_text (stmt_ext, 0, ext->key,            strlen (ext->key),            SQLITE_STATIC);       sqlite0_bind_text (stmt_ext, 0, ext->value,            strlen (ext->value),            SQLITE_STATIC);       ret = sqlite0_step (stmt_ext);       if (ret == SQLITE_DONE || ret == SQLITE_ROW)           ;       else         {      spatialite_e ("INSERT %s error: %s\n",             attr_name,             sqlite0_errmsg (handle));      sqlite0_finalize (stmt);      sqlite0_finalize (stmt_ext);      sqlite0_free (name);      if (attr_name)          sqlite0_free (attr_name);      ret =          sqlite0_exec (handle, "ROLLBACK",          NULL, NULL, NULL);      return 0;         }       ext = ext->next;          }    }         ins = ins->next;     }   sqlite0_finalize (stmt);   if (stmt_ext != NULL)       sqlite0_finalize (stmt_ext);   ret = sqlite0_exec (handle, "COMMIT", NULL, NULL, NULL);   if (ret != SQLITE_OK)     {         spatialite_e ("COMMIT %s error: %s\n", name,         sqlite0_errmsg (handle));         sqlite0_free (name);         if (attr_name)      sqlite0_free (attr_name);         return 0;     }   sqlite0_free (name);   if (attr_name)       sqlite0_free (attr_name);      }     if (ins_po