value-parser: Make parse_value() accept variable's print format also.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 12 Apr 2011 13:48:08 +0000 (06:48 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 12 Apr 2011 13:48:08 +0000 (06:48 -0700)
commit038deb761907154dd916c6625aa20600f823a84c
treeaaaa45f469b92e222857393b7de2f3eb0af57ad1
parentf9d59ffdc8ff71ac4093a9b32f4ddb96653f2307
value-parser: Make parse_value() accept variable's print format also.

Previously commands such as VALUE LABELS required numeric values to
be given as plain numbers, but this makes it difficult to add
meaningful value labels for variables with date and time formats.
This commit allows values for this command and a few others to be
given in a variable's print format instead.

Bug #18497.
src/language/dictionary/value-labels.c
src/language/expressions/evaluate.c
src/language/lexer/value-parser.c
src/language/lexer/value-parser.h
src/language/stats/npar.c
src/language/stats/roc.c
src/language/stats/t-test.q
tests/language/dictionary/value-labels.at