psppire-dict: Return new var from psppire_dict_insert_variable().
[pspp] / src / ui / gui / psppire-dict.h
index 53b09f41a74d39a0165acfa77f83285a5499e248..4deabcaf8f07a05408819d65901364f4c2bf2ceb 100644 (file)
@@ -90,7 +90,8 @@ struct variable * psppire_dict_get_variable (const PsppireDict *d, gint idx);
 void psppire_dict_delete_variables (PsppireDict *d, gint first, gint n);
 
 /* Insert a new variable at posn IDX */
-void psppire_dict_insert_variable (PsppireDict *d, gint idx, const gchar *name);
+struct variable *psppire_dict_insert_variable (PsppireDict *d, gint idx,
+                                               const gchar *name);
 
 void psppire_dict_resize_variable (PsppireDict *,
                                  const struct variable *,