X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdictionary.h;h=e8f6fb170b662b853447ff0d8b5ad876e01eaed8;hb=f5c108becd49d78f4898cab11352291f5689d24e;hp=29f8d7caa30a7cf858019dad4ec63cc5dcc48afc;hpb=48386ee68a5283653435d05a9ea4e449710fd370;p=pspp diff --git a/src/data/dictionary.h b/src/data/dictionary.h index 29f8d7caa3..e8f6fb170b 100644 --- a/src/data/dictionary.h +++ b/src/data/dictionary.h @@ -26,6 +26,7 @@ struct variable; struct dictionary; +struct string; struct dict_callbacks { @@ -89,7 +90,7 @@ bool dict_rename_vars (struct dictionary *, struct ccase; struct variable *dict_get_weight (const struct dictionary *); -double dict_get_case_weight (const struct dictionary *, +double dict_get_case_weight (const struct dictionary *, const struct ccase *, bool *); void dict_set_weight (struct dictionary *, struct variable *); @@ -123,8 +124,16 @@ void dict_unset_split_var (struct dictionary *d, const char *dict_get_label (const struct dictionary *); void dict_set_label (struct dictionary *, const char *); +/* Fixed length of lines in dictionary documents. */ +#define DOC_LINE_LENGTH 80 + const char *dict_get_documents (const struct dictionary *); void dict_set_documents (struct dictionary *, const char *); +void dict_clear_documents (struct dictionary *); +void dict_add_document_line (struct dictionary *, const char *); +size_t dict_get_document_line_cnt (const struct dictionary *); +void dict_get_document_line (const struct dictionary *, + size_t, struct string *); bool dict_create_vector (struct dictionary *, const char *name,