X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dict.h;h=f645b355a6b0d5b90100fc60606e96d8240b1968;hb=389b447a91e26f255e79c4fd8520d99931809ed0;hp=9314dbe4e2cdc16cc0d9bb6b3d3e8d22fc3b66d8;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp-builds.git diff --git a/src/ui/gui/psppire-dict.h b/src/ui/gui/psppire-dict.h index 9314dbe4..f645b355 100644 --- a/src/ui/gui/psppire-dict.h +++ b/src/ui/gui/psppire-dict.h @@ -57,7 +57,6 @@ struct _PsppireDict struct _PsppireDictClass { GObjectClass parent_class; - }; @@ -70,6 +69,9 @@ void psppire_dict_delete_var (PsppireDict *s, gint idx); /* Return the number of variables in the dictionary */ gint psppire_dict_get_var_cnt (const PsppireDict *d); +/* Return the number of `union value's in the dictionary */ +size_t psppire_dict_get_value_cnt (const PsppireDict *d); + /* Return a variable by name. Return NULL if it doesn't exist */ @@ -94,7 +96,7 @@ void psppire_dict_resize_variable (PsppireDict *, gboolean psppire_dict_check_name (const PsppireDict *dict, const gchar *name, gboolean report); -gint psppire_dict_get_next_value_idx (const PsppireDict *dict); +inline gint psppire_dict_get_next_value_idx (const PsppireDict *dict); gboolean psppire_dict_rename_var (PsppireDict *dict, struct variable *v, const gchar *text); @@ -103,6 +105,9 @@ void psppire_dict_replace_dictionary (PsppireDict *, struct dictionary *); struct variable * psppire_dict_get_weight_variable (const PsppireDict *); +#if DEBUGGING +void psppire_dict_dump (const PsppireDict *); +#endif G_END_DECLS