X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffile-type.c;h=cf0a3725673c2495ce7a6831a99f91ae847085aa;hb=f1696fab032a5ae5c44e3a3dedba343fce9ffd5c;hp=fee9ee5abd473f20348d184a9f49a9d161b38ef4;hpb=b321086267ad1014dc5d09886396cde30f094437;p=pspp diff --git a/src/file-type.c b/src/file-type.c index fee9ee5abd..cf0a372567 100644 --- a/src/file-type.c +++ b/src/file-type.c @@ -373,7 +373,7 @@ parse_col_spec (struct col_spec *c, const char *def_name) spec.type = c->fmt; spec.w = c->nc; spec.d = 0; - return check_input_specifier (&spec); + return check_input_specifier (&spec, 1); } /* RECORD TYPE. */ @@ -435,7 +435,7 @@ cmd_record_type (void) { int mv = 0; - while (token == T_NUM || token == T_STRING) + while (lex_is_number () || token == T_STRING) { if (rct->nv >= mv) { @@ -636,7 +636,7 @@ file_type_source_read (struct case_source *source, format.d = 0; while (!dfm_eof (fty->reader)) { - struct len_string line; + struct fixed_string line; struct record_type *iter; union value v; int i;