X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fdfm-read.c;h=2f17d41980fcdc04329e74e8fcafbd8af042e66f;hb=45b8514ebb8a7b10eb5d911a231a9fc7974f8ba9;hp=32b458e00f64be9f2b0255e38c2a9a510f6688d6;hpb=507c37f9590b890aa36e020e93aecd92bff774a3;p=pspp diff --git a/src/dfm-read.c b/src/dfm-read.c index 32b458e00f..2f17d41980 100644 --- a/src/dfm-read.c +++ b/src/dfm-read.c @@ -28,11 +28,14 @@ #include "error.h" #include "file-handle.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. */ @@ -78,11 +81,12 @@ dfm_close_reader (struct dfm_reader *r) assert (inline_open_cnt > 0); still_open = --inline_open_cnt; - if (still_open) + 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; } }