#include <gtksheet/gtkextra-marshal.h>
#include "psppire-dict.h"
-#include <data/format.h>
#include <data/dictionary.h>
#include <data/missing-values.h>
#include <data/value-labels.h>
}
-inline gint
+gint
psppire_dict_get_next_value_idx (const PsppireDict *dict)
{
return dict_get_next_value_idx (dict->dict);
if ( ! var_is_valid_name (name, false))
return FALSE;
+ /* Make sure no other variable has this name */
+ if ( NULL != psppire_dict_lookup_var (dict, name))
+ return FALSE;
+
dict_rename_var (dict->dict, v, name);
return TRUE;