X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdfm-read.c;h=6d173cf3e929bdace5c73f4b0c3da606460fac23;hb=47106fcdfb1a24d0fff77dc0323c3c4d4a30daa4;hp=a293cb5f308cfc4e0afc0e9f84fbb920b9e766be;hpb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;p=pspp diff --git a/src/dfm-read.c b/src/dfm-read.c index a293cb5f30..6d173cf3e9 100644 --- a/src/dfm-read.c +++ b/src/dfm-read.c @@ -27,12 +27,16 @@ #include "command.h" #include "error.h" #include "file-handle.h" +#include "file-handle-def.h" #include "filename.h" -#include "getline.h" +#include "getl.h" #include "lexer.h" #include "str.h" #include "vfm.h" +#include "gettext.h" +#define _(msgid) gettext (msgid) + #include "debug-print.h" /* Flags for DFM readers. */ @@ -81,8 +85,9 @@ dfm_close_reader (struct dfm_reader *r) if (!still_open) { /* Skip any remaining data on the inline file. */ - while ((r->flags & DFM_EOF) == 0) - read_record (r); + if (r->flags & DFM_SAW_BEGIN_DATA) + while ((r->flags & DFM_EOF) == 0) + read_record (r); inline_file = NULL; } }