if ( var_num > 0 )
{
- struct variable *variable;
- variable = psppire_dict_get_variable (store->dict, var_num);
+ struct variable *variable =
+ psppire_dict_get_variable (store->dict, var_num);
+
+ g_assert (variable != NULL);
posn = var_get_case_index (variable);
}
psppire_data_store_set_dictionary (retval, dict);
-
return retval;
}
data_store->case_file = psppire_case_file_new ();
+
+
g_signal_connect (data_store->case_file, "cases-deleted",
G_CALLBACK (delete_cases_callback),
data_store);
pv = psppire_dict_get_variable (store->dict, column);
+ g_assert (pv);
+
idx = var_get_case_index (pv);
+ g_assert (idx >= 0);
+
v = psppire_case_file_get_value (store->case_file, row, idx);
g_return_val_if_fail (v, NULL);