X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdata-in.c;h=3f1f9e7075643b5bd86eabc7a57f01738a475f0a;hb=ed7a8820e2f7797fb61a9a5628c18169dcfd3513;hp=ace167090c57b9f2f2fe97a4d4e96cd80405764d;hpb=e2da62d735c597afeef2e0e9b36e5a4a83d7da94;p=pspp diff --git a/src/data/data-in.c b/src/data/data-in.c index ace167090c..3f1f9e7075 100644 --- a/src/data/data-in.c +++ b/src/data/data-in.c @@ -76,7 +76,11 @@ static int hexit_value (int c); Stores the parsed representation in OUTPUT, which the caller must have initialized with the given WIDTH (0 for a numeric field, otherwise the string width). If FORMAT is FMT_A, then OUTPUT_ENCODING must specify the - correct encoding for OUTPUT (normally obtained via dict_get_encoding()). */ + correct encoding for OUTPUT (normally obtained via dict_get_encoding()). + + If successful NULL is the return value. Otherwise a string describing + the problem is returned. The caller must free this string. + */ char * data_in (struct substring input, const char *input_encoding, enum fmt_type format, @@ -1181,6 +1185,7 @@ parse_date (struct data_in *i) break; case ':': error = parse_time_delimiter (i); + break; case ' ': if (i->format != FMT_MOYR) {