X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvalue-labels.h;h=9e8a4719d5ad83d2e1b95fbd9b45d6f0b24d206c;hb=1143173e5e7e57d9020a0b3303c980e8166b3642;hp=ec73925da6b435825f8767c084df1f3d21c03c9d;hpb=2bfc3a138f308ffb38634a92b23bdc7b62592324;p=pspp-builds.git diff --git a/src/value-labels.h b/src/value-labels.h index ec73925d..9e8a4719 100644 --- a/src/value-labels.h +++ b/src/value-labels.h @@ -41,7 +41,7 @@ size_t val_labs_count (struct val_labs *); int val_labs_add (struct val_labs *, union value, const char *); int val_labs_replace (struct val_labs *, union value, const char *); int val_labs_remove (struct val_labs *, union value); -const char *val_labs_find (const struct val_labs *, union value); +char *val_labs_find (const struct val_labs *, union value); struct val_labs_iterator; @@ -53,4 +53,10 @@ struct val_lab *val_labs_next (const struct val_labs *, struct val_labs_iterator **); void val_labs_done (struct val_labs_iterator **); +/* Return a string representing this value, in the form most + appropriate from a human factors perspective. + (IE: the label if it has one, otherwise the alpha/numeric ) +*/ +const char *value_to_string(const union value *, const struct variable *); + #endif /* value-labels.h */