X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Ffile-type.c;h=a4940c23f1631f347b5a90db3d7c573a12210719;hb=304c185799902df1dd96a8ff2d13d279005a82e5;hp=fee9ee5abd473f20348d184a9f49a9d161b38ef4;hpb=b321086267ad1014dc5d09886396cde30f094437;p=pspp-builds.git diff --git a/src/file-type.c b/src/file-type.c index fee9ee5a..a4940c23 100644 --- a/src/file-type.c +++ b/src/file-type.c @@ -280,7 +280,7 @@ cmd_file_type (void) create_col_var (&fty->record); if (fty->case_sbc.name[0]) create_col_var (&fty->case_sbc); - vfm_source = create_case_source (&file_type_source_class, default_dict, fty); + vfm_source = create_case_source (&file_type_source_class, fty); return CMD_SUCCESS; @@ -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;