You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- 02111-1307, USA. */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA. */
#include <config.h>
#include "dfm-read.h"
#include "alloc.h"
#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. */
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;
}
}
which is not null-terminated. The caller must not free or
modify the returned string. */
void
-dfm_get_record (struct dfm_reader *r, struct len_string *line)
+dfm_get_record (struct dfm_reader *r, struct fixed_string *line)
{
assert ((r->flags & DFM_ADVANCE) == 0);
assert ((r->flags & DFM_EOF) == 0);