X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvar.h;h=c1ad04c5ef2803560c8ce02bc27b681078b193ad;hb=0dfeb46aa388fae94797accde705a13d9ef7aff8;hp=0e15598a89851d4699459ea3126ab8da6dc9c52e;hpb=e976a0fa28771a625ba29b86cc5883838d0f1c70;p=pspp diff --git a/src/var.h b/src/var.h index 0e15598a89..c1ad04c5ef 100644 --- a/src/var.h +++ b/src/var.h @@ -433,4 +433,13 @@ int parse_var_set_vars (const struct var_set *, struct variable ***, int *, int parse_DATA_LIST_vars (char ***names, int *cnt, int opts); int parse_mixed_vars (char ***names, int *cnt, int opts); + + +/* Return a string representing this variable, in the form most + appropriate from a human factors perspective. + (IE: the label if it has one, otherwise the name ) +*/ +const char * var_to_string(const struct variable *var); + + #endif /* !var_h */